Skip to content

Commit

Permalink
fix tests weekly (Azure#39018)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapratico authored Jan 2, 2025
1 parent 596b2c0 commit cfa5ac8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sdk/openai/azure-openai/tests/test_chat_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,15 +1115,15 @@ 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",
"content": [
{"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"}
},
],
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/openai/azure-openai/tests/test_chat_completions_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,15 +1140,15 @@ 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",
"content": [
{"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"}
},
],
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/azure-openai/tests/test_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/azure-openai/tests/test_completions_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit cfa5ac8

Please sign in to comment.