TanStackOSS
    ai
    fix(ai-openrouter): apply OpenAI-strict transformation to structuredOutput schemas OpenRouter forwards `json_schema` requests with `strict: true` to upstream providers (notably OpenAI), which reject schemas that don't mark every property required and set `additionalProperties: false`. Run the schema through `convertSchemaToJsonSchema(..., { forStructuredOutput: true })` before sending so Zod / ArkType / Valibot schemas work out of the box. Adds adapter-level regression tests covering the transformation (nested objects, arrays, optional-to-nullable widening) and a structured-output example page in `ts-react-chat` to exercise the path end-to-end. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    nx run-many --targets=build --exclude=examples/**
Succeeded
CI Pipeline Execution

nx run-many --targets=build --exclude=examples/**

Click to copy
Linux
4 CPU cores
a6deaef8312
3%

Cache hits

1 of 31 tasks used cache.

Get faster results

Learn how to enable distribution.

Atomizer enabled

31 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools