simonw / simonw/llm

Problems about additional OpenAI-API-compatible models

Open
#442 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

Sorry but I cannot find solutions to this. Hope this problem won't waste your guys' time.

my question is:
my extra-openai-models.yaml under the project root folder looks like:

- model_id: test
  model_name: gpt-3.5-turbo
  api_base: "https://a_website/v1/chat"
  completion: true

but when I run llm -m test 'What is the capital of France?'
the output is:
Error: 'test' is not a known model
I don't know, maybe I've messed up with the yaml file?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the project-root extra-openai-models.yaml and the model-discovery path used by llm -m test 'What is the capital of France?'. Verify how this configuration is loaded and what model identifier it registers; done means the command recognizes test and reaches the configured endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.