Skip to content

Commit 821dd9d

Browse files
committed
docs: Fixed FunctionCalling example.
1 parent 7015d9c commit 821dd9d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tests/OpenAI.IntegrationTests/Examples/Examples.Chat.FunctionCalling.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task FunctionCalling()
2222
requiresAction = false;
2323
CreateChatCompletionResponse chatCompletion = await api.Chat.CreateChatCompletionAsync(
2424
messages,
25-
model: CreateChatCompletionRequestModel.Gpt4o,
25+
model: CreateChatCompletionRequestModel.Gpt4o20240806,
2626
tools: tools);
2727

2828
switch (chatCompletion.Choices[0].FinishReason)
@@ -73,7 +73,6 @@ public async Task FunctionCalling()
7373
Console.WriteLine($"[SYSTEM]:");
7474
Console.WriteLine($"{systemMessage.Content.Value1}");
7575
Console.WriteLine();
76-
break;
7776
}
7877
else if (requestMessage.User is { } userMessage)
7978
{
@@ -90,8 +89,6 @@ public async Task FunctionCalling()
9089
else if (requestMessage.Tool is { } toolMessage)
9190
{
9291
// Do not print any tool messages; let the assistant summarize the tool results instead.
93-
break;
94-
9592
}
9693
}
9794
}

0 commit comments

Comments
 (0)