mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 22:20:21 +00:00
fix(web-search): split runtime provider resolution
This commit is contained in:
@@ -5,10 +5,8 @@ import type {
|
||||
PluginWebSearchProviderEntry,
|
||||
WebSearchProviderToolDefinition,
|
||||
} from "../plugins/types.js";
|
||||
import {
|
||||
resolvePluginWebSearchProviders,
|
||||
resolveRuntimeWebSearchProviders,
|
||||
} from "../plugins/web-search-providers.js";
|
||||
import { resolveBundledPluginWebSearchProviders } from "../plugins/web-search-providers.js";
|
||||
import { resolveRuntimeWebSearchProviders } from "../plugins/web-search-providers.runtime.js";
|
||||
import type { RuntimeWebSearchMetadata } from "../secrets/runtime-web-tools.types.js";
|
||||
import { normalizeSecretInput } from "../utils/normalize-secret-input.js";
|
||||
|
||||
@@ -97,7 +95,7 @@ export function resolveWebSearchProviderId(params: {
|
||||
}): string {
|
||||
const providers =
|
||||
params.providers ??
|
||||
resolvePluginWebSearchProviders({
|
||||
resolveBundledPluginWebSearchProviders({
|
||||
config: params.config,
|
||||
bundledAllowlistCompat: true,
|
||||
});
|
||||
@@ -142,7 +140,7 @@ export function resolveWebSearchDefinition(
|
||||
config: options?.config,
|
||||
bundledAllowlistCompat: true,
|
||||
})
|
||||
: resolvePluginWebSearchProviders({
|
||||
: resolveBundledPluginWebSearchProviders({
|
||||
config: options?.config,
|
||||
bundledAllowlistCompat: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user