Skip to content

Commit cfa5ac8

Browse files
fix tests weekly (#39018)
1 parent 596b2c0 commit cfa5ac8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

sdk/openai/azure-openai/tests/test_chat_completions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,15 +1115,15 @@ def test_chat_completion_tools_parallel_func(self, client, api_type, api_version
11151115
@pytest.mark.parametrize("api_type, api_version", [(GPT_4_AZURE, GA), (GPT_4_AZURE, PREVIEW), (GPT_4_OPENAI, "v1")])
11161116
def test_chat_completion_vision(self, client, api_type, api_version, **kwargs):
11171117
completion = client.chat.completions.create(
1118-
model="gpt-4-vision-preview",
1118+
model="gpt-4o-mini",
11191119
messages=[
11201120
{
11211121
"role": "user",
11221122
"content": [
11231123
{"type": "text", "text": "What's in this image?"},
11241124
{
11251125
"type": "image_url",
1126-
"image_url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg",
1126+
"image_url": {"url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg"}
11271127
},
11281128
],
11291129
}

sdk/openai/azure-openai/tests/test_chat_completions_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,15 +1140,15 @@ async def test_chat_completion_tools_parallel_func(self, client_async, api_type,
11401140
@pytest.mark.parametrize("api_type, api_version", [(GPT_4_AZURE, GA), (GPT_4_AZURE, PREVIEW), (GPT_4_OPENAI, "v1")])
11411141
async def test_chat_completion_vision(self, client_async, api_type, api_version, **kwargs):
11421142
completion = await client_async.chat.completions.create(
1143-
model="gpt-4-vision-preview",
1143+
model="gpt-4o-mini",
11441144
messages=[
11451145
{
11461146
"role": "user",
11471147
"content": [
11481148
{"type": "text", "text": "What's in this image?"},
11491149
{
11501150
"type": "image_url",
1151-
"image_url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg",
1151+
"image_url": {"url": "https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/images/handwritten-note.jpg"}
11521152
},
11531153
],
11541154
}

sdk/openai/azure-openai/tests/test_completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def test_completion_logprobs(self, client, api_type, api_version, **kwargs):
245245
@configure
246246
@pytest.mark.parametrize(
247247
"api_type, api_version",
248-
[(AZURE, PREVIEW), (AZURE, GA), (OPENAI, "v1")]
248+
[(AZURE, PREVIEW), (AZURE, GA)]
249249
)
250250
def test_completion_echo(self, client, api_type, api_version, **kwargs):
251251

sdk/openai/azure-openai/tests/test_completions_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ async def test_completion_logprobs(self, client_async, api_type, api_version, **
256256
@pytest.mark.asyncio
257257
@pytest.mark.parametrize(
258258
"api_type, api_version",
259-
[(AZURE, PREVIEW), (AZURE, GA), (OPENAI, "v1")]
259+
[(AZURE, PREVIEW), (AZURE, GA)]
260260
)
261261
async def test_completion_echo(self, client_async, api_type, api_version, **kwargs):
262262

0 commit comments

Comments
 (0)