Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const expectedHandlers = {
[providerIdentifiers.ollama]: NativeOllamaHandler,
[providerIdentifiers.lmstudio]: LmStudioHandler,
[providerIdentifiers.gemini]: GeminiHandler,
// Gemini CLI currently relies on the factory's default Anthropic handler.
// Gemini CLI has no dedicated handler yet; the factory routes it explicitly to the Anthropic handler.
[providerIdentifiers.geminiCli]: AnthropicHandler,
[providerIdentifiers.openaiCodex]: OpenAiCodexHandler,
[providerIdentifiers.openaiNative]: OpenAiNativeHandler,
Expand Down
5 changes: 5 additions & 0 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ export function buildApiHandler(configuration: ProviderSettings): ApiHandler {
return new BasetenHandler(options)
case providerIdentifiers.poe:
return new PoeHandler(options)
// Gemini CLI has no dedicated handler yet. Route it explicitly to the
// Anthropic handler (the current runtime behavior) so the fallback is
// documented instead of falling through the default implicitly (#1029).
case providerIdentifiers.geminiCli:
return new AnthropicHandler(options)
default:
return new AnthropicHandler(options)
}
Expand Down
Loading