mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 11:41:08 +00:00
25 lines
782 B
TypeScript
25 lines
782 B
TypeScript
import {
|
|
enablePluginInConfig,
|
|
type WebSearchProviderPlugin,
|
|
} from "openclaw/plugin-sdk/provider-web-search-contract";
|
|
|
|
export function createOllamaWebSearchProvider(): WebSearchProviderPlugin {
|
|
return {
|
|
id: "ollama",
|
|
label: "Ollama Web Search",
|
|
hint: "Local Ollama host · requires ollama signin",
|
|
onboardingScopes: ["text-inference"],
|
|
requiresCredential: false,
|
|
envVars: [],
|
|
placeholder: "(run ollama signin)",
|
|
signupUrl: "https://ollama.com/",
|
|
docsUrl: "https://docs.openclaw.ai/tools/web",
|
|
autoDetectOrder: 110,
|
|
credentialPath: "",
|
|
getCredentialValue: () => undefined,
|
|
setCredentialValue: () => {},
|
|
applySelectionConfig: (config) => enablePluginInConfig(config, "ollama").config,
|
|
createTool: () => null,
|
|
};
|
|
}
|