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

Exception location #1052

Open
1 task done
amaloney opened this issue Feb 6, 2025 · 0 comments · May be fixed by #1053
Open
1 task done

Exception location #1052

amaloney opened this issue Feb 6, 2025 · 0 comments · May be fixed by #1053
Assignees

Comments

@amaloney
Copy link
Collaborator

amaloney commented Feb 6, 2025

ALL software version info

Software Version Info
- lumen (main)

Description of expected behavior and the observed behavior

Expected behavior

RuntimeError showing useful information to the user about not having set up a LLM.

ERROR: It looks like a Language Model provider isn't set up yet.
You have a few options to resolve this:

- Set environment variables with an API key: For example, OPENAI_API_KEY or ANTHROPIC_API_KEY.
- Specify a provider and API key directly: For example, set `--provider openai` with your API key via --api-key.
- Custom endpoint: If using an OpenAI-compatible API, set --provider openai and define the --provider-endpoint.

If you still need assistance visit the docs: https://lumen.holoviz.org/lumen_ai/how_to/llm/index.html
Observed behavior

ValueError from not having a provider selected

ERROR: Could not find LLM Provider None, valid providers include: ['openai', 'anthropic', 'mistral', 'azure-openai', 'azure-mistral', 'ai-navigator', 'llama-cpp'].

Complete, minimal, self-contained example code that reproduces the issue

# from fresh install
lumen-ai
  • I may be interested in making a pull request to address this
@amaloney amaloney self-assigned this Feb 6, 2025
@amaloney amaloney linked a pull request Feb 6, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant