diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-26 08:50:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-26 08:50:20 +0300 |
| commit | e4a6723bb679b13401020bb4953cd7c4c9564e8c (patch) | |
| tree | 6404ac14586e6207056b83f3db8a1cd9657992d1 /config.toml.example | |
| parent | 97e2dde7693618516a42019d7aa7cfda1f5a8811 (diff) | |
feat: optional API key for Ollama provider (Ollama Cloud)
Adds an optional HEXAI_OLLAMA_API_KEY (with OLLAMA_API_KEY fallback) so
the existing Ollama provider can target Ollama Cloud (ollama.ai) in
addition to a local server. When the key is empty the request is
unauthenticated, preserving local-server behavior byte-for-byte; when
set, an Authorization: Bearer header is attached for both Chat and
ChatStream. Documented cloud usage in config.toml.example.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'config.toml.example')
| -rw-r--r-- | config.toml.example | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.toml.example b/config.toml.example index 80253fc..26e817a 100644 --- a/config.toml.example +++ b/config.toml.example @@ -83,6 +83,11 @@ temperature = 0.2 [ollama] model = "qwen3-coder:30b-a3b-q4_K_M" base_url = "http://localhost:11434" +# For Ollama Cloud (ollama.ai subscription), point at the cloud endpoint and +# export an API key in the environment. The key is optional: leave it unset +# for a local Ollama server. +# base_url = "https://ollama.com" +# export HEXAI_OLLAMA_API_KEY=... # or OLLAMA_API_KEY temperature = 0.2 [anthropic] |
