From a350333711c14c90f47fddc1a685383fffd2cb01 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sun, 15 Mar 2026 12:08:03 -0500 Subject: [PATCH] fix(agent): pass dummy apiKey for Ollama provider registration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pi SDK's registerProvider requires apiKey even for Ollama's OpenAI-compatible API. Pass 'ollama' as a placeholder — Ollama ignores it. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/gateway/src/agent/provider.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gateway/src/agent/provider.service.ts b/apps/gateway/src/agent/provider.service.ts index 336f775..9b84df3 100644 --- a/apps/gateway/src/agent/provider.service.ts +++ b/apps/gateway/src/agent/provider.service.ts @@ -96,6 +96,7 @@ export class ProviderService implements OnModuleInit { id: 'ollama', name: 'Ollama', baseUrl: `${ollamaUrl}/v1`, + apiKey: 'ollama', models: modelIds.map((id) => ({ id, name: id,