Skip to content

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]

test(azure): avoid rebinding messages in managed file id regression test

Devin AIf21953571765
diff --git a/tests/test_litellm/llms/azure/chat/test_azure_chat_gpt_transformation.py b/tests/test_litellm/llms/azure/chat/test_azure_chat_gpt_transformation.py
index 774b58369fb..c8451b9b48f 100644
--- a/tests/test_litellm/llms/azure/chat/test_azure_chat_gpt_transformation.py
+++ b/tests/test_litellm/llms/azure/chat/test_azure_chat_gpt_transformation.py
@@ -328,11 +328,11 @@ def test_transform_request_strips_litellm_format_from_managed_file_id():
],
}
]
- messages = update_messages_with_model_file_ids(messages, None, {})
+ updated_messages = update_messages_with_model_file_ids(messages, None, {})
request = AzureOpenAIConfig().transform_request(
model="gpt-5.4",
- messages=messages,
+ messages=updated_messages,
optional_params={},
litellm_params={},
headers={},