跳到主要内容

SuperAGI

SuperAGI 是一款 AI 超级工作应用。 官方网站:superagi.com

1.1 使用方法

方式一:config.yaml(推荐)

部署 SuperAGI 时,编辑 config.yaml

# config.yaml

# OpenAI 兼容 API 基础 URL
OPENAI_API_BASE: "https://api.luchentech.com/inference/v1"

# API Key
OPENAI_API_KEY: "sk-your-luchentech-key"

# 默认模型名称
OPENAI_MODEL: "minimax/minimax-m2.5"

重启 SuperAGI:

docker compose up -d

方式二:GUI 配置

  1. 启动 SuperAGI 并打开仪表板(默认 http://localhost:3000)

  2. 进入 Settings → Models → Custom Model

  3. 填写:

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

    • API Keysk-your-luchentech-key

    • Model Nameminimax/minimax-m2.5

  4. 保存

方式三:环境变量

docker-compose.yaml.env 中设置:

# docker-compose.yaml 中的 environment 部分
services:
superagi-backend:
environment:
- OPENAI_API_BASE=https://api.luchentech.com/inference/v1
- OPENAI_API_KEY=sk-your-luchentech-key
- OPENAI_MODEL=minimax/minimax-m2.5

1.2 创建智能体

配置完成后,创建智能体时:

  1. 进入 Agents 选项卡

  2. 点击 Create Agent

  3. LLM Model 下选择已配置的模型

  4. 设置智能体目标、工具等

  5. 启动智能体

1.3 验证配置

# 检查 SuperAGI 后端日志以确认 API 连接
docker compose logs superagi-backend --tail 50

1.4 参考