Module types

Source
Expand description

Types returned from the API and sent to it

Structs§

ChatMessage
Container for the sent/received ChatGPT messages
CompletionError
An error happened while requesting completion
CompletionRequest
A request struct sent to the API to request a message completion
CompletionResponse
A response struct received from the API after requesting a message completion
InboundChunkChoice
A single message part of a chunked inbound response
InboundResponseChunk
A part of a chunked inbound response
MessageChoice
A message completion choice struct
TokenUsage
The token usage of a specific response

Enums§

InboundChunkPayload
Contains different chunked inbound response payloads
ResponseChunk
A single response chunk, returned from streamed request
Role
A role of a message sender, can be:
ServerResponse
Represents a response from the API