We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3020b5d commit 63ced53Copy full SHA for 63ced53
src/api/index.ts
@@ -116,11 +116,7 @@ export function buildApiHandler(configuration: ProviderSettings): ApiHandler {
116
case "litellm":
117
return new LiteLLMHandler(options)
118
default:
119
- // If apiProvider is undefined, default to claude-code for better user experience
120
- if (apiProvider === undefined) {
121
- return new ClaudeCodeHandler(options)
122
- }
123
- // For any unknown provider, throw an error instead of silently defaulting to Anthropic
124
- throw new Error(`Unknown API provider: ${apiProvider}. Please check your configuration.`)
+ apiProvider satisfies "gemini-cli" | undefined
+ return new AnthropicHandler(options)
125
}
126
0 commit comments