mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-07-23 02:53:22 +08:00
feat(api-providers): 新增 web_search / image_understanding 声明式后端默认配置 (#31)
- api-providers/{web-search,image-understanding}/*.json + _index.json
- 新增 schemas/api-provider.schema.json,validate.mjs 纳入校验(CI 自检)
- 不改 compute/ 与 manifest,presetDataVersion 不变:老客户端忽略新目录,线上不受影响
Co-authored-by: yi-ge <jackyoncode@gmail.com>
This commit is contained in:
@@ -52,6 +52,9 @@ function pickSchemaKey(absPath) {
|
||||
if (rel.startsWith('compute/providers/') && rel.endsWith('.json')) return 'provider'
|
||||
if (rel.startsWith('compute/coding-plans/') && rel.endsWith('.json')) return 'provider'
|
||||
if (rel.startsWith('compute/model-specs/') && rel.endsWith('.json')) return 'model-spec'
|
||||
// api-providers/<capability>/*.json:声明式外部 API 供应商(_index.json 复用 providers-index)
|
||||
if (rel.startsWith('api-providers/') && rel.endsWith('/_index.json')) return 'providers-index'
|
||||
if (rel.startsWith('api-providers/') && rel.endsWith('.json')) return 'api-provider'
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user