Chat through an OpenAI-compatible interface
Chat with an assistant. This endpoint is based on the OpenAI Chat Completion API, a commonly used and adopted API.
It is useful if you need inline citations or OpenAI-compatible responses, but has limited functionality compared to the standard chat interface.
For guidance and examples, see Chat with an assistant.
Authorizations
Pinecone API Key
Path Parameters
The name of the assistant to be described.
Body
The list of queries / chats to chat an assistant
The MessageModel describes the format of a message in a chat.
If false, the assistant will return a single JSON response. If true, the assistant will return a stream of responses.
The large language model to use for answer generation
gpt-4o
, claude-3-5-sonnet
Optionally filter which documents can be retrieved using the following metadata fields.
{ "genre": { "$ne": "documentary" } }
Response
The ChatCompletionModel describes the response format of a chat request.
The ChoiceModel describes a single choice in a chat completion response
The UsageModel describes the usage of a chat completion.
Was this page helpful?