Skip to content

Commit 57d1a5e

Browse files
.Net: Switch from hardcoded model id (#11234)
### Motivation and Context Small fix from the bug bash ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
1 parent 4e74b28 commit 57d1a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/samples/GettingStartedWithAgents/AzureAIAgent/Step01_AzureAIAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public async Task UseTemplateForAzureAgentAsync()
1919
string generateStoryYaml = EmbeddedResource.Read("GenerateStory.yaml");
2020
PromptTemplateConfig templateConfig = KernelFunctionYaml.ToPromptTemplateConfig(generateStoryYaml);
2121
// Instructions, Name and Description properties defined via the PromptTemplateConfig.
22-
Azure.AI.Projects.Agent definition = await this.AgentsClient.CreateAgentAsync("gpt-4o", templateConfig.Name, templateConfig.Description, templateConfig.Template);
22+
Azure.AI.Projects.Agent definition = await this.AgentsClient.CreateAgentAsync(TestConfiguration.AzureAI.ChatModelId, templateConfig.Name, templateConfig.Description, templateConfig.Template);
2323
AzureAIAgent agent = new(
2424
definition,
2525
this.AgentsClient,

0 commit comments

Comments
 (0)