mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 05:54:32 +00:00
fix(doctor): skip embedding provider check when QMD backend is active (openclaw#17295) thanks @miloudbelarebia
Verified: - pnpm build - pnpm check (fails on baseline formatting drift in files identical to origin/main) - pnpm test:macmini Co-authored-by: miloudbelarebia <52387093+miloudbelarebia@users.noreply.github.com> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { resolveMemorySearchConfig } from "../agents/memory-search.js";
|
||||
import { resolveApiKeyForProvider } from "../agents/model-auth.js";
|
||||
import { formatCliCommand } from "../cli/command-format.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { resolveMemoryBackendConfig } from "../memory/backend-config.js";
|
||||
import { note } from "../terminal/note.js";
|
||||
import { resolveUserPath } from "../utils.js";
|
||||
|
||||
@@ -22,6 +23,13 @@ export async function noteMemorySearchHealth(cfg: OpenClawConfig): Promise<void>
|
||||
return;
|
||||
}
|
||||
|
||||
// QMD backend handles embeddings internally (e.g. embeddinggemma) — no
|
||||
// separate embedding provider is needed. Skip the provider check entirely.
|
||||
const backendConfig = resolveMemoryBackendConfig({ cfg, agentId });
|
||||
if (backendConfig.backend === "qmd") {
|
||||
return;
|
||||
}
|
||||
|
||||
// If a specific provider is configured (not "auto"), check only that one.
|
||||
if (resolved.provider !== "auto") {
|
||||
if (resolved.provider === "local") {
|
||||
|
||||
Reference in New Issue
Block a user