diff --git a/litellm/llms/openai/responses/count_tokens/transformation.py b/litellm/llms/openai/responses/count_tokens/transformation.py index 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 items tool_calls = msg.get("tool_calls")