Unverified Commit fa72f194 authored by 时雨遥's avatar 时雨遥 Committed by GitHub
Browse files

Update backend/internal/service/gateway_request_test.go


Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>
parent 9ee7d393
...@@ -584,11 +584,14 @@ func TestFilterSignatureSensitiveBlocksForRetry_RemovesClearThinkingStrategy(t * ...@@ -584,11 +584,14 @@ func TestFilterSignatureSensitiveBlocksForRetry_RemovesClearThinkingStrategy(t *
cm, ok := req["context_management"].(map[string]any) cm, ok := req["context_management"].(map[string]any)
require.True(t, ok) require.True(t, ok)
edits, _ := cm["edits"].([]any) if rawEdits, hasEdits := cm["edits"]; hasEdits {
for _, e := range edits { edits, ok := rawEdits.([]any)
em, ok := e.(map[string]any)
require.True(t, ok) require.True(t, ok)
require.NotEqual(t, "clear_thinking_20251015", em["type"], "clear_thinking_20251015 应被移除") for _, e := range edits {
em, ok := e.(map[string]any)
require.True(t, ok)
require.NotEqual(t, "clear_thinking_20251015", em["type"], "clear_thinking_20251015 应被移除")
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment