Expand description
Types returned from the API and sent to it
Structs§
- Chat
Message - Container for the sent/received ChatGPT messages
- Completion
Error - An error happened while requesting completion
- Completion
Request - A request struct sent to the API to request a message completion
- Completion
Response - A response struct received from the API after requesting a message completion
- Inbound
Chunk Choice - A single message part of a chunked inbound response
- Inbound
Response Chunk - A part of a chunked inbound response
- Message
Choice - A message completion choice struct
- Token
Usage - The token usage of a specific response
Enums§
- Inbound
Chunk Payload - Contains different chunked inbound response payloads
- Response
Chunk - A single response chunk, returned from streamed request
- Role
- A role of a message sender, can be:
- Server
Response - Represents a response from the API