Aller au contenu principal
Version: 20 R9 BETA

OpenAIChoice

La classe OpenAIChoice représente un choix fait par la réponse de l'API OpenAI, contenant des informations sur le choix, y compris sa raison finie, son index, son message, et un message partiel optionnel pour les réponses en streaming.

Propriétés

PropriétéTypeDescription
message OpenAIMessageThe message associated with this choice.
deltaOpenAIMessageA partial message used for streaming responses.(stream: True.md)
finish_reasonTextThe reason the choice finished (e.g., "stop").
indexIntegerThe index of the choice in the response.