router

*[OpenAI Only]* Get a list of saved Chat Completions. Only Chat Completions that have been stored with the `store` parameter set to true will be returned.

get/v1/chat/completions

Request

  • Base URL
    https://docs.sudoapp.dev (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

afterstring

Identifier for the last chat completion from the previous pagination request.

limitinteger

Number of Chat Completions to retrieve.

metadataobject

A list of metadata keys to filter the Chat Completions by. Example: metadata[key1]=value1&metadata[key2]=value2

modelstring

The model used to generate the Chat Completions.

orderstring

Sort order for Chat Completions by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.

Response

Chat completions listed successfully

first_idstring required
has_moreboolean required
last_idstring required
objectstring required

Changes

No recorded changes to this operation across all 1 revision of this API.