Skip to content

Commit c5b2dfd

Browse files
Version Packages (#252)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c8c639d commit c5b2dfd

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.changeset/fix-file-annotation-text-optional.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @openrouter/ai-sdk-provider
22

3+
## 1.2.6
4+
5+
### Patch Changes
6+
7+
- [#251](https://github.com/OpenRouterTeam/ai-sdk-provider/pull/251) [`c8c639d`](https://github.com/OpenRouterTeam/ai-sdk-provider/commit/c8c639d523e38bb20300d127f23cfa2419692e37) Thanks [@subtleGradient](https://github.com/subtleGradient)! - fix: make text field optional in file annotation content schema
8+
9+
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.
10+
11+
Thanks @smorimoto for the fix! (#235)
12+
313
## 1.2.4
414

515
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/ai-sdk-provider",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"license": "Apache-2.0",
55
"sideEffects": false,
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)