fix: adaptive thinking for Claude Sonnet and Haiku 5.5 (#12761)

This commit is contained in:
Jack Amadeo
2026-10-08 13:42:44 +00:00
committed by GitHub
parent 9560429ff9
commit a4189ec8c7
3 changed files with 1620 additions and 404 deletions
File diff suppressed because it is too large Load Diff
@@ -405,7 +405,7 @@
"env": [
"CORAL_API_KEY"
],
"model_count": 5
"model_count": 4
},
{
"id": "cortecs",
@@ -416,7 +416,7 @@
"env": [
"CORTECS_API_KEY"
],
"model_count": 103
"model_count": 105
},
{
"id": "crof",
@@ -549,7 +549,7 @@
"env": [
"EDENAI_API_KEY"
],
"model_count": 294
"model_count": 295
},
{
"id": "empiriolabs",
@@ -968,7 +968,7 @@
"env": [
"LLMGATEWAY_API_KEY"
],
"model_count": 215
"model_count": 217
},
{
"id": "llmgateway-providers",
@@ -979,7 +979,7 @@
"env": [
"LLMGATEWAY_API_KEY"
],
"model_count": 442
"model_count": 444
},
{
"id": "llmtech",
@@ -1376,7 +1376,7 @@
"env": [
"OLLAMA_API_KEY"
],
"model_count": 24
"model_count": 25
},
{
"id": "opencode",
@@ -1387,7 +1387,7 @@
"env": [
"OPENCODE_API_KEY"
],
"model_count": 116
"model_count": 119
},
{
"id": "opencode-go",
@@ -1398,7 +1398,7 @@
"env": [
"OPENCODE_API_KEY"
],
"model_count": 34
"model_count": 35
},
{
"id": "openreason",
@@ -40,6 +40,8 @@ fn inferred_thinking_mode(canonical_id: &str) -> Option<ThinkingMode> {
"anthropic/claude-opus-4.8" => Some(ThinkingMode::Adaptive),
"anthropic/claude-sonnet-4.6" => Some(ThinkingMode::Adaptive),
"anthropic/claude-sonnet-5" => Some(ThinkingMode::Adaptive),
"anthropic/claude-sonnet-5.5" => Some(ThinkingMode::AlwaysOnAdaptive),
"anthropic/claude-haiku-5.5" => Some(ThinkingMode::AlwaysOnAdaptive),
_ => None,
}
}