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,12 +584,15 @@ func TestFilterSignatureSensitiveBlocksForRetry_RemovesClearThinkingStrategy(t *
cm, ok := req["context_management"].(map[string]any)
require.True(t, ok)
edits, _ := cm["edits"].([]any)
if rawEdits, hasEdits := cm["edits"]; hasEdits {
edits, ok := rawEdits.([]any)
require.True(t, ok)
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 应被移除")
}
}
}
func TestFilterSignatureSensitiveBlocksForRetry_PreservesNonThinkingStrategies(t *testing.T) {
......
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