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

ChatChoiceOutput interface

单个提示完成作为整体聊天完成请求的一部分的表示形式。 通常,每个提供的提示生成 n 选项,默认值为 1。 令牌限制和其他设置可能会限制生成的选项数。

属性

finish_reason

此聊天完成选择完成其生成的原因。

index

与此聊天完成选项关联的有序索引。

message

给定聊天完成提示的聊天消息。

属性详细信息

finish_reason

此聊天完成选择完成其生成的原因。

finish_reason: null | string

属性值

null | string

index

与此聊天完成选项关联的有序索引。

index: number

属性值

number

message

给定聊天完成提示的聊天消息。

message: ChatResponseMessageOutput

属性值