Skip to content
Discussion options

You must be logged in to vote

Hi @samehdoush, I released a patch to allow the usage of strict mode in OpenAI. You can pass the strict field creating the OpenAI provider instance:

new OpenAI(
    $_ENV['OPENAI_API_KEY'],
    'gpt-4o-mini',
    ['response_format' => ['json_schema' => ['strict' => true]]]
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samehdoush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants