Skip to content

Commit 63ced53

Browse files
committed
revert: restore original default case in buildApiHandler as requested
1 parent 3020b5d commit 63ced53

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/api/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ export function buildApiHandler(configuration: ProviderSettings): ApiHandler {
116116
case "litellm":
117117
return new LiteLLMHandler(options)
118118
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.`)
119+
apiProvider satisfies "gemini-cli" | undefined
120+
return new AnthropicHandler(options)
125121
}
126122
}

0 commit comments

Comments
 (0)