We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ae268d commit 8b48910Copy full SHA for 8b48910
learn-pr/wwl-data-ai/ai-foundry-sdk/includes/04-chat-client.md
@@ -76,15 +76,15 @@ namespace my_foundry_client
76
77
// Get a chat client
78
ChatClient chatClient = projectClient.GetAzureOpenAIChatClient(
79
- deploymentName: model_deployment,
+ deploymentName: model_deployment_name,
80
connectionName: null,
81
apiVersion: "2024-10-21");
82
83
// Get a chat completion based on a user-provided prompt
84
Console.WriteLine("Enter a question:");
85
var user_prompt = Console.ReadLine();
86
87
- ChatCompletion completion = openaiClient.CompleteChat(
+ ChatCompletion completion = chatClient.CompleteChat(
88
[
89
new SystemChatMessage("You are a helpful AI assistant."),
90
new UserChatMessage(user_prompt)
0 commit comments