mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-14 12:02:27 +08:00
ResponsesToAnthropicRequest only recognized opus/sonnet 5.5, so Haiku requests fell into the generic enabled+budget_tokens path (upstream 400) and lost signed thinking history (preserveThinking=false). Mirror the Messages-side rules: adaptive+medium default, none->disabled+low, temp/top_p/combo guards, forced tool_choice allowed. Also preserve Haiku55 thinking signatures in AnthropicToResponsesResponse and streaming state, and name the model correctly in the between_tools rejection.