From 56c590dbdab24f365e66ba07752202f495fef611 Mon Sep 17 00:00:00 2001 From: Ali Al-Dhamen <93004494+Ali-AlDhamen@users.noreply.github.com> Date: Mon, 11 Dec 2023 06:27:03 +0300 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.