File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/types/src/providers
src/api/providers/fetchers Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export const OPEN_ROUTER_REASONING_BUDGET_MODELS = new Set([
8484 "anthropic/claude-opus-4.1" ,
8585 "anthropic/claude-sonnet-4" ,
8686 "anthropic/claude-sonnet-4.5" ,
87+ "anthropic/claude-haiku-4.5" ,
8788 "google/gemini-2.5-pro-preview" ,
8889 "google/gemini-2.5-pro" ,
8990 "google/gemini-2.5-flash-preview-05-20" ,
Original file line number Diff line number Diff line change @@ -253,6 +253,13 @@ export const parseOpenRouterModel = ({
253253 modelInfo . maxTokens = anthropicModels [ "claude-opus-4-1-20250805" ] . maxTokens
254254 }
255255
256+ // Ensure correct reasoning handling for Claude Haiku 4.5 on OpenRouter
257+ // Use budget control and disable effort-based reasoning fallback
258+ if ( id === "anthropic/claude-haiku-4.5" ) {
259+ modelInfo . supportsReasoningBudget = true
260+ modelInfo . supportsReasoningEffort = false
261+ }
262+
256263 // Set horizon-alpha model to 32k max tokens
257264 if ( id === "openrouter/horizon-alpha" ) {
258265 modelInfo . maxTokens = 32768
You can’t perform that action at this time.
0 commit comments