Skip to content

Conversation

@patrickbrouwers
Copy link
Contributor

Add gpt-5.1 and gpt-5.2 to list of supported openai structured modes

It would be great if we could keep this more in sync. A couple of ideas:

  • Allow forcing the structured mode (setting usingStructuredMode() does not work
    because of this;
    if ($mode !== StructuredMode::Structured) {
    throw new PrismException(sprintf('%s model does not support structured mode', $request->model()));
    }

  • Instead of a whitelist have a blocklist of models that do not support structured mode, I think most new openai models support it.

If you have a preferences, I'm happy to PR it :)

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.

1 participant