From 630639f74797066d38f0d13235fc99b3c75a85f4 Mon Sep 17 00:00:00 2001 From: far5man <24564255+far5man@users.noreply.github.com> Date: Fri, 25 Sep 2026 07:01:27 +0200 Subject: [PATCH] test: preserve Opus 5.5 thinking for OpenRouter alias --- .../service/gateway_anthropic_apikey_passthrough_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/internal/service/gateway_anthropic_apikey_passthrough_test.go b/backend/internal/service/gateway_anthropic_apikey_passthrough_test.go index 8a4159c113..1925404467 100644 --- a/backend/internal/service/gateway_anthropic_apikey_passthrough_test.go +++ b/backend/internal/service/gateway_anthropic_apikey_passthrough_test.go @@ -1803,6 +1803,7 @@ func TestOpus55RejectsUnsupportedParametersBeforeMimicry(t *testing.T) { func TestOpus55ThinkingDefaultPreservesSignedHistory(t *testing.T) { body := []byte(`{"model":"claude-opus-5-5","messages":[{"role":"assistant","content":[{"type":"thinking","thinking":"","signature":"signed"},{"type":"redacted_thinking","data":"encrypted"},{"type":"tool_use","id":"toolu_1","name":"lookup","input":{}}]},{"role":"user","content":[{"type":"tool_result","tool_use_id":"toolu_1","content":"ok"}]}],"tool_choice":{"type":"none"},"thinking":{"type":"adaptive","display":"omitted"}}`) require.Equal(t, string(body), string(FilterThinkingBlocks(body, "claude-opus-5-5"))) + require.Equal(t, string(body), string(FilterThinkingBlocks(body, "anthropic/claude-opus-5.5"))) withoutThinking, _ := deleteJSONPathBytes(body, "thinking") require.Equal(t, string(withoutThinking), string(FilterThinkingBlocks(withoutThinking, "claude-opus-5-5"))) out, _ := normalizeClaudeOAuthRequestBody(body, "claude-opus-5-5", claudeOAuthNormalizeOptions{})