diff --git a/README.md b/README.md index 9c59f7d2..d861e39c 100644 --- a/README.md +++ b/README.md @@ -425,7 +425,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.