Saltar al contenido principal
Versión: Siguiente

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.
deltaOpenAIMessageA partial message used for streaming responses.(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.