fix(agent): pass dummy apiKey for Ollama provider registration
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user