UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

32 lines (31 loc) 957 B
import { s as isMissingEmbeddingApiKeyError } from "./memory-core-host-engine-embeddings-nTgmnTkX.js"; import { n as createMistralEmbeddingProvider, t as DEFAULT_MISTRAL_EMBEDDING_MODEL } from "./embedding-provider-CcgSraMY.js"; //#region extensions/mistral/memory-embedding-adapter.ts const mistralMemoryEmbeddingProviderAdapter = { id: "mistral", defaultModel: DEFAULT_MISTRAL_EMBEDDING_MODEL, transport: "remote", authProviderId: "mistral", autoSelectPriority: 50, allowExplicitWhenConfiguredAuto: true, shouldContinueAutoSelection: isMissingEmbeddingApiKeyError, create: async (options) => { const { provider, client } = await createMistralEmbeddingProvider({ ...options, provider: "mistral", fallback: "none" }); return { provider, runtime: { id: "mistral", cacheKeyData: { provider: "mistral", model: client.model } } }; } }; //#endregion export { mistralMemoryEmbeddingProviderAdapter as t };