Replies: 2 comments 1 reply
-
You can pass the $client::chat()->create([
'model' => 'gpt-4',
+ 'response_format' => 'json_object',
// ...
]); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Putting 'model' => 'gpt-4o',
'response_format' => [
'type' => 'json_object'
], |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the Chat Completion there is a mode you can enable in Text generation called JSON mode. When will this be added to the client?
Beta Was this translation helpful? Give feedback.
All reactions