mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-06 08:03:47 +00:00
feat: add models.free_only to expose only free models (#66)
With Zen or Go keys configured, every paid model was exposed and routable. models.free_only rejects models that are not free in both routing entry points, so /v1/models, inference, rotation aliases and diagnostics agree. Free models keep their key fallback. The WebUI gains a toggle so saving the form no longer resets the field, and the docs note that free models never require a Zen key. Closes #66.
This commit is contained in:
1 parent
cf104d8f17
commit
d04a9c750d
8 files changed
+43
-1
No files matched your search
+2
-1
@@ -17,7 +17,8 @@
|
||||
},
|
||||
"models": {
|
||||
"refresh_seconds": 300,
|
||||
"protocols": {}
|
||||
"protocols": {},
|
||||
"free_only": false
|
||||
},
|
||||
"performance": {
|
||||
"max_idle_conns": 2048,
|
||||
|
||||
Reference in new issue
Block a user