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

Update backend/internal/service/gateway_request.go


Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>
parent 1071fe0a
...@@ -507,7 +507,11 @@ func FilterSignatureSensitiveBlocksForRetry(body []byte) []byte { ...@@ -507,7 +507,11 @@ func FilterSignatureSensitiveBlocksForRetry(body []byte) []byte {
filtered = append(filtered, edit) filtered = append(filtered, edit)
} }
if len(filtered) != len(edits) { if len(filtered) != len(edits) {
cm["edits"] = filtered if len(filtered) == 0 {
delete(cm, "edits")
} else {
cm["edits"] = filtered
}
} }
} }
} }
......
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