refactor: consolidate smart routing into model specs (#75)

This commit is contained in:
yige authored and GitHub committed 2026-08-10 19:13:08 +08:00
1 parent ed0aeccf29
commit ad8c515938
32 files changed
+3907 -2021

No files matched your search

+1 -2
View File
@@ -46,12 +46,11 @@ function pickSchemaKey(absPath) {
if (rel === 'manifest.json') return 'manifest'
if (rel === 'compute/pricing.json') return 'pricing'
if (rel === 'compute/service-map.json') return 'service-map'
if (rel === 'compute/smart-routing/model-catalog.json') return 'smart-model-catalog'
if (rel === 'compute/model-specs/_index.json') return 'model-specs-index'
if (rel === 'compute/providers/_index.json') return 'providers-index'
if (rel === 'runtimes/recommended.json') return 'runtime-recommended'
if (rel === 'runtimes/versions-fallback.json') return 'runtime-versions-fallback'
if (rel === 'compute/coding-plans/_index.json') return 'providers-index'
if (rel === 'compute/model-specs/_index.json') return 'providers-index'
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'