test(memory): align Ollama auto-selection and mocks

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
nico-hoff
2026-02-25 10:47:42 +01:00
committed by Gustavo Madeira Santana
parent e4ef85e2df
commit 82be51f362

View File

@@ -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;