Module async_openai::types
source · Expand description
Types used in OpenAI API requests and responses. These types are created from component schemas in the OpenAPI spec
Structs
- A list of the categories along with their scores as predicted by model.
- Builder for
ChatCompletionFunctions
. - Builder for
ChatCompletionRequestMessage
. - A chat completion message generated by the model.
- A chat completion delta generated by streamed model responses.
- Usage statistics for the completion request.
- Builder for
CreateChatCompletionRequest
. - Represents a chat completion response returned by model, based on the provided input.
- Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
- Builder for
CreateCompletionRequest
. - Builder for
CreateEditRequest
. - Builder for
CreateEmbeddingRequest
. - Builder for
CreateFileRequest
. - Builder for
CreateFineTuneRequest
. - Builder for
CreateFineTuningJobRequest
. - Builder for
CreateImageEditRequest
. - Builder for
CreateImageRequest
. - Builder for
CreateImageVariationRequest
. - Builder for
CreateModerationRequest
. - Represents policy compliance report by OpenAI’s content moderation model against a given input.
- Builder for
CreateTranscriptionRequest
. - Builder for
CreateTranslationRequest
. - Represents an embedding vector returned by embedding endpoint.
- For fine-tuning jobs that have
failed
, this will contain more information on the cause of the failure. - The
fine_tuning.job
object represents a fine-tuning job that has been created through the API. - Fine-tuning job event object
- The name and arguments of a function that should be called, as generated by the model.
- Describes an OpenAI model offering that can be used with the API.
- The
File
object represents a document that has been uploaded to OpenAI.
Enums
Type Aliases
- Parsed server side events stream until an [DONE] is received from server.
- Parsed server side events stream until an [DONE] is received from server.
- Parsed server side events stream until an [DONE] is received from server.