共用方式為


ChatChoiceOutput interface

在整體聊天完成要求中,表示單一提示完成。 一般而言,每個提供的提示會產生 n 選項,預設值為1。 令牌限制和其他設定可能會限制產生的選擇數目。

屬性

finish_reason

此聊天完成選擇完成其產生的原因。

index

與此聊天完成選項相關聯的已排序索引。

message

指定聊天完成提示的聊天訊息。

屬性詳細資料

finish_reason

此聊天完成選擇完成其產生的原因。

finish_reason: null | string

屬性值

null | string

index

與此聊天完成選項相關聯的已排序索引。

index: number

屬性值

number

message

指定聊天完成提示的聊天訊息。

message: ChatResponseMessageOutput

屬性值