[PR #4451] add ability to create a client without env file #11497

Closed
opened 2026-04-12 23:31:17 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/4451

State: closed
Merged: No


If you use Ollama as a Go package, you are forced to use an environment variable as a configuration to change the host. With the CreateClient function, you are free to use your own configuration passed into the Ollama client.

**Original Pull Request:** https://github.com/ollama/ollama/pull/4451 **State:** closed **Merged:** No --- If you use Ollama as a Go package, you are forced to use an environment variable as a configuration to change the host. With the CreateClient function, you are free to use your own configuration passed into the Ollama client.
GiteaMirror added the pull-request label 2026-04-12 23:31:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11497