Skip to content

Commit 9c0b240

Browse files
committed
agents tests - support model overrides
1 parent 09f5b04 commit 9c0b240

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sdk/ai/azure-ai-projects/.env.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ AZURE_AI_PROJECTS_TESTS_PROJECT_ENDPOINT=
5050

5151
# Used in Agent tests
5252
AZURE_AI_PROJECTS_TESTS_AGENTS_PROJECT_ENDPOINT=
53+
AZURE_AI_PROJECTS_TESTS_AGENTS_MODEL_DEPLOYMENT_NAME=
54+
AZURE_AI_PROJECTS_TESTS_AGENTS_IMAGE_MODEL_DEPLOYMENT_NAME=
5355

5456
# Used in tracing tests
5557
AZURE_AI_PROJECTS_TESTS_TRACING_PROJECT_ENDPOINT=

sdk/ai/azure-ai-projects/tests/test_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Copyright (c) Microsoft Corporation.
44
# Licensed under the MIT License.
55
# ------------------------------------
6+
import os
67
import random
78
import re
89
import functools
@@ -84,12 +85,12 @@ class TestBase(AzureRecordedTestCase):
8485
}
8586

8687
test_agents_params = {
87-
"model_deployment_name": "gpt-4o",
88+
"model_deployment_name": os.environ.get("AZURE_AI_PROJECTS_TESTS_AGENTS_MODEL_DEPLOYMENT_NAME") or "gpt-4o",
8889
"agent_name": "agent-for-python-projects-sdk-testing",
8990
}
9091

9192
test_agents_tools_params = {
92-
"image_generation_model_deployment_name": "gpt-image-1-mini",
93+
"image_generation_model_deployment_name": os.environ.get("AZURE_AI_PROJECTS_TESTS_AGENTS_IMAGE_MODEL_DEPLOYMENT_NAME") or "gpt-image-1-mini",
9394
}
9495

9596
test_inference_params = {

0 commit comments

Comments
 (0)