Skip to content

Commit e9805a4

Browse files
Merge pull request #51316 from GraemeMalcolm/main
Code fixes
2 parents 5ae268d + 8b48910 commit e9805a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

learn-pr/wwl-data-ai/ai-foundry-sdk/includes/04-chat-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ namespace my_foundry_client
7676

7777
// Get a chat client
7878
ChatClient chatClient = projectClient.GetAzureOpenAIChatClient(
79-
deploymentName: model_deployment,
79+
deploymentName: model_deployment_name,
8080
connectionName: null,
8181
apiVersion: "2024-10-21");
8282

8383
// Get a chat completion based on a user-provided prompt
8484
Console.WriteLine("Enter a question:");
8585
var user_prompt = Console.ReadLine();
8686

87-
ChatCompletion completion = openaiClient.CompleteChat(
87+
ChatCompletion completion = chatClient.CompleteChat(
8888
[
8989
new SystemChatMessage("You are a helpful AI assistant."),
9090
new UserChatMessage(user_prompt)

0 commit comments

Comments
 (0)