From 3dffb6bd403f7080af62da958ca29208b6c73f31 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 25 Oct 2025 11:20:09 -0700 Subject: [PATCH] test fixes --- tests/llm_translation/test_azure_ai.py | 8 ++++---- tests/llm_translation/test_azure_openai.py | 17 ----------------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/tests/llm_translation/test_azure_ai.py b/tests/llm_translation/test_azure_ai.py index c007fda547..91fa8c0bba 100644 --- a/tests/llm_translation/test_azure_ai.py +++ b/tests/llm_translation/test_azure_ai.py @@ -300,16 +300,16 @@ async def test_azure_ai_request_format(): @pytest.mark.asyncio -@pytest.mark.parametrize("model", ["azure/gpt5_series/gpt-5", "azure/gpt-5"]) +@pytest.mark.parametrize("model", ["azure/gpt5_series/gpt-5-mini", "azure/gpt-5-mini"]) async def test_azure_gpt5_reasoning(model): litellm._turn_on_debug() response = await litellm.acompletion( - model="azure/gpt5_series/gpt-5", + model=model, messages=[{"role": "user", "content": "What is the capital of France?"}], reasoning_effort="minimal", max_tokens=10, - api_base=os.getenv("AZURE_GPT5_API_BASE"), - api_key=os.getenv("AZURE_GPT5_API_KEY"), + api_base=os.getenv("AZURE_API_BASE"), + api_key=os.getenv("AZURE_API_KEY"), ) print("response: ", response) assert response.choices[0].message.content is not None diff --git a/tests/llm_translation/test_azure_openai.py b/tests/llm_translation/test_azure_openai.py index b450da9939..edca8c46c9 100644 --- a/tests/llm_translation/test_azure_openai.py +++ b/tests/llm_translation/test_azure_openai.py @@ -630,20 +630,3 @@ def test_azure_openai_responses_bridge(): == "test-azure-computer-use-preview" ) assert mock_responses.call_args.kwargs["custom_llm_provider"] == "azure" - - -def test_azure_openai_gpt_5_responses_api(): - try: - from litellm import responses - - litellm._turn_on_debug() - - response = responses( - model="azure/gpt-5", - input="Hi good morning", - api_key=os.getenv("AZURE_GPT5_API_KEY"), - api_base=os.getenv("AZURE_GPT5_API_BASE"), - ) - print(f"response: {response}") - except litellm.RateLimitError: - pytest.skip("Skipping test due to RateLimitError")