全中文输出 + 积极正向的状态提示

所有 doctor 输出和渠道描述改为中文。
状态提示从'不支持/需要配置'的语气改为'配置一下就能用'。

Before:  Reddit posts — Need config: reddit_proxy
After:   Reddit 帖子和评论 — 配个代理就能用

Before:  XiaoHongShu — Need config: xhs_cookie
After:   小红书笔记 — 导入浏览器 Cookie 就能用
This commit is contained in:
Panniantong
2026-02-24 09:14:41 +01:00
parent 904f8dfb49
commit 2098dacd37
13 changed files with 54 additions and 44 deletions
+3 -3
View File
@@ -118,14 +118,14 @@ class Channel(ABC):
# Check required tools
for tool in self.requires_tools:
if not shutil.which(tool):
return "off", f"Install: pip install {tool}"
return "off", f"需要安装:pip install {tool}"
# Check required config
for key in self.requires_config:
if config and not config.get(key):
return "off", f"Need config: {key}. Run: agent-eyes setup"
return "off", f"需要配置 {key},运行 agent-eyes setup"
return "ok", f"{', '.join(self.backends) if self.backends else 'built-in'}"
return "ok", f"{''.join(self.backends) if self.backends else '内置'}"
async def search(self, query: str, config=None, **kwargs) -> List[SearchResult]:
"""Search this platform. Override if supported."""