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
test_langfuse_logging_completion
Ishaan Jaffcf03b2a797a6
diff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex 83e8525fa9e..2cc06eecbf3 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -598,6 +598,11 @@ class Message(OpenAIObject):# OpenAI compatible APIs like mistral API will raise an error if audio is passed indel self.audio+ if annotations is None:+ # ensure default response matches OpenAI spec+ # Some OpenAI compatible APIs raise an error if annotations are passed in+ del self.annotations+if reasoning_content is None:# ensure default response matches OpenAI specdel self.reasoning_content