mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 00:20:22 +00:00
fix: require doctor migration for legacy web search config
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
} from "../agents/model-selection.js";
|
||||
import { listPotentialConfiguredChannelIds } from "../channels/config-presence.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { resolvePluginWebSearchConfig } from "../config/legacy-web-search.js";
|
||||
import {
|
||||
resolveAgentModelFallbackValues,
|
||||
resolveAgentModelPrimaryValue,
|
||||
@@ -183,22 +184,22 @@ function collectConfiguredActivationIds(config: OpenClawConfig): Set<string> {
|
||||
}
|
||||
|
||||
addResolvedActivationId({
|
||||
raw: config.tools?.web?.search?.gemini?.model,
|
||||
raw: resolvePluginWebSearchConfig(config, "google")?.model as string | undefined,
|
||||
activationIds,
|
||||
aliasIndex,
|
||||
});
|
||||
addResolvedActivationId({
|
||||
raw: config.tools?.web?.search?.grok?.model,
|
||||
raw: resolvePluginWebSearchConfig(config, "xai")?.model as string | undefined,
|
||||
activationIds,
|
||||
aliasIndex,
|
||||
});
|
||||
addResolvedActivationId({
|
||||
raw: config.tools?.web?.search?.kimi?.model,
|
||||
raw: resolvePluginWebSearchConfig(config, "moonshot")?.model as string | undefined,
|
||||
activationIds,
|
||||
aliasIndex,
|
||||
});
|
||||
addResolvedActivationId({
|
||||
raw: config.tools?.web?.search?.perplexity?.model,
|
||||
raw: resolvePluginWebSearchConfig(config, "perplexity")?.model as string | undefined,
|
||||
activationIds,
|
||||
aliasIndex,
|
||||
});
|
||||
|
||||
@@ -526,7 +526,7 @@ describe("resolvePluginWebSearchProviders", () => {
|
||||
hint: "Brave runtime provider",
|
||||
envVar: "BRAVE_API_KEY",
|
||||
signupUrl: "https://example.com/brave",
|
||||
credentialPath: "tools.web.search.brave.apiKey",
|
||||
credentialPath: "plugins.entries.brave.config.webSearch.apiKey",
|
||||
}),
|
||||
);
|
||||
setActivePluginRegistry(registry, cacheKey);
|
||||
|
||||
Reference in New Issue
Block a user