Member Junction
    Preparing search index...

    Type Alias EmbedTextParams

    EmbedTextParams: BaseParams & {
        CancellationToken?: AbortSignal;
        dimensions?: number;
        text: string;
    }

    Type Declaration

    • OptionalCancellationToken?: AbortSignal

      Optional signal for cancelling the request. Drivers whose SDK can abort a request forward it, so an abort tears the request down; drivers that call an in-process model check it between items and stop. A request that stops because the signal fired throws a cancellation error (classified Cancelled, or a retriable NetworkError when the signal was aborted by a timeout) rather than returning an empty result, and is never retried.

    • Optionaldimensions?: number

      Optional output dimension override. Only supported by models that accept a dimensions parameter (e.g. OpenAI text-embedding-3-*). When omitted, the model's native default dimension is used. The value stored in MJ: Vector Indexes.Dimensions is the authoritative source — callers should read it from there and pass it here.

    • text: string