久聚合 API

Hermes

NousResearch 开源的自托管 AI 代理,可接入 Telegram Bot,并通过久聚合调用模型。

前提

  1. 1
    已准备 Hermes 运行环境。
  2. 2
    已创建久聚合 API Key。

安装 Hermes

git clone https://github.com/NousResearch/hermes.git
cd hermes

配置模型(关键步骤)

项目
ProviderOpenAI Compatible
Base URLhttps://jiujuhe.fun/v1
API KeyYOUR_API_KEY
ModelYOUR_MODEL_ID

接入 Telegram Bot

  1. 1
    向 BotFather 创建 Bot 并复制 Token。
  2. 2
    在 Hermes 环境变量或配置文件中写入 Telegram Token。
  3. 3
    启动 Hermes 后向 Bot 发送 hello 测试。

验证

  1. 1
    401 检查 API Key。
  2. 2
    404 检查 Base URL。
  3. 3
    模型无响应时检查模型 ID。