POST
/
chat
/
{assistant_name}
/
chat
/
completions

Authorizations

Api-Key
string
header
required

Pinecone API Key

Path Parameters

assistant_name
string
required

The name of the assistant to be described.

Body

application/json

The list of queries / chats to chat an assistant

messages
object[]
required
filter
object

Optionally filter which documents can be retrieved using the following metadata fields.

model
enum<string>
default:
gpt-4o

The large language model to use for answer generation

Available options:
gpt-4o,
claude-3-5-sonnet
stream
boolean
default:
false

If false, the assistant will return a single JSON response. If true, the assistant will return a stream of responses.

Response

200 - application/json

The ChatCompletionModel describes the response format of a chat request.

choices
object[]
id
string
model
string
usage
object

The UsageModel describes the usage of a chat completion.