久聚合 API
Hermes
NousResearch 开源的自托管 AI 代理,可接入 Telegram Bot,并通过久聚合调用模型。
前提
- 1已准备 Hermes 运行环境。
- 2已创建久聚合 API Key。
安装 Hermes
git clone https://github.com/NousResearch/hermes.git
cd hermes配置模型(关键步骤)
| 项目 | 值 |
|---|---|
| Provider | OpenAI Compatible |
| Base URL | https://jiujuhe.fun/v1 |
| API Key | YOUR_API_KEY |
| Model | YOUR_MODEL_ID |
接入 Telegram Bot
- 1向 BotFather 创建 Bot 并复制 Token。
- 2在 Hermes 环境变量或配置文件中写入 Telegram Token。
- 3启动 Hermes 后向 Bot 发送 hello 测试。
验证
- 1401 检查 API Key。
- 2404 检查 Base URL。
- 3模型无响应时检查模型 ID。