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]

test responses api non streaming

Ishaan Jafferc5f87d1d65b7
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py
index 4d6fd351858..41378bfd275 100644
--- a/litellm/litellm_core_utils/litellm_logging.py
+++ b/litellm/litellm_core_utils/litellm_logging.py
@@ -1580,6 +1580,8 @@ class Logging(LiteLLMLoggingBaseClass):
"usage",
transformed_usage.model_dump() if hasattr(transformed_usage, 'model_dump') else dict(transformed_usage),
)
+ if (standard_logging_payload := self.model_call_details.get("standard_logging_object")) is not None:
+ standard_logging_payload["response"] = result.model_dump() if hasattr(result, 'model_dump') else dict(result)
if (
litellm.max_budget