Extend interleaved thinking test to Anthropic first-party provider (#1413)

* extend interleaved thinking test to Anthropic first-party provider

* switch back to global Bedrock model identifier

* set retry to 3 for both

* enable bedrock claude interleaved thinking by default and use completeSimple in test
This commit is contained in:
Markus Ylisiurunen
2026-02-12 18:27:42 +02:00
committed by GitHub
parent 7ddb7c67a8
commit 28c0991281
2 changed files with 28 additions and 21 deletions

View File

@@ -664,7 +664,7 @@ function buildAdditionalModelRequestFields(
return undefined;
}
if (model.id.includes("anthropic.claude")) {
if (model.id.includes("anthropic.claude") || model.id.includes("anthropic/claude")) {
const result: Record<string, any> = supportsAdaptiveThinking(model.id)
? {
thinking: { type: "adaptive" },
@@ -691,7 +691,7 @@ function buildAdditionalModelRequestFields(
};
})();
if (options.interleavedThinking && !supportsAdaptiveThinking(model.id)) {
if (!supportsAdaptiveThinking(model.id) && (options.interleavedThinking ?? true)) {
result.anthropic_beta = ["interleaved-thinking-2025-05-14"];
}