Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 1006 Bytes

CreateChatCompletionRequestResponseFormat.md

File metadata and controls

18 lines (12 loc) · 1006 Bytes

OpenapiClient::CreateChatCompletionRequestResponseFormat

Properties

Name Type Description Notes
type String Setting to `json_object` enables JSON mode. This guarantees that the message the model generates is valid JSON. Note that your system prompt must still instruct the model to produce JSON, and to help ensure you don't forget, the API will throw an error if the string `JSON` does not appear in your system message. Also note that the message content may be partial (i.e. cut off) if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. Must be one of `text` or `json_object`. [optional][default to 'text']

Example

require 'openapi_client'

instance = OpenapiClient::CreateChatCompletionRequestResponseFormat.new(
  type: json_object
)