VideoUltra API
    Preparing search index...

    Interface ChatAssistantOptions

    Options of createChatAssistant.

    interface ChatAssistantOptions {
        endpoint: string;
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        };
        headers?: Record<string, string>;
        instructions?: string;
        model?: string;
    }
    Index
    endpoint: string

    An OpenAI-compatible chat completions URL — your own server or proxy, so API keys never reach the browser (e.g. /api/assistant, which adds the key and forwards).

    fetch?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
    }

    For tests / custom transports. Default: the global fetch.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    headers?: Record<string, string>

    Extra request headers (e.g. your app's session token).

    instructions?: string

    Extra instructions after the built-in ones (house style, language…).

    model?: string

    Model name sent as model (your endpoint may ignore it).