联网搜索工具。Use When (1)用户需要通过联网获取信息; (2)如果你无法直接回答用户的问题,或者需要更多信息来回答用户的问题。
KIMI_API_KEY 和 MOONSHOT_API_KEY 两个变量。如果没有设置,请登录 https://platform.moonshot.cn/console/api-keys 获取 API Key,并将其设置为环境变量。scripts/kimi-web_search.py — 联网搜索python3 scripts/kimi-web_search.py --message "<the question you want to ask>"
python3 scripts/kimi-web_search.py --message "最近有什么AI领域的重大新闻吗?"。--system-prompt "..."。choice.message.content 就是搜索后的回答。--message 参数重新运行。ZIP package — ready to use