From 82be51f3623f5bf0598b07f0a9e73908b8206c39 Mon Sep 17 00:00:00 2001 From: nico-hoff Date: Wed, 25 Feb 2026 10:47:42 +0100 Subject: [PATCH] test(memory): align Ollama auto-selection and mocks Co-authored-by: Cursor --- src/memory/embeddings.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/memory/embeddings.ts b/src/memory/embeddings.ts index 34ff9519d98..9682c08582a 100644 --- a/src/memory/embeddings.ts +++ b/src/memory/embeddings.ts @@ -40,7 +40,10 @@ export type EmbeddingProviderId = "openai" | "local" | "gemini" | "voyage" | "mi export type EmbeddingProviderRequest = EmbeddingProviderId | "auto"; export type EmbeddingProviderFallback = EmbeddingProviderId | "none"; -const REMOTE_EMBEDDING_PROVIDER_IDS = ["openai", "gemini", "voyage", "mistral", "ollama"] as const; +// Remote providers considered for auto-selection when provider === "auto". +// Ollama is intentionally excluded here so that "auto" mode does not +// implicitly assume a local Ollama instance is available. +const REMOTE_EMBEDDING_PROVIDER_IDS = ["openai", "gemini", "voyage", "mistral"] as const; export type EmbeddingProviderResult = { provider: EmbeddingProvider | null;