Merge branch 'add-querit-support' of https://github.com/querit-ai/clawdbot into add-querit-support

This commit is contained in:
Bob 2026-01-28 10:05:40 +08:00
commit fc64761998
2 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,7 @@ read_when:
# Querit # Querit
Clawdbot supports Querit as an alternative provider for `web_search`. Moltbot supports Querit as an alternative provider for `web_search`.
## Get an API key ## Get an API key

View File

@ -4,7 +4,6 @@ import type { MoltbotConfig } from "../../config/config.js";
import { formatCliCommand } from "../../cli/command-format.js"; import { formatCliCommand } from "../../cli/command-format.js";
import type { AnyAgentTool } from "./common.js"; import type { AnyAgentTool } from "./common.js";
import { jsonResult, readNumberParam, readStringParam } from "./common.js"; import { jsonResult, readNumberParam, readStringParam } from "./common.js";
import { logDebug } from "../../logger.js";
import { import {
CacheEntry, CacheEntry,
DEFAULT_CACHE_TTL_MINUTES, DEFAULT_CACHE_TTL_MINUTES,
@ -151,8 +150,8 @@ function missingSearchKeyPayload(provider: (typeof SEARCH_PROVIDERS)[number]) {
if (provider === "querit") { if (provider === "querit") {
return { return {
error: "missing_querit_api_key", error: "missing_querit_api_key",
message: `web_search (querit) needs an API key. Run \`${formatCliCommand("clawdbot configure --section web")}\` to store it, or set QUERIT_API_KEY in the Gateway environment.`, message: `web_search (querit) needs an API key. Run \`${formatCliCommand("moltbot configure --section web")}\` to store it, or set QUERIT_API_KEY in the Gateway environment.`,
docs: "https://docs.clawd.bot/tools/web", docs: "https://docs.molt.bot/tools/web",
}; };
} }
return { return {