fix: add mistral to schema provider lists

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Drake (Moltbot Dev) 2026-01-30 09:09:13 -05:00
parent 7e78fb071b
commit 1c81c8e77e
2 changed files with 14 additions and 5 deletions

View File

@ -504,14 +504,15 @@ const FIELD_HELP: Record<string, string> = {
"Extra paths to include in memory search (directories or .md files; relative paths resolved from workspace).",
"agents.defaults.memorySearch.experimental.sessionMemory":
"Enable experimental session transcript indexing for memory search (default: false).",
"agents.defaults.memorySearch.provider": 'Embedding provider ("openai", "gemini", or "local").',
"agents.defaults.memorySearch.provider":
'Embedding provider ("openai", "gemini", "mistral", or "local").',
"agents.defaults.memorySearch.remote.baseUrl":
"Custom base URL for remote embeddings (OpenAI-compatible proxies or Gemini overrides).",
"agents.defaults.memorySearch.remote.apiKey": "Custom API key for the remote embedding provider.",
"agents.defaults.memorySearch.remote.headers":
"Extra headers for remote embeddings (merged; remote overrides OpenAI headers).",
"agents.defaults.memorySearch.remote.batch.enabled":
"Enable batch API for memory embeddings (OpenAI/Gemini; default: true).",
"Enable batch API for memory embeddings (OpenAI/Gemini/Mistral; default: true).",
"agents.defaults.memorySearch.remote.batch.wait":
"Wait for batch completion when indexing (default: true).",
"agents.defaults.memorySearch.remote.batch.concurrency":
@ -523,7 +524,7 @@ const FIELD_HELP: Record<string, string> = {
"agents.defaults.memorySearch.local.modelPath":
"Local GGUF model path or hf: URI (node-llama-cpp).",
"agents.defaults.memorySearch.fallback":
'Fallback provider when embeddings fail ("openai", "gemini", "local", or "none").',
'Fallback provider when embeddings fail ("openai", "gemini", "mistral", "local", or "none").',
"agents.defaults.memorySearch.store.path":
"SQLite index path (default: ~/.openclaw/memory/{agentId}.sqlite).",
"agents.defaults.memorySearch.store.vector.enabled":

View File

@ -311,7 +311,9 @@ export const MemorySearchSchema = z
})
.strict()
.optional(),
provider: z.union([z.literal("openai"), z.literal("local"), z.literal("gemini")]).optional(),
provider: z
.union([z.literal("openai"), z.literal("local"), z.literal("gemini"), z.literal("mistral")])
.optional(),
remote: z
.object({
baseUrl: z.string().optional(),
@ -331,7 +333,13 @@ export const MemorySearchSchema = z
.strict()
.optional(),
fallback: z
.union([z.literal("openai"), z.literal("gemini"), z.literal("local"), z.literal("none")])
.union([
z.literal("openai"),
z.literal("gemini"),
z.literal("mistral"),
z.literal("local"),
z.literal("none"),
])
.optional(),
model: z.string().optional(),
local: z