model-management
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseChecklist
检查清单
- Update and
.env(sops) with credentialssecrets/env.json - Update config/handler with model routing
- Update registry with pricing and provider
⚠️ Pricing depends on BOTH model AND provider. Always verify pricing on the provider's website.
- 使用凭证更新和
.env(通过sops工具)secrets/env.json - 更新config/handler中的模型路由配置
- 在注册表中更新定价和服务商信息
⚠️ 定价同时取决于模型和服务商。请务必在服务商官网核实定价信息。
Files to Update
需要更新的文件
Text Models
文本模型
| File | Purpose |
|---|---|
| API keys, endpoints |
| Encrypted secrets (use sops) |
| Model routing config |
| Service name → config mapping |
| Pricing, provider, aliases, description |
| 文件 | 用途 |
|---|---|
| API密钥、端点 |
| 加密的密钥(使用sops) |
| 模型路由配置 |
| 服务名称→配置映射 |
| 定价、服务商、别名、描述 |
Image/Video Models
图像/视频模型
| File | Purpose |
|---|---|
| API keys, endpoints |
| Encrypted secrets (use sops) |
| Model handlers |
| Pricing, provider, aliases, description |
| 文件 | 用途 |
|---|---|
| API密钥、端点 |
| 加密的密钥(使用sops) |
| 模型处理器 |
| 定价、服务商、别名、描述 |
Quick Actions
快速操作
| Action | | Config/Handler | Registry |
|---|---|---|---|
| New model | ✅ | ✅ | ✅ (pricing!) |
| Change endpoint only | ✅ | - | - |
| Change provider | ✅ | ✅ | ✅ (pricing!) |
| Make paid-only | - | - | ✅ ( |
| Disable model | - | ✅ (remove) | ✅ (remove) |
| 操作 | | Config/Handler | 注册表 |
|---|---|---|---|
| 新增模型 | ✅ | ✅ | ✅(需设置定价!) |
| 仅修改端点 | ✅ | - | - |
| 修改服务商 | ✅ | ✅ | ✅(需设置定价!) |
| 设置为仅付费可用 | - | - | ✅( |
| 禁用模型 | - | ✅(移除配置) | ✅(移除记录) |
Secrets (sops)
密钥管理(sops)
bash
sops -d <service>/secrets/env.json > /tmp/plain.jsonbash
sops -d <service>/secrets/env.json > /tmp/plain.jsonEdit with jq or manually
使用jq或手动编辑
cp /tmp/plain.json <service>/secrets/env.json
sops -e -i <service>/secrets/env.json
rm /tmp/plain.json
undefinedcp /tmp/plain.json <service>/secrets/env.json
sops -e -i <service>/secrets/env.json
rm /tmp/plain.json
undefined