Commit 55c5ce7
fix(analyze): use AI SDK ImagePart format for vision screenshots (#5566)
The analyze plugin used OpenAI's `image_url` format for screenshot
attachments, but `generateText()` from the Vercel AI SDK expects
the `ImagePart` format (`type: 'image'`). This caused "Invalid prompt:
The messages do not match the ModelMessage[] schema" when vision: true.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4461316 commit 55c5ce7
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| |||
0 commit comments