No key found for openai when using local llamafile
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12.5k
- Forks
- 998
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 10
Description
$ llm models default llamafile
$ llm -m llamafile 'hello'
Error: No key found - add one using 'llm keys set openai' or set the OPENAI_API_KEY environment variable
Worked around with "export OPENAI_API_KEY='blah'"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with llm models default llamafile followed by llm -m llamafile 'hello', both with and without OPENAI_API_KEY. Trace how the local llamafile model is identified and how the OpenAI key requirement is triggered; done means the local command works without a key and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100