mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-06 16:03:04 +00:00
fix: nested modalities, per-tier metadata, drop committed cache
- capabilityModel now reads the nested modalities.{input,output} object
the catalog actually serves; the old top-level input/output tags
never matched and left both arrays permanently empty.
- Metadata is stored per tier and /v1/models selects by route.Tier,
so same-named Zen/Go models (glm-5, minimax-m3, ...) advertise the
limits of the tier that will serve them. Anonymous routes resolve
to TierZen, keeping the keyless path on Zen metadata.
- Cache schema 2 -> 3; stale flat caches are refused and fall back
to live refresh.
- Untrack config.json.models.catalog.json and ignore
*.models.catalog.json: it is a runtime snapshot, not source.
- Add models_test.go fixtures: nested modalities, tier-split limits,
tier selection, v3 round-trip, v2 rejection.
This commit is contained in:
1 parent
f3593e3790
commit
ce89cc01cb
5 files changed
+244
-1011
No files matched your search
@@ -7,3 +7,4 @@ opencode2api.exe
|
||||
*.log
|
||||
.tmp/
|
||||
.gocache/
|
||||
*.models.catalog.json
|
||||
Reference in new issue
Block a user