From e4a6723bb679b13401020bb4953cd7c4c9564e8c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 26 Apr 2026 08:50:20 +0300 Subject: 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) --- config.toml.example | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.toml.example') 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] -- cgit v1.2.3