Saltar al contenido principal
Versión: 20 R9 BETA

OpenAIChoice

The OpenAIChoice class represents a choice made by the OpenAI API response, containing information about the choice, including its finished reason, index, message, and an optional partial message for streaming responses.

Propiedades

PropiedadTipoDescripción
message OpenAIMessageThe message associated with this choice.
deltaOpenAIMessageUn mensaje parcial utilizado para las respuestas de streaming.(stream: True.md)
finish_reasonTextLa razón por la que terminó la elección (por ejemplo, "stop").
indexIntegerThe index of the choice in the response.