Profeto — 给 LLM 提供数据,让 LLM 预测足球比分。 核心模块: - FastAPI 后端 + PostgreSQL (SQLAlchemy async) - 多 Agent LLM 预测 (5 专家 + 终裁) - 数据采集 (bzzoiro / understat / injuries) - React 前端 (Vite + Tailwind) 包含: - 数据源抽象 (DataSource 协议 + 注册表) - Alembic 数据库迁移 - Prompt 模板 (单/多 Agent) - 核心路径单元测试
20 lines
428 B
Bash
20 lines
428 B
Bash
# ---- 应用 ----
|
|
APP_ENV=development
|
|
LOG_LEVEL=INFO
|
|
|
|
# ---- 数据库 ----
|
|
DATABASE_URL=postgresql+asyncpg://football:football@localhost:5432/football
|
|
|
|
# ---- LLM (OpenAI-compatible,必填一个) ----
|
|
LLM_PROVIDER=openai
|
|
LLM_API_KEY=sk-xxxx
|
|
LLM_BASE_URL=https://api.openai.com/v1
|
|
LLM_MODEL=gpt-4o
|
|
|
|
# ---- 数据源 ----
|
|
BZZOIRO_KEY=
|
|
API_FOOTBALL_KEY=
|
|
|
|
# ---- CORS ----
|
|
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
|