Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions content/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ const { text } = await generateText({
## Multi-modal Tool Results

<Note type="warning">
Multi-modal tool results are experimental and only supported by Anthropic.
Multi-modal tool results are experimental and only supported by Anthropic and
OpenAI.
</Note>

In order to send multi-modal tool results, e.g. screenshots, back to the model,
Expand Down Expand Up @@ -792,7 +793,7 @@ const result = await generateText({
value:
typeof result === 'string'
? [{ type: 'text', text: result }]
: [{ type: 'image', data: result.data, mediaType: 'image/png' }],
: [{ type: 'media', data: result.data, mediaType: 'image/png' }],
};
},
}),
Expand Down
Loading