跳到主要内容

AutoGPT

AutoGPT 是一个持续运行 AI 助手的平台,可自动执行分配给它的任务。 官方网站:agpt.co

1.1 API 配置

方式一:直接配置

AutoGPT 平台(v0.6+)提供了 GUI 来添加 OpenAI 兼容 LLM 提供商:

  1. 进入 Settings → Providers

  2. 点击 Create New Profile

  3. 选择 OpenAI Compatible 作为提供商类型

  4. 填写:

    • Base URLhttps://api.luchentech.com/inference/v1

    • API Keysk-your-luchentech-key

    • Modelminimax/minimax-m2.5

  5. 保存

方式二:环境变量

# docker-compose.yaml
environment:
- OPENAI_API_KEY=sk-your-luchentech-key
- OPENAI_API_BASE_URL=https://api.luchentech.com/inference/v1

方式三:Block 配置

直接在 AI Text Generator Block 中配置:

  • Provider:OpenAI Compatible

  • Base URLhttps://api.luchentech.com/inference/v1

  • API Keysk-your-luchentech-key

  • Modelminimax/minimax-m2.5

1.2 验证配置

# 检查 AutoGPT 日志
docker compose logs autogpt-backend --tail 50

1.3 参考