mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
test(memory): align Ollama auto-selection and mocks
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
Gustavo Madeira Santana
parent
e4ef85e2df
commit
82be51f362
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user