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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
working spend tracking + logging for response api
Ishaan Jaffd4ed38498469
diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.pyindex 5b811830e70..df746036da3 100644--- a/litellm/types/llms/openai.py+++ b/litellm/types/llms/openai.py@@ -742,6 +742,9 @@ class BaseLiteLLMOpenAIResponseObject(BaseModel):def __contains__(self, key):return key in self.__dict__+ def items(self):+ return self.__dict__.items()+class OutputTokensDetails(BaseLiteLLMOpenAIResponseObject):reasoning_tokens: int