Optional
options: RequestOptions<unknown>Optional
options: RequestOptions<unknown>Optional
options: RequestOptions<unknown>Delete a stored chat completion. Only Chat Completions that have been created
with the store
parameter set to true
can be deleted.
Optional
options: RequestOptions<unknown>List stored Chat Completions. Only Chat Completions that have been stored with
the store
parameter set to true
will be returned.
Optional
query: ChatCompletionListParamsOptional
options: RequestOptions<unknown>Optional
options: RequestOptions<unknown>Get a stored chat completion. Only Chat Completions that have been created with
the store
parameter set to true
will be returned.
Optional
options: RequestOptions<unknown>Modify a stored chat completion. Only Chat Completions that have been created
with the store
parameter set to true
can be modified. Currently, the only
supported modification is to update the metadata
field.
Optional
options: RequestOptions<unknown>
Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses.
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.