Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_decrease_anys_opus5_round2

mateo-berri98b04de455d6
diff --cc litellm/responses/litellm_completion_transformation/session_handler.py
index 6c66c3fafc6,7798dfeb6bd..f749977eb82
--- a/litellm/responses/litellm_completion_transformation/session_handler.py
+++ b/litellm/responses/litellm_completion_transformation/session_handler.py
@@@ -4,7 -4,8 +4,8 @@@ from typing import TYPE_CHECKING, Any,
import litellm
from litellm._logging import verbose_proxy_logger
+ from litellm.constants import REDACTED_BY_LITELLM, REDACTED_TOOL_CALL_ARGUMENTS_PLACEHOLDER
-from litellm.proxy._types import SpendLogsPayload
+from litellm.proxy._types import SpendLogsMetadata, SpendLogsPayload
from litellm.proxy.spend_tracking.cold_storage_handler import ColdStorageHandler
from litellm.responses.utils import ResponsesAPIRequestUtils
from litellm.types.llms.openai import (
@@@ -143,7 -155,8 +155,8 @@@ class ResponsesSessionHandler
model_response: Final = ModelResponse(**_response_output)
for choice in model_response.choices:
if hasattr(choice, "message"):
- _normalize_redacted_tool_call_arguments(message := getattr(choice, "message"))
- chat_completion_message_history.append(message)
++ _normalize_redacted_tool_call_arguments(choice.message)
+ chat_completion_message_history.append(choice.message)
return chat_completion_message_history
@staticmethod