Skip to content

Commit c8c639d

Browse files
Add changeset for #235 - thanks @smorimoto (#251)
1 parent 4a2ba11 commit c8c639d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@openrouter/ai-sdk-provider": patch
3+
---
4+
5+
fix: make text field optional in file annotation content schema
6+
7+
When processing PDFs with the file-parser plugin using Mistral OCR, image elements in the response were failing validation. The schema required a `text` field on all content elements, but image elements (`type: "image_url"`) only have `image_url` data—no text. This made it impossible to process PDFs containing images.
8+
9+
Thanks @smorimoto for the fix! (#235)

0 commit comments

Comments
 (0)