Skip to content

Commit 6cb1723

Browse files
committed
feat: 🐛 Only enable beta header for claude models
1 parent ccaef8a commit 6cb1723

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/llm/llms/Bedrock.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ class Bedrock extends BaseLLM {
335335
budget_tokens: options.reasoningBudgetTokens,
336336
}
337337
: undefined,
338-
anthropic_beta: ["fine-grained-tool-streaming-2025-05-14"],
338+
anthropic_beta: options.model.includes("claude")
339+
? ["fine-grained-tool-streaming-2025-05-14"]
340+
: undefined,
339341
},
340342
};
341343
}

0 commit comments

Comments
 (0)