通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatCompletionResponseFormatJsonSchemaProperties interface

扩展属性的开放字典。 如果 'type' == 'json_schema' 则为必填项

属性

description

模型将遵循的 json 架构的说明。

name

模型将遵循的 json 架构的名称

schema

定义模型将用于构建其输出的自定义架构的对象。

strict

模型的响应是否应使用结构化输出。 默认值为 true

属性详细信息

description

模型将遵循的 json 架构的说明。

description?: string

属性值

string

name

模型将遵循的 json 架构的名称

name?: string

属性值

string

schema

定义模型将用于构建其输出的自定义架构的对象。

schema?: ChatCompletionSchema

属性值

strict

模型的响应是否应使用结构化输出。 默认值为 true

strict?: boolean

属性值

boolean