openai_dart library
Dart client for the OpenAI API. Supports chat (GPT-4o, etc.), completions, embeddings, images (DALL·E 3), assistants (threads, runs, vector stores, etc.), batch, fine-tuning, etc.
Classes
- Annotation
- A URL citation when using web search.
- AnnotationUrlCitation
- A URL citation when using web search.
- AssistantModel
- ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
- AssistantObject
-
Represents an
assistant
that can call the model and use tools. - AssistantObjectResponseFormat
-
Specifies the format that the model must output. Compatible with
GPT-4o,
GPT-4 Turbo, and all GPT-3.5 Turbo models
since
gpt-3.5-turbo-1106
. - AssistantsFunctionCallOption
- No Description
- AssistantsNamedToolChoice
- Specifies a tool the model should use. Use to force the model to call a specific tool.
- AssistantStreamEvent
- Represents an event emitted when streaming a Run.
- AssistantTools
- A tool that can be used by an assistant.
- AssistantToolsFileSearchFileSearch
- Overrides for the file search tool.
- Batch
- Represents a batch of requests.
- BatchErrors
- No Description
- BatchErrorsDataInner
- No Description
- BatchRequestCounts
- The request counts for different statuses within the batch.
- ChatCompletionAssistantMessageAudio
- If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
- ChatCompletionAudioOptions
-
Parameters for audio output. Required when audio output is requested with
modalities: ["audio"]
. Learn more. - ChatCompletionDeveloperMessageContent
- The contents of the developer message.
- ChatCompletionFunctionCall
-
Deprecated in favor of
tool_choice
. - ChatCompletionFunctionCallOption
- Forces the model to call the specified function.
- ChatCompletionList
- An object representing a list of chat completions.
- ChatCompletionLogprobs
- Log probability information for the choice.
- ChatCompletionMessage
- A message in a chat conversation.
- ChatCompletionMessageContentPart
- A content part of a user message.
- ChatCompletionMessageFunctionCall
- The name and arguments of a function that should be called, as generated by the model.
- ChatCompletionMessageImageUrl
- The URL of the image.
- ChatCompletionMessageInputAudio
- The audio input.
- ChatCompletionMessageToolCall
- A tool call generated by the model, such as a function call.
- ChatCompletionModel
- ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API.
- ChatCompletionNamedToolChoice
- Specifies a tool the model should use. Use to force the model to call a specific function.
- ChatCompletionResponseChoice
- A choice the model generated for the input prompt.
- ChatCompletionStop
- Up to 4 sequences where the API will stop generating further tokens.
- ChatCompletionStreamMessageFunctionCall
- The name and arguments of a function that should be called, as generated by the model.
- ChatCompletionStreamMessageToolCallChunk
- The tool that should be called, as generated by the model.
- ChatCompletionStreamOptions
-
Options for streaming response. Only set this when you set
stream: true
. - ChatCompletionStreamResponseChoice
- A choice the model generated for the input prompt.
- ChatCompletionStreamResponseChoiceLogprobs
- Log probability information for the choice.
- ChatCompletionStreamResponseDelta
- A chat completion delta generated by streamed model responses.
- ChatCompletionStreamResponseDeltaAudio
- If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
- ChatCompletionTokenLogprob
- Log probability information for a token.
- ChatCompletionTokenTopLogprob
- Most likely tokens and their log probability, at this token position.
- ChatCompletionTool
- A tool the model may use.
- ChatCompletionToolChoiceOption
-
Controls which (if any) tool is called by the model.
none
means the model will not call any tool and instead generates a message.auto
means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools. Specifying a particular tool via{"type": "function", "function": {"name": "my_function"}}
forces the model to call that tool. - ChatCompletionUserMessageContent
- The contents of the user message.
- ChunkingStrategyRequestParam
-
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy. - ChunkingStrategyResponseParam
- The chunking strategy used to chunk the file(s).
- CompletionChoice
- A choice the model generated for the input prompt.
- CompletionLogprobs
-
The probabilities on the
logprobs
most likely tokens, as well the chosen tokens. For example, iflogprobs
is 5, the API will return a list of the 5 most likely tokens. The API will always return thelogprob
of the sampled token, so there may be up tologprobs+1
elements in the response. - CompletionModel
- ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
- CompletionPrompt
- The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
- CompletionStop
- Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
- CompletionTokensDetails
- Breakdown of tokens used in a completion.
- CompletionUsage
- Usage statistics for the completion request.
- CreateAssistantRequest
- Request object for the Create assistant endpoint.
- CreateAssistantRequestResponseFormat
-
Specifies the format that the model must output. Compatible with
GPT-4o,
GPT-4 Turbo, and all GPT-3.5 Turbo models
since
gpt-3.5-turbo-1106
. - CreateBatchRequest
- Represents a request to create a new batch.
- CreateChatCompletionRequest
- Request object for the Create chat completion endpoint.
- CreateChatCompletionResponse
- Represents a chat completion response returned by model, based on the provided input.
- CreateChatCompletionStreamResponse
- Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
- CreateCompletionRequest
- Request object for the Create completion endpoint.
- CreateCompletionResponse
- Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).
- CreateEmbeddingRequest
- Request object for the Create embedding endpoint.
- CreateEmbeddingResponse
- Represents an embedding vector returned by embedding endpoint.
- CreateFineTuningJobRequest
- Request object for the Create fine-tuning job endpoint.
- CreateImageRequest
- Request object for the Create image endpoint.
- CreateImageRequestModel
-
The model to use for image generation. One of
dall-e-2
,dall-e-3
, orgpt-image-1
. Defaults todall-e-2
unless a parameter specific togpt-image-1
is used. - CreateMessageRequest
- Request object for the Create message endpoint.
- CreateMessageRequestContent
- The content of the message.
- CreateModerationRequest
- Request object for the Create moderation endpoint.
- CreateModerationResponse
- Represents if a given text input is potentially harmful.
- CreateRunRequest
- Request object for the Create run endpoint.
- CreateRunRequestModel
- The ID of the Model to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- CreateRunRequestResponseFormat
-
Specifies the format that the model must output. Compatible with
GPT-4o,
GPT-4 Turbo, and all GPT-3.5 Turbo models
since
gpt-3.5-turbo-1106
. - CreateRunRequestToolChoice
-
Controls which (if any) tool is called by the model.
none
means the model will not call any tools and instead generates a message.auto
is the default value and means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools before responding to the user. Specifying a particular tool like{"type": "file_search"}
or{"type": "function", "function": {"name": "my_function"}}
forces the model to call that tool. - CreateThreadAndRunRequest
- Request object for the Create thread and run endpoint.
- CreateThreadAndRunRequestResponseFormat
-
Specifies the format that the model must output. Compatible with
GPT-4o,
GPT-4 Turbo, and all GPT-3.5 Turbo models
since
gpt-3.5-turbo-1106
. - CreateThreadAndRunRequestToolChoice
-
Controls which (if any) tool is called by the model.
none
means the model will not call any tools and instead generates a message.auto
is the default value and means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools before responding to the user. Specifying a particular tool like{"type": "file_search"}
or{"type": "function", "function": {"name": "my_function"}}
forces the model to call that tool. - CreateThreadRequest
- Request object for the Create thread endpoint.
- CreateVectorStoreFileBatchRequest
- Request object for the Create vector store file batch endpoint.
- CreateVectorStoreFileRequest
- Request object for the Create vector store file endpoint.
- CreateVectorStoreRequest
- Request object for the Create assistant file endpoint.
- DeleteAssistantResponse
- Represents a deleted response returned by the Delete assistant endpoint.
- DeleteMessageResponse
- No Description
- DeleteModelResponse
- Represents a deleted response returned by the Delete model endpoint.
- DeleteThreadResponse
- No Description
- DeleteVectorStoreFileResponse
- Response object for the Delete vector store file endpoint.
- DeleteVectorStoreResponse
- Response object for the Delete vector store endpoint.
- Embedding
- Represents an embedding vector returned by embedding endpoint.
- EmbeddingInput
-
Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for
text-embedding-ada-002
), cannot be an empty string, and any array must be 2048 dimensions or less. Example Python code for counting tokens. - EmbeddingModel
- ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
- EmbeddingUsage
- The usage information for the request.
- EmbeddingVector
- The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
- Error
- Represents an error that occurred during an API request.
- FileSearchRankingOptions
-
The ranking options for the file search. If not specified, the file search tool will use the
auto
ranker and a score_threshold of 0. - FineTuningIntegration
- A fine-tuning integration to enable for a fine-tuning job.
- FineTuningIntegrationWandb
- The settings for your integration with Weights and Biases. This payload specifies the project that metrics will be sent to. Optionally, you can set an explicit display name for your run, add tags to your run, and set a default entity (team, username, etc) to be associated with your run.
- FineTuningJob
-
The
fine_tuning.job
object represents a fine-tuning job that has been created through the API. - FineTuningJobCheckpoint
-
The
fine_tuning.job.checkpoint
object represents a model checkpoint for a fine-tuning job that is ready to use. - FineTuningJobCheckpointMetrics
- Metrics at the step number during the fine-tuning job.
- FineTuningJobError
-
For fine-tuning jobs that have
failed
, this will contain more information on the cause of the failure. - FineTuningJobEvent
- Fine-tuning job event object.
- FineTuningJobHyperparameters
-
The hyperparameters used for the fine-tuning job. This value will only be returned when running
supervised
jobs. - FineTuningModel
- The name of the model to fine-tune. You can select one of the supported models.
- FineTuningNEpochs
- The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
- FunctionObject
- A function that the model may call.
- Image
- Represents the url or the content of an image generated by the OpenAI API.
- ImagesResponse
- Represents a generated image returned by the images endpoint.
- JsonSchemaObject
- A JSON Schema object.
- ListAssistantsResponse
- Represents a list of assistants returned by the List assistants endpoint.
- ListBatchesResponse
- Represents a list of batches returned by the List batches endpoint.
- ListFineTuningJobCheckpointsResponse
- Represents a list of fine-tuning job checkpoints.
- ListFineTuningJobEventsResponse
- Represents a list of fine-tuning job events.
- ListMessagesResponse
- Represents a list of messages returned by the List messages endpoint.
- ListModelsResponse
- Represents a list of models returned by the List models endpoint.
- ListPaginatedFineTuningJobsResponse
- Represents a list of fine-tuning jobs.
- ListRunsResponse
- Represents a list of runs returned by the List runs endpoint.
- ListRunStepsResponse
- Represents a list of run steps returned by the List run steps endpoint.
- ListThreadsResponse
- Represents a list of threads returned by the List threads endpoint.
- ListVectorStoreFilesResponse
- Represents a list of message files returned by the List vector store files endpoint.
- ListVectorStoresResponse
- Represents a list of files returned by the List vector store files endpoint.
- MessageAttachment
- An attachment to a message.
- MessageContent
- The content of a message.
- MessageContentImageFile
- The image file that is part of a message.
- MessageContentImageUrl
- The image URL part of a message.
- MessageContentText
- The text content that is part of a message.
- MessageContentTextAnnotations
- An annotation within the message that points to a specific quote from a specific File associated with the assistant or the message.
- MessageContentTextAnnotationsFileCitation
- A citation within the message that points to a specific quote from a specific File associated with the assistant or the message.
- MessageContentTextAnnotationsFilePath
- No Description
- MessageDelta
- The delta containing the fields that have changed on the Message.
- MessageDeltaContent
- The content of a message delta.
- MessageDeltaContentText
- The text content that is part of a message.
- MessageDeltaContentTextAnnotations
- An annotation within the message that points to a specific quote from a specific File associated with the assistant or the message.
- MessageDeltaContentTextAnnotationsFileCitation
- A citation within the message that points to a specific quote from a specific File associated with the assistant or the message.
- MessageDeltaContentTextAnnotationsFilePathObjectFilePath
- No Description
- MessageDeltaObject
- Represents a message delta i.e. any changed fields on a message during streaming.
- MessageObject
- Represents a message within a thread.
- MessageObjectIncompleteDetails
- On an incomplete message, details about why the message is incomplete.
- MessageRequestContentTextObject
- The text content that is part of a message.
- Model
- Describes an OpenAI model offering that can be used with the API.
- Moderation
- Represents policy compliance report by OpenAI's content moderation model against a given input.
- ModerationCategories
- A list of the categories, and whether they are flagged or not.
- ModerationCategoriesAppliedInputTypes
- A list of the categories along with the input type(s) that the score applies to.
- ModerationCategoriesScores
- A list of the categories along with their scores as predicted by model.
- ModerationInput
- Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.
- ModerationInputObject
- Multi-modal inputs to the moderation model.
- ModerationInputObjectImageUrlImageUrl
- Contains either an image URL or a data URL for a base64 encoded image.
- ModerationModel
- The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.
- ModifyAssistantRequest
- Request object for the Modify assistant endpoint.
- ModifyAssistantRequestResponseFormat
-
Specifies the format that the model must output. Compatible with
GPT-4o,
GPT-4 Turbo, and all GPT-3.5 Turbo models
since
gpt-3.5-turbo-1106
. - ModifyMessageRequest
- Request object for the Modify message endpoint.
- ModifyRunRequest
- Request object for the Modify run endpoint.
- ModifyThreadRequest
- Request object for the Modify thread endpoint.
- OpenAIClient
- Client for OpenAI API.
- PredictionContent
- Configuration for a Predicted Output, which can greatly improve response times when large parts of the model response are known ahead of time. This is most common when you are regenerating a file with only minor changes to most of the content.
- PredictionContentContent
- The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
- ResponseFormat
- An object specifying the format that the model must output.
- RunCompletionUsage
-
Usage statistics related to the run. This value will be
null
if the run is not in a terminal state (i.e.in_progress
,queued
, etc.). - RunLastError
-
The last error associated with this run. Will be
null
if there are no errors. - RunObject
- Represents an execution run on a thread.
- RunObjectIncompleteDetails
-
Details on why the run is incomplete. Will be
null
if the run is not incomplete. - RunObjectResponseFormat
-
Specifies the format that the model must output. Compatible with
GPT-4o,
GPT-4 Turbo, and all GPT-3.5 Turbo models
since
gpt-3.5-turbo-1106
. - RunObjectToolChoice
-
Controls which (if any) tool is called by the model.
none
means the model will not call any tools and instead generates a message.auto
is the default value and means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools before responding to the user. Specifying a particular tool like{"type": "file_search"}
or{"type": "function", "function": {"name": "my_function"}}
forces the model to call that tool. - RunRequiredAction
-
Details on the action required to continue the run. Will be
null
if no action is required. - RunStepCompletionUsage
-
Usage statistics related to the run step. This value will be
null
while the run step's status isin_progress
. - RunStepDelta
- The delta containing the fields that have changed on the run step.
- RunStepDeltaDetails
- The details of the run step
- RunStepDeltaObject
- Represents a run step delta i.e. any changed fields on a run step during streaming.
- RunStepDeltaStepDetailsMessageCreation
- Details of the message creation by the run step.
- RunStepDeltaStepDetailsToolCalls
- Tool calls the run step was involved in.
- RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter
- The Code Interpreter tool call definition. - outputs
- RunStepDeltaStepDetailsToolCallsCodeOutput
- The output of the Code Interpreter tool call.
- RunStepDeltaStepDetailsToolCallsCodeOutputImage
- Code interpreter image output.
- RunStepDeltaStepDetailsToolCallsFunction
- The definition of the function that was called.
- RunStepDetails
- The details of the run step.
- RunStepDetailsMessageCreation
- Details of the message creation by the run step.
- RunStepDetailsToolCalls
- Tool calls the run step was involved in.
- RunStepDetailsToolCallsCodeObjectCodeInterpreter
- The Code Interpreter tool call definition.
- RunStepDetailsToolCallsCodeOutput
- The output of the Code Interpreter tool call.
- RunStepDetailsToolCallsCodeOutputImage
- Code interpreter image output.
- RunStepDetailsToolCallsFileSearch
- The definition of the file search that was called.
- RunStepDetailsToolCallsFileSearchRankingOptionsObject
- The ranking options for the file search.
- RunStepDetailsToolCallsFileSearchResultContent
- The content of the result that was found.
- RunStepDetailsToolCallsFileSearchResultObject
- A result instance of the file search.
- RunStepDetailsToolCallsFunction
- The definition of the function that was called.
- RunStepLastError
-
The last error associated with this run step. Will be
null
if there are no errors. - RunStepObject
- Represents a step in execution of a run.
- RunSubmitToolOutput
- Output of a tool.
- RunSubmitToolOutputs
- Details on the tool outputs needed for this run to continue.
- RunToolCallFunction
- The function definition.
- RunToolCallObject
- Tool call objects
- StaticChunkingStrategy
- Static chunking strategy
- SubmitToolOutputsRunRequest
- Request object for the Submit tool outputs to run endpoint.
- ThreadAndRunModel
- The ID of the Model to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
- ThreadObject
- Represents a thread that contains messages.
- ToolResources
-
A set of resources that are made available to the assistant's tools in this thread. The resources are specific
to the type of tool. For example, the
code_interpreter
tool requires a list of file IDs, while thefile_search
tool requires a list of vector store IDs. - ToolResourcesCodeInterpreter
- No Description
- ToolResourcesFileSearch
- No Description
- ToolResourcesFileSearchVectorStore
- A helper to create a vector store with file_ids and attach it to this thread.
- TruncationObject
- Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run.
- Uint8ListConverter
- UpdateVectorStoreRequest
- Request object for the Update vector store endpoint.
- VectorStoreExpirationAfter
- The expiration policy for a vector store.
- VectorStoreFileBatchObject
- A batch of files attached to a vector store.
- VectorStoreFileBatchObjectFileCounts
- The number of files per status.
- VectorStoreFileObject
- A list of files attached to a vector store.
- VectorStoreFileObjectLastError
-
The last error associated with this vector store file. Will be
null
if there are no errors. - VectorStoreObject
-
A vector store is a collection of processed files can be used by the
file_search
tool. - VectorStoreObjectFileCounts
- The number of files in the vector store.
- WebSearchLocation
- Approximate location parameters for the search.
- WebSearchOptions
- This tool searches the web for relevant results to use in a response.
- WebSearchOptionsUserLocation
- Approximate location parameters for the search.
Enums
- AnnotationType
-
The type of the URL citation. Always
url_citation
. - AssistantModels
- Available assistant models. Mind that the list may not be exhaustive nor up-to-date.
- AssistantObjectObject
-
The object type, which is always
assistant
. - AssistantResponseFormatMode
-
auto
is the default value - AssistantsToolType
-
The type of the tool. If type is
function
, the function name must be set - AssistantToolsEnumType
- BatchCompletionWindow
-
The time frame within which the batch should be processed. Currently only
24h
is supported. - BatchEndpoint
-
The endpoint to be used for all requests in the batch. Currently
/v1/chat/completions
,/v1/embeddings
, and/v1/completions
are supported. Note that/v1/embeddings
batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch. - BatchObject
-
The object type, which is always
batch
. - BatchStatus
- The current status of the batch.
- ChatCompletionAudioFormat
-
Specifies the output audio format. Must be one of
wav
,mp3
,flac
,opus
, orpcm16
. - ChatCompletionAudioVoice
-
The voice the model uses to respond. Supported voices are
alloy
,ash
,ballad
,coral
,echo
,sage
,shimmer
, andverse
. - ChatCompletionFinishReason
-
The reason the model stopped generating tokens. This will be
stop
if the model hit a natural stop point or a provided stop sequence,length
if the maximum number of tokens specified in the request was reached,content_filter
if content was omitted due to a flag from our content filters,tool_calls
if the model called a tool, orfunction_call
(deprecated) if the model called a function. - ChatCompletionFunctionCallMode
-
none
means the model will not call a function and instead generates a message.auto
means the model can pick between generating a message or calling a function. - ChatCompletionListObject
-
The object type, which is always
list
. - ChatCompletionMessageContentPartEnumType
- ChatCompletionMessageContentPartType
- The type of the content part.
- ChatCompletionMessageEnumType
- ChatCompletionMessageImageDetail
- Specifies the detail level of the image. Learn more in the Vision guide.
- ChatCompletionMessageInputAudioFormat
- The format of the encoded audio data. Currently supports "wav" and "mp3".
- ChatCompletionMessageRole
-
The role of the messages author.
One of
developer
,user
,assistant
, ortool
(function
andsystem
are deprecated). - ChatCompletionMessageToolCallType
-
The type of the tool. Currently, only
function
is supported. - ChatCompletionModality
- Output types that you would like the model to generate for this request.
- ChatCompletionModels
- Available completion models. Mind that the list may not be exhaustive nor up-to-date.
- ChatCompletionNamedToolChoiceType
-
The type of the tool. Currently, only
function
is supported. - ChatCompletionStreamMessageToolCallChunkType
-
The type of the tool. Currently, only
function
is supported. - ChatCompletionToolChoiceMode
-
none
means the model will not call any tool and instead generates a message.auto
means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools. - ChatCompletionToolType
-
The type of the tool. Currently, only
function
is supported. - ChunkingStrategyRequestParamEnumType
- ChunkingStrategyResponseParamEnumType
- CompletionFinishReason
-
The reason the model stopped generating tokens. This will be
stop
if the model hit a natural stop point or a provided stop sequence,length
if the maximum number of tokens specified in the request was reached, orcontent_filter
if content was omitted due to a flag from our content filters. - CompletionModels
- Available completion models. Mind that the list may not be exhaustive nor up-to-date.
- CreateAssistantResponseFormatMode
-
auto
is the default value - CreateChatCompletionRequestServiceTier
- Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the Flex Processing service:
- CreateCompletionResponseObject
- The object type, which is always "text_completion"
- CreateEmbeddingResponseObject
- The object type, which is always "list".
- CreateRunRequestResponseFormatMode
-
auto
is the default value - CreateRunRequestToolChoiceMode
-
none
means the model will not call any tools and instead generates a message.auto
means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools before responding to the user. - CreateThreadAndRunRequestResponseFormatMode
-
auto
is the default value - CreateThreadAndRunRequestToolChoiceMode
-
none
means the model will not call any tools and instead generates a message.auto
means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools before responding to the user. - DeleteAssistantResponseObject
-
The object type, which is always
assistant.deleted
. - DeleteMessageResponseObject
-
The object type, which is always
thread.message.deleted
. - DeleteThreadResponseObject
-
The object type, which is always
thread.deleted
. - EmbeddingEncodingFormat
-
The format to return the embeddings in. Can be either
float
orbase64
. - EmbeddingModels
- Available completion models. Mind that the list may not be exhaustive nor up-to-date.
- EmbeddingObject
- The object type, which is always "embedding".
- EventType
- The type of the event.
- FileSearchRanker
-
The ranker to use for the file search. If not specified will use the
auto
ranker. - FineTuningIntegrationType
- The type of integration to enable. Currently, only "wandb" (Weights and Biases) is supported.
- FineTuningJobCheckpointObject
- The object type, which is always "fine_tuning.job.checkpoint".
- FineTuningJobEventLevel
- The log level of the event.
- FineTuningJobEventObject
- The object type, which is always "fine_tuning.job.event".
- FineTuningJobObject
- The object type, which is always "fine_tuning.job".
- FineTuningJobStatus
-
The current status of the fine-tuning job, which can be either
validating_files
,queued
,running
,succeeded
,failed
, orcancelled
. - FineTuningModels
- Available fine-tuning models. Mind that the list may not be exhaustive nor up-to-date.
- FineTuningNEpochsOptions
- The mode for the number of epochs.
- ImageBackground
-
Allows to set transparency for the background of the generated image(s).
This parameter is only supported for
gpt-image-1
. Must be one oftransparent
,opaque
orauto
(default value). Whenauto
is used, the model will automatically determine the best background for the image. - ImageModels
- Available models for image generation. Mind that the list may not be exhaustive nor up-to-date.
- ImageModeration
-
Control the content-moderation level for images generated by
gpt-image-1
. Must be eitherlow
for less restrictive filtering orauto
(default value). - ImageOutputFormat
-
The format in which the generated images are returned. This parameter is only supported for
gpt-image-1
. Must be one ofpng
,jpeg
, orwebp
. - ImageQuality
- The quality of the image that will be generated.
- ImageResponseFormat
-
The format in which generated images with
dall-e-2
anddall-e-3
are returned. Must be one ofurl
orb64_json
. URLs are only valid for 60 minutes after the image has been generated. This parameter isn't supported forgpt-image-1
which will always return base64-encoded images. - ImageSize
-
The size of the generated images. Must be one of
1024x1024
,1536x1024
(landscape),1024x1536
(portrait), orauto
(default value) forgpt-image-1
, one of256x256
,512x512
, or1024x1024
fordall-e-2
, and one of1024x1024
,1792x1024
, or1024x1792
fordall-e-3
. - ImageStyle
-
The style of the generated images. This parameter is only supported for
dall-e-3
. Must be one ofvivid
ornatural
. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. - ListBatchesResponseObject
-
The object type, which is always
list
. - ListFineTuningJobCheckpointsResponseObject
- The object type, which is always "list".
- ListFineTuningJobEventsResponseObject
- The object type, which is always "list".
- ListModelsResponseObject
- The object type, which is always "list".
- ListPaginatedFineTuningJobsResponseObject
- The object type, which is always "list".
- MessageContentEnumType
- MessageContentImageDetail
-
Specifies the detail level of the image if specified by the user.
low
uses fewer tokens, you can opt in to high resolution usinghigh
. - MessageDeltaContentEnumType
- MessageDeltaObjectObject
-
The object type, which is always
thread.message.delta
. - MessageObjectIncompleteDetailsReason
- The reason the message is incomplete.
- MessageObjectObject
-
The object type, which is always
thread.message
. - MessageObjectStatus
-
The status of the message, which can be either
in_progress
,incomplete
, orcompleted
. - MessageRole
-
The entity that produced the message. One of
user
orassistant
. - ModelObject
- The object type, which is always "model".
- ModerationInputObjectEnumType
- ModerationInputObjectType
- The type of the input object.
- ModerationModels
- Available moderation models. Mind that the list may not be exhaustive nor up-to-date.
- ModifyAssistantResponseFormatMode
-
auto
is the default value - ReasoningEffort
-
Constrains effort on reasoning for
reasoning models.
Currently supported values are
minimal
,low
,medium
, andhigh
. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. - ResponseFormatEnumType
- ResponseFormatType
- The type of response format being defined.
- RunLastErrorCode
-
One of
server_error
,rate_limit_exceeded
, orinvalid_prompt
. - RunModels
- Available models. Mind that the list may not be exhaustive nor up-to-date.
- RunObjectIncompleteDetailsReason
- The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.
- RunObjectObject
-
The object type, which is always
thread.run
. - RunObjectResponseFormatMode
-
auto
is the default value - RunObjectToolChoiceMode
-
none
means the model will not call any tools and instead generates a message.auto
means the model can pick between generating a message or calling one or more tools.required
means the model must call one or more tools before responding to the user. - RunRequiredActionType
-
For now, this is always
submit_tool_outputs
. - RunStatus
-
The status of the run, which can be either
queued
,in_progress
,requires_action
,cancelling
,cancelled
,failed
,completed
,incomplete
, orexpired
. - RunStepDeltaObjectObject
-
The object type, which is always
thread.run.step.delta
. - RunStepLastErrorCode
-
One of
server_error
orrate_limit_exceeded
. - RunStepObjectObject
-
The object type, which is always
thread.run.step
. - RunStepStatus
-
The status of the run step, which can be either
in_progress
,cancelled
,failed
,completed
, orexpired
. - RunStepType
-
The type of run step, which can be either
message_creation
ortool_calls
. - RunToolCallObjectType
-
The type of tool call the output is required for. For now, this is always
function
. - ServiceTier
-
The service tier used for processing the request. This field is only included if the
service_tier
parameter is specified in the request. - ThreadAndRunModels
- Available models. Mind that the list may not be exhaustive nor up-to-date.
- ThreadObjectObject
-
The object type, which is always
thread
. - TruncationObjectType
-
The truncation strategy to use for the thread. The default is
auto
. If set tolast_messages
, the thread will be truncated to the n most recent messages in the thread. When set toauto
, messages in the middle of the thread will be dropped to fit the context length of the model,max_prompt_tokens
. - VectorStoreExpirationAfterAnchor
-
Anchor timestamp after which the expiration policy applies. Supported anchors:
last_active_at
. - VectorStoreFileBatchObjectStatus
-
The status of the vector store files batch, which can be either
in_progress
,completed
,cancelled
orfailed
. - VectorStoreFileObjectLastErrorCode
-
One of
server_error
orrate_limit_exceeded
. - VectorStoreFileStatus
-
The status of the vector store file, which can be either
in_progress
,completed
,cancelled
, orfailed
. The statuscompleted
indicates that the vector store file is ready for use. - VectorStoreObjectStatus
-
The status of the vector store, which can be either
expired
,in_progress
, orcompleted
. A status ofcompleted
indicates that the vector store is ready for use. - Verbosity
-
Constrains the verbosity of the model's response. Lower values will result in
more concise responses, while higher values will result in more verbose responses.
Currently supported values are
low
,medium
, andhigh
. - WebSearchContextSize
-
High level guidance for the amount of context window space to use for the
search. One of
low
,medium
, orhigh
.medium
is the default. - WebSearchOptionsUserLocationType
-
The type of location approximation. Always
approximate
.
Extensions
- AnnotationPatterns on Annotation
- Adds pattern-matching-related methods to Annotation.
- AnnotationUrlCitationPatterns on AnnotationUrlCitation
- Adds pattern-matching-related methods to AnnotationUrlCitation.
- AssistantModelPatterns on AssistantModel
- Adds pattern-matching-related methods to AssistantModel.
- AssistantObjectPatterns on AssistantObject
- Adds pattern-matching-related methods to AssistantObject.
- AssistantObjectResponseFormatPatterns on AssistantObjectResponseFormat
- Adds pattern-matching-related methods to AssistantObjectResponseFormat.
- AssistantsFunctionCallOptionPatterns on AssistantsFunctionCallOption
- Adds pattern-matching-related methods to AssistantsFunctionCallOption.
- AssistantsNamedToolChoicePatterns on AssistantsNamedToolChoice
- Adds pattern-matching-related methods to AssistantsNamedToolChoice.
- AssistantStreamEventPatterns on AssistantStreamEvent
- Adds pattern-matching-related methods to AssistantStreamEvent.
- AssistantToolsFileSearchFileSearchPatterns on AssistantToolsFileSearchFileSearch
- Adds pattern-matching-related methods to AssistantToolsFileSearchFileSearch.
- AssistantToolsPatterns on AssistantTools
- Adds pattern-matching-related methods to AssistantTools.
- BatchErrorsDataInnerPatterns on BatchErrorsDataInner
- Adds pattern-matching-related methods to BatchErrorsDataInner.
- BatchErrorsPatterns on BatchErrors
- Adds pattern-matching-related methods to BatchErrors.
- BatchPatterns on Batch
- Adds pattern-matching-related methods to Batch.
- BatchRequestCountsPatterns on BatchRequestCounts
- Adds pattern-matching-related methods to BatchRequestCounts.
- ChatCompletionAssistantMessageAudioPatterns on ChatCompletionAssistantMessageAudio
- Adds pattern-matching-related methods to ChatCompletionAssistantMessageAudio.
- ChatCompletionAudioOptionsPatterns on ChatCompletionAudioOptions
- Adds pattern-matching-related methods to ChatCompletionAudioOptions.
- ChatCompletionDeveloperMessageContentPatterns on ChatCompletionDeveloperMessageContent
- Adds pattern-matching-related methods to ChatCompletionDeveloperMessageContent.
- ChatCompletionFunctionCallOptionPatterns on ChatCompletionFunctionCallOption
- Adds pattern-matching-related methods to ChatCompletionFunctionCallOption.
- ChatCompletionFunctionCallPatterns on ChatCompletionFunctionCall
- Adds pattern-matching-related methods to ChatCompletionFunctionCall.
- ChatCompletionListPatterns on ChatCompletionList
- Adds pattern-matching-related methods to ChatCompletionList.
- ChatCompletionLogprobsPatterns on ChatCompletionLogprobs
- Adds pattern-matching-related methods to ChatCompletionLogprobs.
- ChatCompletionMessageContentPartPatterns on ChatCompletionMessageContentPart
- Adds pattern-matching-related methods to ChatCompletionMessageContentPart.
- ChatCompletionMessageFunctionCallPatterns on ChatCompletionMessageFunctionCall
- Adds pattern-matching-related methods to ChatCompletionMessageFunctionCall.
- ChatCompletionMessageImageUrlPatterns on ChatCompletionMessageImageUrl
- Adds pattern-matching-related methods to ChatCompletionMessageImageUrl.
- ChatCompletionMessageInputAudioPatterns on ChatCompletionMessageInputAudio
- Adds pattern-matching-related methods to ChatCompletionMessageInputAudio.
- ChatCompletionMessagePatterns on ChatCompletionMessage
- Adds pattern-matching-related methods to ChatCompletionMessage.
- ChatCompletionMessageToolCallPatterns on ChatCompletionMessageToolCall
- Adds pattern-matching-related methods to ChatCompletionMessageToolCall.
- ChatCompletionModelPatterns on ChatCompletionModel
- Adds pattern-matching-related methods to ChatCompletionModel.
- ChatCompletionNamedToolChoicePatterns on ChatCompletionNamedToolChoice
- Adds pattern-matching-related methods to ChatCompletionNamedToolChoice.
- ChatCompletionResponseChoicePatterns on ChatCompletionResponseChoice
- Adds pattern-matching-related methods to ChatCompletionResponseChoice.
- ChatCompletionStopPatterns on ChatCompletionStop
- Adds pattern-matching-related methods to ChatCompletionStop.
- ChatCompletionStreamMessageFunctionCallPatterns on ChatCompletionStreamMessageFunctionCall
- Adds pattern-matching-related methods to ChatCompletionStreamMessageFunctionCall.
- ChatCompletionStreamMessageToolCallChunkPatterns on ChatCompletionStreamMessageToolCallChunk
- Adds pattern-matching-related methods to ChatCompletionStreamMessageToolCallChunk.
- ChatCompletionStreamOptionsPatterns on ChatCompletionStreamOptions
- Adds pattern-matching-related methods to ChatCompletionStreamOptions.
- ChatCompletionStreamResponseChoiceLogprobsPatterns on ChatCompletionStreamResponseChoiceLogprobs
- Adds pattern-matching-related methods to ChatCompletionStreamResponseChoiceLogprobs.
- ChatCompletionStreamResponseChoicePatterns on ChatCompletionStreamResponseChoice
- Adds pattern-matching-related methods to ChatCompletionStreamResponseChoice.
- ChatCompletionStreamResponseDeltaAudioPatterns on ChatCompletionStreamResponseDeltaAudio
- Adds pattern-matching-related methods to ChatCompletionStreamResponseDeltaAudio.
- ChatCompletionStreamResponseDeltaPatterns on ChatCompletionStreamResponseDelta
- Adds pattern-matching-related methods to ChatCompletionStreamResponseDelta.
- ChatCompletionTokenLogprobPatterns on ChatCompletionTokenLogprob
- Adds pattern-matching-related methods to ChatCompletionTokenLogprob.
- ChatCompletionTokenTopLogprobPatterns on ChatCompletionTokenTopLogprob
- Adds pattern-matching-related methods to ChatCompletionTokenTopLogprob.
- ChatCompletionToolChoiceOptionPatterns on ChatCompletionToolChoiceOption
- Adds pattern-matching-related methods to ChatCompletionToolChoiceOption.
- ChatCompletionToolPatterns on ChatCompletionTool
- Adds pattern-matching-related methods to ChatCompletionTool.
- ChatCompletionUserMessageContentPatterns on ChatCompletionUserMessageContent
- Adds pattern-matching-related methods to ChatCompletionUserMessageContent.
- ChunkingStrategyRequestParamPatterns on ChunkingStrategyRequestParam
- Adds pattern-matching-related methods to ChunkingStrategyRequestParam.
- ChunkingStrategyResponseParamPatterns on ChunkingStrategyResponseParam
- Adds pattern-matching-related methods to ChunkingStrategyResponseParam.
- CompletionChoicePatterns on CompletionChoice
- Adds pattern-matching-related methods to CompletionChoice.
- CompletionLogprobsPatterns on CompletionLogprobs
- Adds pattern-matching-related methods to CompletionLogprobs.
- CompletionModelPatterns on CompletionModel
- Adds pattern-matching-related methods to CompletionModel.
- CompletionPromptPatterns on CompletionPrompt
- Adds pattern-matching-related methods to CompletionPrompt.
- CompletionStopPatterns on CompletionStop
- Adds pattern-matching-related methods to CompletionStop.
- CompletionTokensDetailsPatterns on CompletionTokensDetails
- Adds pattern-matching-related methods to CompletionTokensDetails.
- CompletionUsagePatterns on CompletionUsage
- Adds pattern-matching-related methods to CompletionUsage.
- CreateAssistantRequestPatterns on CreateAssistantRequest
- Adds pattern-matching-related methods to CreateAssistantRequest.
- CreateAssistantRequestResponseFormatPatterns on CreateAssistantRequestResponseFormat
- Adds pattern-matching-related methods to CreateAssistantRequestResponseFormat.
- CreateBatchRequestPatterns on CreateBatchRequest
- Adds pattern-matching-related methods to CreateBatchRequest.
- CreateChatCompletionRequestPatterns on CreateChatCompletionRequest
- Adds pattern-matching-related methods to CreateChatCompletionRequest.
- CreateChatCompletionResponsePatterns on CreateChatCompletionResponse
- Adds pattern-matching-related methods to CreateChatCompletionResponse.
- CreateChatCompletionStreamResponsePatterns on CreateChatCompletionStreamResponse
- Adds pattern-matching-related methods to CreateChatCompletionStreamResponse.
- CreateCompletionRequestPatterns on CreateCompletionRequest
- Adds pattern-matching-related methods to CreateCompletionRequest.
- CreateCompletionResponsePatterns on CreateCompletionResponse
- Adds pattern-matching-related methods to CreateCompletionResponse.
- CreateEmbeddingRequestPatterns on CreateEmbeddingRequest
- Adds pattern-matching-related methods to CreateEmbeddingRequest.
- CreateEmbeddingResponsePatterns on CreateEmbeddingResponse
- Adds pattern-matching-related methods to CreateEmbeddingResponse.
- CreateFineTuningJobRequestPatterns on CreateFineTuningJobRequest
- Adds pattern-matching-related methods to CreateFineTuningJobRequest.
- CreateImageRequestModelPatterns on CreateImageRequestModel
- Adds pattern-matching-related methods to CreateImageRequestModel.
- CreateImageRequestPatterns on CreateImageRequest
- Adds pattern-matching-related methods to CreateImageRequest.
- CreateMessageRequestContentPatterns on CreateMessageRequestContent
- Adds pattern-matching-related methods to CreateMessageRequestContent.
- CreateMessageRequestPatterns on CreateMessageRequest
- Adds pattern-matching-related methods to CreateMessageRequest.
- CreateModerationRequestPatterns on CreateModerationRequest
- Adds pattern-matching-related methods to CreateModerationRequest.
- CreateModerationResponsePatterns on CreateModerationResponse
- Adds pattern-matching-related methods to CreateModerationResponse.
- CreateRunRequestModelPatterns on CreateRunRequestModel
- Adds pattern-matching-related methods to CreateRunRequestModel.
- CreateRunRequestPatterns on CreateRunRequest
- Adds pattern-matching-related methods to CreateRunRequest.
- CreateRunRequestResponseFormatPatterns on CreateRunRequestResponseFormat
- Adds pattern-matching-related methods to CreateRunRequestResponseFormat.
- CreateRunRequestToolChoicePatterns on CreateRunRequestToolChoice
- Adds pattern-matching-related methods to CreateRunRequestToolChoice.
- CreateThreadAndRunRequestPatterns on CreateThreadAndRunRequest
- Adds pattern-matching-related methods to CreateThreadAndRunRequest.
- CreateThreadAndRunRequestResponseFormatPatterns on CreateThreadAndRunRequestResponseFormat
- Adds pattern-matching-related methods to CreateThreadAndRunRequestResponseFormat.
- CreateThreadAndRunRequestToolChoicePatterns on CreateThreadAndRunRequestToolChoice
- Adds pattern-matching-related methods to CreateThreadAndRunRequestToolChoice.
- CreateThreadRequestPatterns on CreateThreadRequest
- Adds pattern-matching-related methods to CreateThreadRequest.
- CreateVectorStoreFileBatchRequestPatterns on CreateVectorStoreFileBatchRequest
- Adds pattern-matching-related methods to CreateVectorStoreFileBatchRequest.
- CreateVectorStoreFileRequestPatterns on CreateVectorStoreFileRequest
- Adds pattern-matching-related methods to CreateVectorStoreFileRequest.
- CreateVectorStoreRequestPatterns on CreateVectorStoreRequest
- Adds pattern-matching-related methods to CreateVectorStoreRequest.
- DeleteAssistantResponsePatterns on DeleteAssistantResponse
- Adds pattern-matching-related methods to DeleteAssistantResponse.
- DeleteMessageResponsePatterns on DeleteMessageResponse
- Adds pattern-matching-related methods to DeleteMessageResponse.
- DeleteModelResponsePatterns on DeleteModelResponse
- Adds pattern-matching-related methods to DeleteModelResponse.
- DeleteThreadResponsePatterns on DeleteThreadResponse
- Adds pattern-matching-related methods to DeleteThreadResponse.
- DeleteVectorStoreFileResponsePatterns on DeleteVectorStoreFileResponse
- Adds pattern-matching-related methods to DeleteVectorStoreFileResponse.
- DeleteVectorStoreResponsePatterns on DeleteVectorStoreResponse
- Adds pattern-matching-related methods to DeleteVectorStoreResponse.
- EmbeddingInputPatterns on EmbeddingInput
- Adds pattern-matching-related methods to EmbeddingInput.
- EmbeddingModelPatterns on EmbeddingModel
- Adds pattern-matching-related methods to EmbeddingModel.
- EmbeddingPatterns on Embedding
- Adds pattern-matching-related methods to Embedding.
- EmbeddingUsagePatterns on EmbeddingUsage
- Adds pattern-matching-related methods to EmbeddingUsage.
- EmbeddingVectorPatterns on EmbeddingVector
- Adds pattern-matching-related methods to EmbeddingVector.
- EmbeddingX on Embedding
- Extension methods for Embedding.
- ErrorPatterns on Error
- Adds pattern-matching-related methods to Error.
- FileSearchRankingOptionsPatterns on FileSearchRankingOptions
- Adds pattern-matching-related methods to FileSearchRankingOptions.
- FineTuningIntegrationPatterns on FineTuningIntegration
- Adds pattern-matching-related methods to FineTuningIntegration.
- FineTuningIntegrationWandbPatterns on FineTuningIntegrationWandb
- Adds pattern-matching-related methods to FineTuningIntegrationWandb.
- FineTuningJobCheckpointMetricsPatterns on FineTuningJobCheckpointMetrics
- Adds pattern-matching-related methods to FineTuningJobCheckpointMetrics.
- FineTuningJobCheckpointPatterns on FineTuningJobCheckpoint
- Adds pattern-matching-related methods to FineTuningJobCheckpoint.
- FineTuningJobErrorPatterns on FineTuningJobError
- Adds pattern-matching-related methods to FineTuningJobError.
- FineTuningJobEventPatterns on FineTuningJobEvent
- Adds pattern-matching-related methods to FineTuningJobEvent.
- FineTuningJobHyperparametersPatterns on FineTuningJobHyperparameters
- Adds pattern-matching-related methods to FineTuningJobHyperparameters.
- FineTuningJobPatterns on FineTuningJob
- Adds pattern-matching-related methods to FineTuningJob.
- FineTuningModelPatterns on FineTuningModel
- Adds pattern-matching-related methods to FineTuningModel.
- FineTuningNEpochsPatterns on FineTuningNEpochs
- Adds pattern-matching-related methods to FineTuningNEpochs.
- FunctionObjectPatterns on FunctionObject
- Adds pattern-matching-related methods to FunctionObject.
- ImagePatterns on Image
- Adds pattern-matching-related methods to Image.
- ImagesResponsePatterns on ImagesResponse
- Adds pattern-matching-related methods to ImagesResponse.
- JsonSchemaObjectPatterns on JsonSchemaObject
- Adds pattern-matching-related methods to JsonSchemaObject.
- ListAssistantsResponsePatterns on ListAssistantsResponse
- Adds pattern-matching-related methods to ListAssistantsResponse.
- ListBatchesResponsePatterns on ListBatchesResponse
- Adds pattern-matching-related methods to ListBatchesResponse.
- ListFineTuningJobCheckpointsResponsePatterns on ListFineTuningJobCheckpointsResponse
- Adds pattern-matching-related methods to ListFineTuningJobCheckpointsResponse.
- ListFineTuningJobEventsResponsePatterns on ListFineTuningJobEventsResponse
- Adds pattern-matching-related methods to ListFineTuningJobEventsResponse.
- ListMessagesResponsePatterns on ListMessagesResponse
- Adds pattern-matching-related methods to ListMessagesResponse.
- ListModelsResponsePatterns on ListModelsResponse
- Adds pattern-matching-related methods to ListModelsResponse.
- ListPaginatedFineTuningJobsResponsePatterns on ListPaginatedFineTuningJobsResponse
- Adds pattern-matching-related methods to ListPaginatedFineTuningJobsResponse.
- ListRunsResponsePatterns on ListRunsResponse
- Adds pattern-matching-related methods to ListRunsResponse.
- ListRunStepsResponsePatterns on ListRunStepsResponse
- Adds pattern-matching-related methods to ListRunStepsResponse.
- ListThreadsResponsePatterns on ListThreadsResponse
- Adds pattern-matching-related methods to ListThreadsResponse.
- ListVectorStoreFilesResponsePatterns on ListVectorStoreFilesResponse
- Adds pattern-matching-related methods to ListVectorStoreFilesResponse.
- ListVectorStoresResponsePatterns on ListVectorStoresResponse
- Adds pattern-matching-related methods to ListVectorStoresResponse.
- MessageAttachmentPatterns on MessageAttachment
- Adds pattern-matching-related methods to MessageAttachment.
- MessageContentImageFilePatterns on MessageContentImageFile
- Adds pattern-matching-related methods to MessageContentImageFile.
- MessageContentImageUrlPatterns on MessageContentImageUrl
- Adds pattern-matching-related methods to MessageContentImageUrl.
- MessageContentPatterns on MessageContent
- Adds pattern-matching-related methods to MessageContent.
- MessageContentTextAnnotationsFileCitationPatterns on MessageContentTextAnnotationsFileCitation
- Adds pattern-matching-related methods to MessageContentTextAnnotationsFileCitation.
- MessageContentTextAnnotationsFilePathPatterns on MessageContentTextAnnotationsFilePath
- Adds pattern-matching-related methods to MessageContentTextAnnotationsFilePath.
- MessageContentTextAnnotationsPatterns on MessageContentTextAnnotations
- Adds pattern-matching-related methods to MessageContentTextAnnotations.
- MessageContentTextPatterns on MessageContentText
- Adds pattern-matching-related methods to MessageContentText.
- MessageContentX on MessageContent
- Extension methods for MessageContent.
- MessageDeltaContentPatterns on MessageDeltaContent
- Adds pattern-matching-related methods to MessageDeltaContent.
- MessageDeltaContentTextAnnotationsFileCitationPatterns on MessageDeltaContentTextAnnotationsFileCitation
- Adds pattern-matching-related methods to MessageDeltaContentTextAnnotationsFileCitation.
- MessageDeltaContentTextAnnotationsFilePathObjectFilePathPatterns on MessageDeltaContentTextAnnotationsFilePathObjectFilePath
- Adds pattern-matching-related methods to MessageDeltaContentTextAnnotationsFilePathObjectFilePath.
- MessageDeltaContentTextAnnotationsPatterns on MessageDeltaContentTextAnnotations
- Adds pattern-matching-related methods to MessageDeltaContentTextAnnotations.
- MessageDeltaContentTextPatterns on MessageDeltaContentText
- Adds pattern-matching-related methods to MessageDeltaContentText.
- MessageDeltaObjectPatterns on MessageDeltaObject
- Adds pattern-matching-related methods to MessageDeltaObject.
- MessageDeltaPatterns on MessageDelta
- Adds pattern-matching-related methods to MessageDelta.
- MessageObjectIncompleteDetailsPatterns on MessageObjectIncompleteDetails
- Adds pattern-matching-related methods to MessageObjectIncompleteDetails.
- MessageObjectPatterns on MessageObject
- Adds pattern-matching-related methods to MessageObject.
- MessageRequestContentTextObjectPatterns on MessageRequestContentTextObject
- Adds pattern-matching-related methods to MessageRequestContentTextObject.
- ModelPatterns on Model
- Adds pattern-matching-related methods to Model.
- ModerationCategoriesAppliedInputTypesPatterns on ModerationCategoriesAppliedInputTypes
- Adds pattern-matching-related methods to ModerationCategoriesAppliedInputTypes.
- ModerationCategoriesPatterns on ModerationCategories
- Adds pattern-matching-related methods to ModerationCategories.
- ModerationCategoriesScoresPatterns on ModerationCategoriesScores
- Adds pattern-matching-related methods to ModerationCategoriesScores.
- ModerationInputObjectImageUrlImageUrlPatterns on ModerationInputObjectImageUrlImageUrl
- Adds pattern-matching-related methods to ModerationInputObjectImageUrlImageUrl.
- ModerationInputObjectPatterns on ModerationInputObject
- Adds pattern-matching-related methods to ModerationInputObject.
- ModerationInputPatterns on ModerationInput
- Adds pattern-matching-related methods to ModerationInput.
- ModerationModelPatterns on ModerationModel
- Adds pattern-matching-related methods to ModerationModel.
- ModerationPatterns on Moderation
- Adds pattern-matching-related methods to Moderation.
- ModifyAssistantRequestPatterns on ModifyAssistantRequest
- Adds pattern-matching-related methods to ModifyAssistantRequest.
- ModifyAssistantRequestResponseFormatPatterns on ModifyAssistantRequestResponseFormat
- Adds pattern-matching-related methods to ModifyAssistantRequestResponseFormat.
- ModifyMessageRequestPatterns on ModifyMessageRequest
- Adds pattern-matching-related methods to ModifyMessageRequest.
- ModifyRunRequestPatterns on ModifyRunRequest
- Adds pattern-matching-related methods to ModifyRunRequest.
- ModifyThreadRequestPatterns on ModifyThreadRequest
- Adds pattern-matching-related methods to ModifyThreadRequest.
- PredictionContentContentPatterns on PredictionContentContent
- Adds pattern-matching-related methods to PredictionContentContent.
- PredictionContentPatterns on PredictionContent
- Adds pattern-matching-related methods to PredictionContent.
- ResponseFormatPatterns on ResponseFormat
- Adds pattern-matching-related methods to ResponseFormat.
- RunCompletionUsagePatterns on RunCompletionUsage
- Adds pattern-matching-related methods to RunCompletionUsage.
- RunLastErrorPatterns on RunLastError
- Adds pattern-matching-related methods to RunLastError.
- RunObjectIncompleteDetailsPatterns on RunObjectIncompleteDetails
- Adds pattern-matching-related methods to RunObjectIncompleteDetails.
- RunObjectPatterns on RunObject
- Adds pattern-matching-related methods to RunObject.
- RunObjectResponseFormatPatterns on RunObjectResponseFormat
- Adds pattern-matching-related methods to RunObjectResponseFormat.
- RunObjectToolChoicePatterns on RunObjectToolChoice
- Adds pattern-matching-related methods to RunObjectToolChoice.
- RunRequiredActionPatterns on RunRequiredAction
- Adds pattern-matching-related methods to RunRequiredAction.
- RunStepCompletionUsagePatterns on RunStepCompletionUsage
- Adds pattern-matching-related methods to RunStepCompletionUsage.
- RunStepDeltaDetailsPatterns on RunStepDeltaDetails
- Adds pattern-matching-related methods to RunStepDeltaDetails.
- RunStepDeltaObjectPatterns on RunStepDeltaObject
- Adds pattern-matching-related methods to RunStepDeltaObject.
- RunStepDeltaPatterns on RunStepDelta
- Adds pattern-matching-related methods to RunStepDelta.
- RunStepDeltaStepDetailsMessageCreationPatterns on RunStepDeltaStepDetailsMessageCreation
- Adds pattern-matching-related methods to RunStepDeltaStepDetailsMessageCreation.
- RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterPatterns on RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter
- Adds pattern-matching-related methods to RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter.
- RunStepDeltaStepDetailsToolCallsCodeOutputImagePatterns on RunStepDeltaStepDetailsToolCallsCodeOutputImage
- Adds pattern-matching-related methods to RunStepDeltaStepDetailsToolCallsCodeOutputImage.
- RunStepDeltaStepDetailsToolCallsCodeOutputPatterns on RunStepDeltaStepDetailsToolCallsCodeOutput
- Adds pattern-matching-related methods to RunStepDeltaStepDetailsToolCallsCodeOutput.
- RunStepDeltaStepDetailsToolCallsFunctionPatterns on RunStepDeltaStepDetailsToolCallsFunction
- Adds pattern-matching-related methods to RunStepDeltaStepDetailsToolCallsFunction.
- RunStepDeltaStepDetailsToolCallsPatterns on RunStepDeltaStepDetailsToolCalls
- Adds pattern-matching-related methods to RunStepDeltaStepDetailsToolCalls.
- RunStepDetailsMessageCreationPatterns on RunStepDetailsMessageCreation
- Adds pattern-matching-related methods to RunStepDetailsMessageCreation.
- RunStepDetailsPatterns on RunStepDetails
- Adds pattern-matching-related methods to RunStepDetails.
- RunStepDetailsToolCallsCodeObjectCodeInterpreterPatterns on RunStepDetailsToolCallsCodeObjectCodeInterpreter
- Adds pattern-matching-related methods to RunStepDetailsToolCallsCodeObjectCodeInterpreter.
- RunStepDetailsToolCallsCodeOutputImagePatterns on RunStepDetailsToolCallsCodeOutputImage
- Adds pattern-matching-related methods to RunStepDetailsToolCallsCodeOutputImage.
- RunStepDetailsToolCallsCodeOutputPatterns on RunStepDetailsToolCallsCodeOutput
- Adds pattern-matching-related methods to RunStepDetailsToolCallsCodeOutput.
- RunStepDetailsToolCallsFileSearchPatterns on RunStepDetailsToolCallsFileSearch
- Adds pattern-matching-related methods to RunStepDetailsToolCallsFileSearch.
- RunStepDetailsToolCallsFileSearchRankingOptionsObjectPatterns on RunStepDetailsToolCallsFileSearchRankingOptionsObject
- Adds pattern-matching-related methods to RunStepDetailsToolCallsFileSearchRankingOptionsObject.
- RunStepDetailsToolCallsFileSearchResultContentPatterns on RunStepDetailsToolCallsFileSearchResultContent
- Adds pattern-matching-related methods to RunStepDetailsToolCallsFileSearchResultContent.
- RunStepDetailsToolCallsFileSearchResultObjectPatterns on RunStepDetailsToolCallsFileSearchResultObject
- Adds pattern-matching-related methods to RunStepDetailsToolCallsFileSearchResultObject.
- RunStepDetailsToolCallsFunctionPatterns on RunStepDetailsToolCallsFunction
- Adds pattern-matching-related methods to RunStepDetailsToolCallsFunction.
- RunStepDetailsToolCallsPatterns on RunStepDetailsToolCalls
- Adds pattern-matching-related methods to RunStepDetailsToolCalls.
- RunStepLastErrorPatterns on RunStepLastError
- Adds pattern-matching-related methods to RunStepLastError.
- RunStepObjectPatterns on RunStepObject
- Adds pattern-matching-related methods to RunStepObject.
- RunSubmitToolOutputPatterns on RunSubmitToolOutput
- Adds pattern-matching-related methods to RunSubmitToolOutput.
- RunSubmitToolOutputsPatterns on RunSubmitToolOutputs
- Adds pattern-matching-related methods to RunSubmitToolOutputs.
- RunToolCallFunctionPatterns on RunToolCallFunction
- Adds pattern-matching-related methods to RunToolCallFunction.
- RunToolCallObjectPatterns on RunToolCallObject
- Adds pattern-matching-related methods to RunToolCallObject.
- StaticChunkingStrategyPatterns on StaticChunkingStrategy
- Adds pattern-matching-related methods to StaticChunkingStrategy.
- SubmitToolOutputsRunRequestPatterns on SubmitToolOutputsRunRequest
- Adds pattern-matching-related methods to SubmitToolOutputsRunRequest.
- ThreadAndRunModelPatterns on ThreadAndRunModel
- Adds pattern-matching-related methods to ThreadAndRunModel.
- ThreadObjectPatterns on ThreadObject
- Adds pattern-matching-related methods to ThreadObject.
- ToolResourcesCodeInterpreterPatterns on ToolResourcesCodeInterpreter
- Adds pattern-matching-related methods to ToolResourcesCodeInterpreter.
- ToolResourcesFileSearchPatterns on ToolResourcesFileSearch
- Adds pattern-matching-related methods to ToolResourcesFileSearch.
- ToolResourcesFileSearchVectorStorePatterns on ToolResourcesFileSearchVectorStore
- Adds pattern-matching-related methods to ToolResourcesFileSearchVectorStore.
- ToolResourcesPatterns on ToolResources
- Adds pattern-matching-related methods to ToolResources.
- TruncationObjectPatterns on TruncationObject
- Adds pattern-matching-related methods to TruncationObject.
- UpdateVectorStoreRequestPatterns on UpdateVectorStoreRequest
- Adds pattern-matching-related methods to UpdateVectorStoreRequest.
- VectorStoreExpirationAfterPatterns on VectorStoreExpirationAfter
- Adds pattern-matching-related methods to VectorStoreExpirationAfter.
- VectorStoreFileBatchObjectFileCountsPatterns on VectorStoreFileBatchObjectFileCounts
- Adds pattern-matching-related methods to VectorStoreFileBatchObjectFileCounts.
- VectorStoreFileBatchObjectPatterns on VectorStoreFileBatchObject
- Adds pattern-matching-related methods to VectorStoreFileBatchObject.
- VectorStoreFileObjectLastErrorPatterns on VectorStoreFileObjectLastError
- Adds pattern-matching-related methods to VectorStoreFileObjectLastError.
- VectorStoreFileObjectPatterns on VectorStoreFileObject
- Adds pattern-matching-related methods to VectorStoreFileObject.
- VectorStoreObjectFileCountsPatterns on VectorStoreObjectFileCounts
- Adds pattern-matching-related methods to VectorStoreObjectFileCounts.
- VectorStoreObjectPatterns on VectorStoreObject
- Adds pattern-matching-related methods to VectorStoreObject.
- WebSearchLocationPatterns on WebSearchLocation
- Adds pattern-matching-related methods to WebSearchLocation.
- WebSearchOptionsPatterns on WebSearchOptions
- Adds pattern-matching-related methods to WebSearchOptions.
- WebSearchOptionsUserLocationPatterns on WebSearchOptionsUserLocation
- Adds pattern-matching-related methods to WebSearchOptionsUserLocation.
Typedefs
-
ChatCompletionMessageToolCalls
= List<
ChatCompletionMessageToolCall> - The tool calls generated by the model, such as function calls.
-
ChatCompletionMetadata
= Map<
String, String> - Developer-defined tags and values used for filtering completions in the dashboard.
-
FunctionParameters
= Map<
String, dynamic> - The parameters the functions accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format.
Exceptions / Errors
- OpenAIClientException
- HTTP exception handler for OpenAIClient