smalibary

pi-native-search

smalibary

Pi extension that adds web_search and web_fetch tools using each provider's native search backend (ZAI, Anthropic, Google, OpenAI, xAI, Claude Code subscription), with DuckDuckGo fallback.

AI 简介

这是一个为 Pi 框架设计的插件,为 AI 模型提供原生集成的网页搜索(web_search)与网页抓取(web_fetch)能力。其核心特点是自动识别当前使用的模型提供商(如 Claude Code、ZAI、Anthropic、Google、OpenAI、xAI),并优先调用各平台官方内置的搜索/抓取工具(如 Claude Code 的 WebSearch、ZAI 的 web_search_prime),仅在不支持时降级至 DuckDuckGo HTML 抓取,无需额外 API 密钥或付费搜索服务。适用于本地化、低依赖、合规性要求高的 AI 工具链场景,尤其适合已订阅 Claude Code 或使用 ZAI Coding Plan 的开发者。

TypeScript
MIT License
33
Stars
4
Forks
25
Watchers
1
Issues

Star 增长

今日0
近 7 天0
近 30 天+1
综合评分42.2
默认分支main