fix(agent): pass dummy apiKey for Ollama provider registration
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

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) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 12:08:03 -05:00
parent ea524a6ba1
commit a350333711

View File

@@ -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,