Member Junction
    Preparing search index...

    Type Alias EmbedTextsParams

    EmbedTextsParams: BaseParams & {
        CancellationToken?: AbortSignal;
        dimensions?: number;
        inputType?: EmbeddingInputType;
        maxInputTokens?: number;
        texts: string[];
    }

    Type Declaration

    • OptionalCancellationToken?: AbortSignal

      Optional signal for cancelling the request. See EmbedTextParams.CancellationToken. Once it fires, no further text or batch is sent.

    • Optionaldimensions?: number

      Optional output dimension override. See EmbedTextParams.dimensions.

    • OptionalinputType?: EmbeddingInputType

      Optional retrieval role of the texts. See EmbedTextParams.inputType.

    • OptionalmaxInputTokens?: number

      Optional input-length cap in tokens. See EmbedTextParams.maxInputTokens.

    • texts: string[]