Skip to content
providerkit
GitHub

GeminiEmbeddingConfig

Defined in: core/src/embeddings.ts:46

apiKey: string;

Defined in: core/src/embeddings.ts:47


optional baseUrl?: string;

Defined in: core/src/embeddings.ts:54


optional dimensions?: number;

Defined in: core/src/embeddings.ts:51

Set the width of your vector index. Omitted: the model’s native width.


optional fetchImpl?: FetchLike;

Defined in: core/src/embeddings.ts:55


model: string;

Defined in: core/src/embeddings.ts:49

Pin this to the model that produced your stored vectors. Accepts a models/ prefix.


optional timeoutMs?: number | null;

Defined in: core/src/embeddings.ts:53

30 seconds by default. null leaves the deadline to the caller.