From 9173c29b66885b44a55d12643218740433e647aa Mon Sep 17 00:00:00 2001 From: "Moradii.Mohammadreza" Date: Wed, 15 Jul 2026 17:08:06 +0700 Subject: [PATCH] feat(translator): drop temperature for all Claude models Broaden strip rule from /claude-opus-4/i to /claude/i so temperature is removed for every Claude model, not just opus-4. Fixes Anthropic 400 on OpenAI-compatible routes. #1748 --- open-sse/translator/concerns/paramSupport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/open-sse/translator/concerns/paramSupport.js b/open-sse/translator/concerns/paramSupport.js index dc030194..4780b3c1 100644 --- a/open-sse/translator/concerns/paramSupport.js +++ b/open-sse/translator/concerns/paramSupport.js @@ -4,8 +4,8 @@ // Each rule: optional provider, regex match on model, list of params to drop. // A param is removed only when it is present (!== undefined). const STRIP_RULES = [ - // claude-opus-4 series: temperature is deprecated (Anthropic 400). #1748 - { match: /claude-opus-4/i, drop: ["temperature"] }, + // All Claude models: temperature deprecated/rejected upstream (Anthropic 400). #1748 + { match: /claude/i, drop: ["temperature"] }, // GitHub Copilot gpt-5.4: temperature unsupported. { provider: "github", match: /gpt-5\.4/i, drop: ["temperature"] }, // GitHub Copilot Claude (except opus/sonnet 4.6): thinking + reasoning_effort rejected. #713