Pinecone TypeScript SDK - v8.1.0
    Preparing search index...

    Interface ChatCompletionOptions

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

    interface ChatCompletionOptions {
        filter?: object;
        messages: MessagesModel;
        model?: string;
        temperature?: number;
    }
    Index
    filter?: object

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

    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 the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity and variability. If the model does not support a temperature parameter, the parameter will be ignored.