mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(logging): avoid copying Responses output twice
This commit is contained in:
parent
0036df1213
commit
f022486034
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue