Skip to content

fix(ai-gateway-provider): document createUnified structured outputs#603

Closed
hith3sh wants to merge 1 commit into
cloudflare:mainfrom
hith3sh:codex/document-unified-structured-output
Closed

fix(ai-gateway-provider): document createUnified structured outputs#603
hith3sh wants to merge 1 commit into
cloudflare:mainfrom
hith3sh:codex/document-unified-structured-output

Conversation

@hith3sh

@hith3sh hith3sh commented Jul 6, 2026

Copy link
Copy Markdown

Summary

  • document that createUnified() needs supportsStructuredOutputs: true when routing structured-output-capable upstream models
  • add the note directly under the unified dynamic-route example in the README

Why

  • issue Schema output with createUnified #540 showed the behavior already worked, but the required option only existed in issue comments
  • without the flag, schema output can fall back to plain JSON mode instead of forwarding the full JSON schema upstream

Validation

  • ran pnpm exec oxfmt --write packages/ai-gateway-provider/README.md
  • no tests run (docs-only change)

Closes #540

@changeset-bot

changeset-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a1d1c0b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@hith3sh
hith3sh marked this pull request as ready for review July 6, 2026 13:30
@hith3sh

hith3sh commented Jul 6, 2026

Copy link
Copy Markdown
Author

Closing this docs-only draft in favor of the code fix in #604.

@hith3sh hith3sh closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schema output with createUnified

1 participant