ChatCompletionResponseFormat interface
決定語言模型的回應應該如何序列化。 預設為「文字」。
屬性
| chat |
擴充屬性的開放字典。 如果 'type' == 'json_schema' 則為必要項目 |
| type | 指定 LLM 應如何格式化回應。 可能的值:「text」(純字串)、「json_object」(任意JSON)或「json_schema」(遵循提供的結構描述)。 |
屬性詳細資料
chatCompletionSchemaProperties
擴充屬性的開放字典。 如果 'type' == 'json_schema' 則為必要項目
chatCompletionSchemaProperties?: ChatCompletionResponseFormatJsonSchemaProperties
屬性值
type
指定 LLM 應如何格式化回應。 可能的值:「text」(純字串)、「json_object」(任意JSON)或「json_schema」(遵循提供的結構描述)。
type?: string
屬性值
string