Skip to content

client: load OLLAMA_API_KEY on init#583

Merged
ParthSareen merged 2 commits intomainfrom
parth/load-ollama-key-on-startup
Sep 23, 2025
Merged

client: load OLLAMA_API_KEY on init#583
ParthSareen merged 2 commits intomainfrom
parth/load-ollama-key-on-startup

Conversation

@ParthSareen
Copy link
Copy Markdown
Member

@ParthSareen ParthSareen commented Sep 22, 2025

Quality of life improvement to auto load env var

@ParthSareen ParthSareen force-pushed the parth/load-ollama-key-on-startup branch from 563f05b to d864270 Compare September 22, 2025 20:14
@ParthSareen ParthSareen force-pushed the parth/load-ollama-key-on-startup branch from d864270 to 17fb82e Compare September 22, 2025 20:15
Comment thread ollama/_client.py
`kwargs` are passed to the httpx client.
"""

api_key = os.getenv('OLLAMA_API_KEY', None)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a way to unit test this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

added

@ParthSareen ParthSareen force-pushed the parth/load-ollama-key-on-startup branch from c5491bf to 9aeb362 Compare September 22, 2025 21:32
@ParthSareen ParthSareen merged commit d0f71bc into main Sep 23, 2025
2 checks passed
@ParthSareen ParthSareen deleted the parth/load-ollama-key-on-startup branch September 23, 2025 03:28
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