fix(models): use adaptive thinking for Claude

This commit is contained in:
Patrick Wozniak
2026-08-20 00:13:56 +02:00
parent 4f91a9b00b
commit ed29c59f31
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -85,6 +85,7 @@ function createProviderConfig(
supportsLongCacheRetention: false,
supportsCacheControlOnTools: false,
supportsToolReferences: false,
...(model.reasoning ? { forceAdaptiveThinking: true } : {}),
},
})),
}
+4
View File
@@ -731,6 +731,8 @@ try {
"commandcode",
"--model",
CLAUDE_TEST_MODEL,
"--thinking",
"high",
],
30_000,
)
@@ -738,6 +740,8 @@ try {
assert.match(claudePrint.stdout, /mock-pi-ok/)
assert.equal(requestCount, 1)
assert.equal(lastRequestBody?.model, CLAUDE_TEST_MODEL)
assert.equal(lastRequestBody?.thinking?.type, "adaptive")
assert.deepEqual(lastRequestBody?.output_config, { effort: "high" })
assert.equal(lastRequestHeaders["x-api-key"], "mock-key")
assert.equal(lastRequestHeaders["x-cmd-zdr"], "1")