test: remove redundant direct transformation test

This commit is contained in:
Niler Barcelos 2026-03-20 11:19:29 -03:00
parent bcf0e8182e
commit f75de6f510

View file

@ -190,31 +190,6 @@ def test_openai_model_with_thinking_converts_to_reasoning():
assert "thinking" not in call_kwargs, "thinking should NOT be passed directly to litellm.responses"
def test_anthropic_messages_pass_through_includes_metadata():
"""
Test that metadata is included in the transformed request body
when passed to the Anthropic messages pass-through.
"""
from litellm.llms.anthropic.experimental_pass_through.messages.transformation import (
AnthropicMessagesConfig,
)
from litellm.types.router import GenericLiteLLMParams
config = AnthropicMessagesConfig()
result = config.transform_anthropic_messages_request(
model="claude-3-5-sonnet-20240620",
messages=[{"role": "user", "content": "Hello"}],
anthropic_messages_optional_request_params={
"max_tokens": 100,
"metadata": {"user_id": "user-123"},
},
litellm_params=GenericLiteLLMParams(),
headers={},
)
assert result.get("metadata") == {"user_id": "user-123"}
def test_anthropic_messages_handler_forwards_metadata_through_full_flow():
"""
Test that metadata flows through the full anthropic_messages_handler path