Interface that extends EmbeddingsParams and defines additional parameters specific to the ZhipuAIEmbeddingsParams class.

interface ZhipuAIEmbeddingsParams {
    apiKey?: string;
    modelName?: "embedding-2";
    stripNewLines?: boolean;
}

Hierarchy

  • EmbeddingsParams
    • ZhipuAIEmbeddingsParams

Implemented by

Properties

apiKey?: string

ZhipuAI API key to use

modelName?: "embedding-2"

Model Name to use

stripNewLines?: boolean

Whether to strip new lines from the input text.

Generated using TypeDoc