docs(readme): update tool example

This commit is contained in:
藍+85CD committed 2024-12-15 17:57:47 +08:00
1 parent 41d6d6eb51
commit 28be43c4e2
1 file changed
+1
+1
View File
@@ -160,6 +160,7 @@ const weather = await tool({
const { text } = await generateText({
...openai.chat('gpt-4o'),
maxSteps: 2,
messages: [
{
content: 'You are a helpful assistant.',