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

amended config to set custom 'openai_api_base_url' #37

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mike2194
Copy link

@mike2194 mike2194 commented Jan 2, 2025

for us who want to use Ollama :)

https://ollama.com/blog/openai-compatibility

  • tested with env var "OPENAI_API_BASE_URL"
  • tested with Lazy config

Screenshot From 2025-01-02 14-45-54

-- An alternative way to set your API key
openai_api_key = "sk-xxxxxxxxxxxxxx",
-- ChatGPT Model
-- ChatGPT Model (Ollama example: "qwen2:7b")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wanted to make this explicit because model id in ollama have some special characters

@mike2194 mike2194 changed the title amended config to set custom 'openai_api_url' amended config to set custom 'openai_api_base_url' Jan 2, 2025
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 this pull request may close these issues.

2 participants