mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-10-21 04:44:26 +08:00
fix(compute): verify official model data and document sources (#112)
* fix(compute): verify official data and document model sources * test(docs): guard provider metadata source freshness
This commit is contained in:
@@ -78,7 +78,7 @@ PR #1 曾把 reasoning 模型的 `defaultTemperature` / `defaultTopP` 写为 `nu
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run validate # 校验所有数据文件
|
||||
npm run validate # 校验数据 Schema 和 Markdown 来源记录
|
||||
npm test # 跑单元测试(含反例测试)
|
||||
```
|
||||
|
||||
@@ -88,6 +88,8 @@ CI(GitHub Actions)会在每个 PR 自动运行 `validate` 和 `test`,不
|
||||
|
||||
## 数据修改流程
|
||||
|
||||
官网来源、字段级核验状态与更新流程统一记录在 [docs/model-sources/README.md](docs/model-sources/README.md)。新增或修改模型条目时,必须增量更新对应供应商 Markdown;来源记录指纹过期会导致 CI 校验失败。未核实字段明确标为 pending,不以官网首页或 HTTP 200 代替参数证明。
|
||||
|
||||
1. 编辑 `compute/model-specs/<name>.json`(模型规格或智能路由策略)、`compute/providers/<name>.json`(接入面覆盖)、`compute/coding-plans/<name>.json` 或 `compute/service-map.json`
|
||||
2. 编辑 `compute/model-specs/_index.json`(新增规格文件或调整三档策略)、`compute/providers/_index.json` 或 `coding-plans/_index.json`(新增/删除 provider 时)
|
||||
3. **必须**递增 `manifest.json#presetDataVersion`,并更新 `updatedAt`
|
||||
|
||||
Reference in New Issue
Block a user