SAP AI SDK for JavaScript - v2.13.0
    Preparing search index...

    Interface ChatCompletionRequest

    Per-request inputs for a chat completion call. Only messages, messagesHistory, and placeholderValues are accepted here. Model parameters (temperature, max_tokens, etc.), tools, and response_format must be configured in the OrchestrationModuleConfig passed to the constructor.

    interface ChatCompletionRequest {
        messages?: ChatMessages;
        messagesHistory?: ChatMessages;
        placeholderValues?: Record<string, string>;
    }
    Index
    messages?: ChatMessages

    New chat messages, including template messages.

    messages: [
    {
    role: 'system',
    content: 'You are a helpful assistant answering questions about {{product}}.'
    },
    {
    role: 'user',
    content: 'Can you give me an overview of its key benefits?'
    }
    ]
    messagesHistory?: ChatMessages

    Chat History.

    placeholderValues?: Record<string, string>

    Template parameters.

    placeholderValues: {
    product: 'SAP Cloud SDK'
    }