Skip to content

Commit 7db7c6f

Browse files
Add changeset for OpenRouterTeam#235 - thanks @smorimoto (OpenRouterTeam#251)
1 parent 115a6a5 commit 7db7c6f

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)