You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[ChatCompletionObject](#chatcompletionobject)| The object type, which is always `chat.completion`. |
168
168
|[ChatCompletionResponseFormat](#chatcompletionresponseformat)| The response format for the model response. Setting to `json_object` enables JSON mode, which guarantees the message the model generates is valid JSON. When using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. |
169
+
|[ChatCompletionResponseFormatType](#chatcompletionresponseformatrype)| The response format type. |
169
170
|[ChatCompletionResponseMessage](#chatcompletionresponsemessage)| A chat completion message generated by the model. |
170
171
|[ChatCompletionTool](#chatcompletiontool)||
171
172
|[ChatMessageRole](#chatmessagerole)| The role of the author of this message. |
@@ -219,6 +220,14 @@ The object type, which is always `chat.completion`.
219
220
220
221
The response format for the model response. Setting to `json_object` enables JSON mode, which guarantees the message the model generates is valid JSON. When using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.
221
222
223
+
| Name | Type | Description |
224
+
| --- | --- | --- |
225
+
| type |[ChatCompletionResponseFormatType](#chatcompletionresponseformatrype)| The response format type. |
0 commit comments