Update README.md

Remove toolChoice from chatGpt example, as this example does not work when having toolChoice as a String.
This commit is contained in:
Thomas Frøysa
2023-12-20 14:47:40 +01:00
committed by GitHub
parent 1f8e675fc1
commit a2cc27f8e0

View File

@ -325,7 +325,6 @@ OpenAIChatCompletionModel chatCompletion = await OpenAI.instance.chat.create(
messages: requestMessages,
temperature: 0.2,
maxTokens: 500,
toolChoice: "auto",
);
print(chatCompletion.choices.first.message); // ...