From 1b1e35000df80658cff6313dbf27519b24211221 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 19:32:09 +0000 Subject: [PATCH] Version Packages --- .changeset/fix-file-annotation-text-optional.md | 9 --------- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 .changeset/fix-file-annotation-text-optional.md diff --git a/.changeset/fix-file-annotation-text-optional.md b/.changeset/fix-file-annotation-text-optional.md deleted file mode 100644 index fc824acb..00000000 --- a/.changeset/fix-file-annotation-text-optional.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@openrouter/ai-sdk-provider": patch ---- - -fix: make text field optional in file annotation content schema - -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. - -Thanks @smorimoto for the fix! (#235) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8139ff4d..3b783e4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # @openrouter/ai-sdk-provider +## 1.2.6 + +### Patch Changes + +- [#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 + + 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. + + Thanks @smorimoto for the fix! (#235) + ## 1.2.4 ### Patch Changes diff --git a/package.json b/package.json index b09ae50e..83835649 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/ai-sdk-provider", - "version": "1.2.5", + "version": "1.2.6", "license": "Apache-2.0", "sideEffects": false, "main": "./dist/index.js",