diff --git a/sdk/openai/azure-openai/tests/test_chat_completions.py b/sdk/openai/azure-openai/tests/test_chat_completions.py index e43bee6944ee..26be2acf346d 100644 --- a/sdk/openai/azure-openai/tests/test_chat_completions.py +++ b/sdk/openai/azure-openai/tests/test_chat_completions.py @@ -1115,7 +1115,7 @@ def test_chat_completion_tools_parallel_func(self, client, api_type, api_version @pytest.mark.parametrize("api_type, api_version", [(GPT_4_AZURE, GA), (GPT_4_AZURE, PREVIEW), (GPT_4_OPENAI, "v1")]) def test_chat_completion_vision(self, client, api_type, api_version, **kwargs): completion = client.chat.completions.create( - model="gpt-4-vision-preview", + model="gpt-4o-mini", messages=[ { "role": "user", @@ -1123,7 +1123,7 @@ def test_chat_completion_vision(self, client, api_type, api_version, **kwargs): {"type": "text", "text": "What's in this image?"}, { "type": "image_url", - "image_url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg", + "image_url": {"url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg"} }, ], } diff --git a/sdk/openai/azure-openai/tests/test_chat_completions_async.py b/sdk/openai/azure-openai/tests/test_chat_completions_async.py index 8b92f558ce86..2c9b75a0aed7 100644 --- a/sdk/openai/azure-openai/tests/test_chat_completions_async.py +++ b/sdk/openai/azure-openai/tests/test_chat_completions_async.py @@ -1140,7 +1140,7 @@ async def test_chat_completion_tools_parallel_func(self, client_async, api_type, @pytest.mark.parametrize("api_type, api_version", [(GPT_4_AZURE, GA), (GPT_4_AZURE, PREVIEW), (GPT_4_OPENAI, "v1")]) async def test_chat_completion_vision(self, client_async, api_type, api_version, **kwargs): completion = await client_async.chat.completions.create( - model="gpt-4-vision-preview", + model="gpt-4o-mini", messages=[ { "role": "user", @@ -1148,7 +1148,7 @@ async def test_chat_completion_vision(self, client_async, api_type, api_version, {"type": "text", "text": "What's in this image?"}, { "type": "image_url", - "image_url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg", + "image_url": {"url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg"} }, ], } diff --git a/sdk/openai/azure-openai/tests/test_completions.py b/sdk/openai/azure-openai/tests/test_completions.py index 712ca4fffa01..0af68eeb7622 100644 --- a/sdk/openai/azure-openai/tests/test_completions.py +++ b/sdk/openai/azure-openai/tests/test_completions.py @@ -245,7 +245,7 @@ def test_completion_logprobs(self, client, api_type, api_version, **kwargs): @configure @pytest.mark.parametrize( "api_type, api_version", - [(AZURE, PREVIEW), (AZURE, GA), (OPENAI, "v1")] + [(AZURE, PREVIEW), (AZURE, GA)] ) def test_completion_echo(self, client, api_type, api_version, **kwargs): diff --git a/sdk/openai/azure-openai/tests/test_completions_async.py b/sdk/openai/azure-openai/tests/test_completions_async.py index 6d9f150e292c..88966a6eb80d 100644 --- a/sdk/openai/azure-openai/tests/test_completions_async.py +++ b/sdk/openai/azure-openai/tests/test_completions_async.py @@ -256,7 +256,7 @@ async def test_completion_logprobs(self, client_async, api_type, api_version, ** @pytest.mark.asyncio @pytest.mark.parametrize( "api_type, api_version", - [(AZURE, PREVIEW), (AZURE, GA), (OPENAI, "v1")] + [(AZURE, PREVIEW), (AZURE, GA)] ) async def test_completion_echo(self, client_async, api_type, api_version, **kwargs):