Skip to content

Commit 2122be1

Browse files
authored
fix env var substitution logic by parametrization (#366)
* fix env var substitution logic by parametrization * Fix YAML syntax for chat model value * Fix YAML syntax for AZURE_AI_MODEL_DEPLOYMENT_NAME * Fix YAML syntax for AZURE_AI_MODEL_DEPLOYMENT_NAME
1 parent 1306377 commit 2122be1

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

samples/microsoft/python/getting-started-agents/hosted-agents/calculator-agent/agent.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ template:
2020
value: 2025-03-01-preview
2121
- name: APPLICATIONINSIGHTS_CONNECTION_STRING
2222
value: ${APPLICATIONINSIGHTS_CONNECTION_STRING}
23+
- name: AZURE_AI_MODEL_DEPLOYMENT_NAME
24+
value: "{{chat}}"
2325
resources:
2426
- kind: model
2527
id: gpt-4o-mini
28+
name: chat
29+

samples/microsoft/python/getting-started-agents/hosted-agents/msft-docs-agent/agent.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ template:
1616
- name: AZURE_AI_PROJECT_ENDPOINT
1717
value: ${AZURE_AI_PROJECT_ENDPOINT}
1818
- name: AZURE_AI_MODEL_DEPLOYMENT_NAME
19-
value: "gpt-4o-mini"
19+
value: "{{chat}}"
2020
resources:
2121
- kind: model
2222
id: gpt-4o-mini
23+
name: chat
24+

samples/microsoft/python/getting-started-agents/hosted-agents/web-search-agent/agent.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ template:
2424
- name: BING_GROUNDING_CONNECTION_NAME
2525
value: ${BING_GROUNDING_CONNECTION_NAME}
2626
- name: AZURE_AI_MODEL_DEPLOYMENT_NAME
27-
value: "gpt-4o-mini"
27+
value: "{{chat}}"
2828
resources:
2929
- kind: model
3030
id: gpt-4o-mini
31+
name: chat
3132
- kind: tool
3233
id: bing_grounding

0 commit comments

Comments
 (0)