-
-
Notifications
You must be signed in to change notification settings - Fork 296
json_object #126
Copy link
Copy link
Open
Description
Describe the feature or improvement you're requesting
Please, see at: https://platform.openai.com/docs/guides/text-generation/json-mode
$chat = json_decode(
$open_ai->completion([
'model' => 'gpt-4-1106-preview',
'prompt' => $prompt,
'temperature' => 0.7,
'max_tokens' => 1024,
"top_p" => 1,
'frequency_penalty' => 0,
'presence_penalty' => 0,
'response_format ' => [
'type' => "json_object"
]
])
);Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels