Fix mypy
Some checks are pending
Unit Tests: Proxy DB Operations / assert-shard-coverage (push) Waiting to run
Unit Tests: Proxy DB Operations / auth-checks (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / budgets (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / custom-logging (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / db-and-spend (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / endpoints-and-responses (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / guardrails-hooks (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / jwt-and-keys (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / key-generation (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / logging-misc (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / proxy-runtime (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / proxy-server-core (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / schema-migration (push) Blocked by required conditions
Unit Tests: Proxy DB Operations / proxy-utils (push) Blocked by required conditions
Unit Tests: Security / security (push) Waiting to run

This commit is contained in:
Sameer Kankute 2026-05-29 09:20:53 +05:30
parent f4d247d0b9
commit 82d24e3b7a
No known key found for this signature in database

View file

@ -207,9 +207,7 @@ class CatoNetworksGuardrail(CustomGuardrail):
if action_type and action_type == "anonymize_action" and redacted_chat:
all_redacted = redacted_chat.get("all_redacted_messages") or []
if all_redacted:
return {
"redacted_output": all_redacted[-1]["content"]
}
return {"redacted_output": all_redacted[-1]["content"]}
return {"redacted_output": output}
def _handle_block_action_on_output(