fix(logging): avoid copying Responses output twice

This commit is contained in:
Emerson Gomes 2026-09-26 11:49:54 -05:00
parent 0036df1213
commit f022486034
No known key found for this signature in database
GPG key ID: D3DF28AB5D1B5E17

View file

@ -173,7 +173,7 @@ def _redact_responses_api_output_dict(output_items, redacted_str: str):
def _redacted_responses_api_response(response: Mapping[str, object]) -> dict[str, object]:
output: Final = copy.deepcopy(response.get("output"))
output: Final = response.get("output")
if isinstance(output, list):
_redact_responses_api_output_dict(output, REDACTED_BY_LITELLM)
return {