Skip to content

fix: remove requirement for api key for ollama - #546

Merged
tibo-openai merged 4 commits into
openai:mainfrom
moppywhip:remove-ollama-api-req
Apr 22, 2025
Merged

tibo-openai merged 4 commits into
openai:mainfrom
moppywhip:remove-ollama-api-req

Conversation

@moppywhip

Copy link
Copy Markdown
Contributor

Fixes #540

Skip API key validation for Ollama provider

Description

This PR modifies the CLI to not require an API key when using Ollama as the provider

Changes

  • Modified the validation logic to skip API key checks for these providers
  • Updated the README to clarify that Ollama doesn't require an API key

Comment thread README.md Outdated
> export <provider>_API_KEY="your-api-key-here"
> ```
>
> Note that Ollama (for local LLM usage) does not require an API key.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would like to keep the readme quite clean / short, so let's remove this, but rest of the changes look good to me.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it's done! i have deleted the readme changes

@tibo-openai

Copy link
Copy Markdown
Collaborator

ty!

@tibo-openai
tibo-openai merged commit 549fc65 into openai:main Apr 22, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing requirement for OPENAI_API_KEY when running models locally

2 participants