Skip to content

Commit c97d0d8

Browse files
committed
Make agent model deployment name configurable via environment variable
1 parent 8646fbe commit c97d0d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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
@@ -101,7 +102,7 @@ class TestBase(AzureRecordedTestCase):
101102
}
102103

103104
test_agents_params = {
104-
"model_deployment_name": "gpt-4o",
105+
"model_deployment_name": os.environ.get("AZURE_AI_PROJECTS_TESTS_AGENTS_MODEL_DEPLOYMENT_NAME") or "gpt-4o",
105106
"agent_name": "agent-for-python-projects-sdk-testing",
106107
}
107108

0 commit comments

Comments
 (0)