Merge pull request #141 from Ali-AlDhamen/patch-1

doc: edit function name
This commit is contained in:
Anas FIKHI
2024-02-21 17:54:33 -05:00
committed by GitHub

View File

@ -424,7 +424,7 @@ final chat = await OpenAI.instance.chat.create(
final message = chat.choices.first.message;
// Wether the message has a tool call.
if (message.hasToolCalls) {
if (message.haveToolCalls) {
final call = message.toolCalls!.first;
// Wether the tool call is the one we sent.