Skip to content

Conversation

@xcpky
Copy link
Contributor

@xcpky xcpky commented Nov 30, 2025

This PR closes #3490

This PR handles supports_json_schema_output and supports_json_object_output together:

  1. Check both supports_json_schema_output and supports_json_object_output for prompted output
  2. Add use_structured_output_for_prompted_output field to ModelProfile to toggle the checking.

Todos:

  • support other models than openai
  • doc
  • test

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.

Some models ran through OpenAI-compatible APIs need JSON schema in instructions even when native structured output is used

1 participant