mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-09-05 19:53:46 +08:00
refactor: consolidate smart routing into model specs (#75)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user