Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Interface ChatCompletionOptions

    Request format for sending a chat completion request to an assistant.

    import type { ChatCompletionOptions } from '@pinecone-database/pinecone';
    const options: ChatCompletionOptions = { messages: ['How do I return an order?'] };
    interface ChatCompletionOptions {
        filter?: object;
        messages: MessagesModel;
        model?: string;
        temperature?: number;
    }
    Index
    filter?: object

    Filter the files used for retrieval by metadata, such as { category: 'returns' }.

    messages: MessagesModel

    The MessagesModel to send to the Assistant. Can be a list of strings or a list of objects. If sent as a list of objects, must have exactly two keys: role and content. The role key can only be one of user or assistant.

    model?: string

    The large language model to use for answer generation

    temperature?: number

    Controls response variability where supported by the model. Lower values favor more consistent answers.