Update README.md

This commit is contained in:
Ali Al-Dhamen
2023-12-11 06:27:03 +03:00
committed by GitHub
parent 1f8e675fc1
commit 56c590dbda

View File

@ -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.