序境交响 - 智能多模型协作调度系统
Project description
🎼 序境交响 Symphony
⚠️ 重要声明: 这是一个AI模型调度框架,使用前请配置自己的API Key
⚡ 快速开始
1. 克隆项目
git clone https://github.com/your-repo/symphony.git
cd symphony
2. 配置API Key
编辑 data/symphony_template.db 或创建 data/symphony.db 并配置:
# 使用脚本初始化
python scripts/init_api_keys.py
或手动修改数据库中的API Key字段。
3. 安装依赖
pip install -r requirements.txt
4. 运行
from skills.symphony.Kernel.kernel_loader import KernelLoader
kl = KernelLoader()
kl.load_all()
print(f"加载完成: {kl.rules}")
📋 版本信息
| 版本 | 日期 | 说明 |
|---|---|---|
| 2.0.0 | 2026-03-14 | 正式版 - 模块化重构 |
⚠️ 使用约束
- 现在时优先 - 只从
symphony.db读取配置 - 数据库唯一 - 不使用
old/任何文件 - 自行配置 - 使用前必须配置自己的API Key
📁 目录结构
symphony/
├── Kernel/ # ⭐ 内核核心
│ ├── kernel_loader.py # 加载器
│ ├── dispatch_manager.py # 调度器
│ └── ...
├── data/ # ⭐ 数据存储
│ ├── symphony_template.db # 模板(不含Key)
│ └── README.md # 数据说明
├── core/ # 可选 - 核心引擎
├── docs/ # 文档
├── scripts/ # 脚本工具
└── SKILL.md # Skill说明
🔧 配置说明
API Key配置
-
复制模板数据库:
cp data/symphony_template.db data/symphony.db
-
使用SQLite工具修改:
UPDATE 模型配置表 SET key = '你的API密钥';
-
或使用Python脚本:
from skills.symphony.scripts.update_keys import update_api_keys update_api_keys({ '火山引擎': 'your_volcano_key', '硅基流动': 'your_silicon_key', ... })
支持的服务商
| 服务商 | 状态 | 说明 |
|---|---|---|
| 火山引擎 | ✅ 可用 | 需配置API Key |
| 硅基流动 | ✅ 可用 | 需配置API Key |
| 英伟达 | ✅ 可用 | 需配置API Key |
| 魔搭 | ✅ 可用 | 需配置API Key |
| 智谱 | ⚠️ 需测试 | 需配置API Key |
| OpenRouter | ⚠️ 需测试 | 需配置API Key |
| 魔力方舟 | ⚠️ 需测试 | 需配置API Key |
📖 文档
- SKILL.md - Skill使用指南
- data/README.md - 数据说明
- Kernel/README.md - 内核说明
🔄 迭代指南
用户/开发者可完全删除所有文件进行迭代:
- 删除
Kernel/,core/,data/等目录 - 从GitHub重新克隆
- 配置自己的API Key
- 系统会自动从数据库重构
📝 License
MIT License
⚠️ 注意: 本项目不包含实际API Key,使用前请配置自己的密钥。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
symphony_ai-2.0.0.tar.gz
(722.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
symphony_ai-2.0.0-py3-none-any.whl
(984.6 kB
view details)
File details
Details for the file symphony_ai-2.0.0.tar.gz.
File metadata
- Download URL: symphony_ai-2.0.0.tar.gz
- Upload date:
- Size: 722.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecc8b9798bc4d1c141b6b8de7710c6c2d36fede2336bce41cc9009f67e557a08
|
|
| MD5 |
57df00392523552da6756a14fc3a215a
|
|
| BLAKE2b-256 |
444dbbb5fa32810641508b076cfbcccf8ebc923a367c9bf82d9fe9b4f456231b
|
File details
Details for the file symphony_ai-2.0.0-py3-none-any.whl.
File metadata
- Download URL: symphony_ai-2.0.0-py3-none-any.whl
- Upload date:
- Size: 984.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92f6dd0c0e9387521c7e745ee57784271fee6f1a5fa09ee6bb51def79c836276
|
|
| MD5 |
7a96f3509b040b15518e5c994dad9a3c
|
|
| BLAKE2b-256 |
412787dc60df81bc85cc9ee05f9dc83ee722417c19a464ed3cc1987591c34d27
|