Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No key found for openai when using local llamafile #726

Open
xorvoid opened this issue Jan 30, 2025 · 1 comment
Open

No key found for openai when using local llamafile #726

xorvoid opened this issue Jan 30, 2025 · 1 comment

Comments

@xorvoid
Copy link

xorvoid commented Jan 30, 2025

$ 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'"

@tomstafford
Copy link

Similar. Even with llama3.3 as default, and explicitly specified, and openai key set, this doesn't work

$ llm embed-multi documentation -m llama3.3 --files docs '**/*.txt' -d documentation.db --store

Error: openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

This works, showing that llm has accepted a local default model for embeddings

$ llm embed-multi items mydata.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants