AutoGPT
AutoGPT 是一个持续运行 AI 助手的平台,可自动执行分配给它的任务。 官方网站:agpt.co
1.1 API 配置
方式一:直接配置
AutoGPT 平台(v0.6+)提供了 GUI 来添加 OpenAI 兼容 LLM 提供商:
-
进入 Settings → Providers
-
点击 Create New Profile
-
选择 OpenAI Compatible 作为提供商类型
-
填写:
-
Base URL:
https://api.luchentech.com/inference/v1 -
API Key:
sk-your-luchentech-key -
Model:
minimax/minimax-m2.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 URL:
https://api.luchentech.com/inference/v1 -
API Key:
sk-your-luchentech-key -
Model:
minimax/minimax-m2.5
1.2 验证配置
# 检查 AutoGPT 日志
docker compose logs autogpt-backend --tail 50