fix(models): use adaptive thinking for Claude
This commit is contained in:
@@ -85,6 +85,7 @@ function createProviderConfig(
|
|||||||
supportsLongCacheRetention: false,
|
supportsLongCacheRetention: false,
|
||||||
supportsCacheControlOnTools: false,
|
supportsCacheControlOnTools: false,
|
||||||
supportsToolReferences: false,
|
supportsToolReferences: false,
|
||||||
|
...(model.reasoning ? { forceAdaptiveThinking: true } : {}),
|
||||||
},
|
},
|
||||||
})),
|
})),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -731,6 +731,8 @@ try {
|
|||||||
"commandcode",
|
"commandcode",
|
||||||
"--model",
|
"--model",
|
||||||
CLAUDE_TEST_MODEL,
|
CLAUDE_TEST_MODEL,
|
||||||
|
"--thinking",
|
||||||
|
"high",
|
||||||
],
|
],
|
||||||
30_000,
|
30_000,
|
||||||
)
|
)
|
||||||
@@ -738,6 +740,8 @@ try {
|
|||||||
assert.match(claudePrint.stdout, /mock-pi-ok/)
|
assert.match(claudePrint.stdout, /mock-pi-ok/)
|
||||||
assert.equal(requestCount, 1)
|
assert.equal(requestCount, 1)
|
||||||
assert.equal(lastRequestBody?.model, CLAUDE_TEST_MODEL)
|
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-api-key"], "mock-key")
|
||||||
assert.equal(lastRequestHeaders["x-cmd-zdr"], "1")
|
assert.equal(lastRequestHeaders["x-cmd-zdr"], "1")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user