cherry-studio/patches
SuYao c7c380d706
fix: disable strict JSON schema for OpenRouter to support MCP tools (#12415)
* fix: update dependencies and patch files for strict JSON schema compliance

- Updated `@ai-sdk/openai-compatible` to include version 1.0.30 and adjusted related patch files.
- Removed obsolete patch for `@ai-sdk/openai-compatible@1.0.28`.
- Added new patch for `@openrouter/ai-sdk-provider` to support strict JSON schema options.
- Modified `options.ts` to set `strictJsonSchema` to false for OpenAI models.
- Enhanced OpenAI compatible provider options to include `sendReasoning` and `strictJsonSchema`.
- Updated lockfile to reflect changes in patched dependencies and their hashes.

* fix: filter strictJsonSchema from request body in OpenRouter patch

- Destructure and remove strictJsonSchema from openrouterOptions before spreading into request body
- This prevents sending the internal option to the OpenRouter API

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 21:55:09 +08:00
..
@ai-sdk__openai-compatible@1.0.28.patch fix: disable strict JSON schema for OpenRouter to support MCP tools (#12415) 2026-01-10 21:55:09 +08:00
@ai-sdk-google-npm-2.0.49-84720f41bd.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@ai-sdk-openai-npm-2.0.85-27483d1d6a.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@anthropic-ai__claude-agent-sdk@0.1.76.patch fix: restore patch for claude-agent-sdk (#12391) 2026-01-09 16:26:39 +08:00
@anthropic-ai-vertex-sdk-npm-0.11.4-c19cb41edb.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@google-genai-npm-1.0.1-e26f0f9af7.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@langchain-core-npm-1.0.2-183ef83fe4.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@langchain-openai-npm-1.0.0-474d0ad9d4.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@openrouter__ai-sdk-provider.patch fix: disable strict JSON schema for OpenRouter to support MCP tools (#12415) 2026-01-10 21:55:09 +08:00
@tavily-core-npm-0.3.1-fe69bf2bea.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
@tiptap-extension-drag-handle-npm-3.2.0-5a9ebff7c9.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
antd-npm-5.27.0-aa91c36546.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
atomically-npm-1.7.0-e742e5293b.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
electron-updater-npm-6.7.0-47b11bb0d4.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
epub-npm-1.3.0-8325494ffe.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
file-stream-rotator-npm-0.6.1-eab45fb13d.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
libsql-npm-0.4.7-444e260fb1.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
ollama-ai-provider-v2-npm-1.5.5-8bef249af9.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
pdf-parse-npm-1.1.1-04a6109b2a.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
pkce-challenge-npm-4.1.0-fbc51695a3.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
tesseract.js-npm-6.0.1-2562a7e46d.patch refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00