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:
Jason Xu committed 2026-10-15 08:08:01 +08:00
1 parent cf104d8f17
commit d04a9c750d
8 files changed
+43 -1

No files matched your search

+2 -1
View File
@@ -17,7 +17,8 @@
},
"models": {
"refresh_seconds": 300,
"protocols": {}
"protocols": {},
"free_only": false
},
"performance": {
"max_idle_conns": 2048,