Module chat
Source - Chat
- This struct is used for chat completions with
OpenAI’s models.
It contains all the parameters that can be set for an API request. - Choice
- Represents a choice made by the model in a chat API call.
- Delta
- Represents a change made by the model in a streaming chat API call.
- Function
- This struct is used to describe a single function the model may generate JSON inputs for.
It’s part of the
Chat structure. - FunctionCall
- Message
- Represents a single Message exchanged with the
OpenAI API during a conversational model session. - Response
- Represents the response from a chat model API call to
OpenAI. - StreamedChoices
- Represents a choice made by the model in a streaming chat API call.
- StreamedReponse
- Represents the response from a streaming chat model API call to
OpenAI.
- MessageRole
- Enumeration of roles for authors of messages in a chat API call.
- Stop