希望支持web相关工具用户指定搜索引擎和代理配置
Thanks for raising this — search backend choice and proxy behavior matter a lot for users in regions where the default engines are slow or blocked, and both halves of your title have moved since this was filed.
Search engine selection has shipped: the [search] table in config.toml supports provider = duckduckgo | bing | tavily | bocha | metaso | searxng | baidu | volcengine | sofya, plus base_url (DuckDuckGo-compatible or SearXNG endpoints) and api_key, with DEEPSEEK_SEARCH_PROVIDER / DEEPSEEK_SEARCH_API_KEY / CODEWHALE_SEARCH_BASE_URL env overrides — see config.example.toml. base_url and Sofya landed in v0.8.54; Bocha response parsing was fixed in v0.8.56 (#2946).
Proxy: web tools build on reqwest's standard client (crates/tui/src/tls.rs), so HTTP_PROXY / HTTPS_PROXY / ALL_PROXY environment variables are honored for outbound requests, and v0.8.63 fixed proxy env handling for js_execution child processes (#3273, #3331). What does not exist yet is a first-class proxy key in config.toml applied to the web tools' client (crates/tui/src/tools/web_search.rs, web_run.rs) — that is the remaining scope here, queued in the v0.9.3 release lane.
Since the issue body is empty, two things would sharpen this:
- Does the
[search]provider list above cover the engines you need, or is one missing? - Do the proxy env vars work in your setup, or do you specifically need a
config.tomlproxy setting (for example, a proxy that should apply only to web tools)?
中文摘要:
- 搜索引擎选择已经支持:在
config.toml的[search]部分设置provider,可选duckduckgo | bing | tavily | bocha(博查) | metaso(秘塔) | searxng | baidu | volcengine(火山引擎) | sofya,还支持base_url和api_key,以及环境变量覆盖(DEEPSEEK_SEARCH_PROVIDER等),详见config.example.toml。 - 代理:web 工具的出站请求目前遵循标准环境变量
HTTP_PROXY/HTTPS_PROXY/ALL_PROXY;尚未支持在config.toml中直接配置代理,这是本 issue 剩余的工作,已排入 v0.9.3 版本队列。
想确认两点:
- 上面的搜索引擎列表是否覆盖你需要的引擎?如缺少请说明。
- 环境变量方式的代理是否满足你的场景?还是需要
config.toml里的专门代理配置(例如仅对 web 工具生效的代理)?
这个 issue 目前没有正文,补充一两句使用场景会帮助我们确定最终范围。
Generated by Claude Code
Closed as duplicate of #5037 (coherent search/fetch retrieval path; PRs #5065/#5127).