Skip to content

Expose structured output support for chat models#6

Open
slegarraga wants to merge 1 commit into
OpeOginni:mainfrom
slegarraga:slegarraga/structured-outputs-option
Open

Expose structured output support for chat models#6
slegarraga wants to merge 1 commit into
OpeOginni:mainfrom
slegarraga:slegarraga/structured-outputs-option

Conversation

@slegarraga

Copy link
Copy Markdown

Summary

  • add a supportsStructuredOutputs provider option
  • forward the option to OpenAI-compatible chat models
  • add a regression test for JSON schema responseFormat without the unsupported responseFormat warning

Fixes #5

Validation

  • npm test
  • npm run build

Note: npm run lint currently fails locally because eslint is not installed after npm ci (sh: eslint: command not found).

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.

Warning printed from AI SDK

1 participant