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
Update transformation.py
Cesar Garcia13dbcb182cf1
diff --git a/litellm/llms/openai/responses/count_tokens/transformation.py b/litellm/llms/openai/responses/count_tokens/transformation.pyindex b9b36dcbea5..282f530791f 100644--- a/litellm/llms/openai/responses/count_tokens/transformation.py+++ b/litellm/llms/openai/responses/count_tokens/transformation.py@@ -128,7 +128,6 @@ class OpenAICountTokensConfig:text_parts.append(block)content = "\n".join(text_parts)input_items.append({"role": "user", "content": content})- input_items.append({"role": "user", "content": content})elif role == "assistant":# Map tool_calls to Responses API function_call itemstool_calls = msg.get("tool_calls")