mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 16:04:01 +00:00
config: make zen/go preference configurable via prefer field
Add a top-level "prefer" config field ("zen" or "go", default "go") that
controls which upstream is used when a model is available in both pools,
including during the temporary model-discovery fallback. Previously Zen
was always preferred.
This commit is contained in:
1 parent
e220e7a040
commit
adb0edb64a
5 files changed
+24
-7
No files matched your search
@@ -3,6 +3,7 @@
|
||||
"server_keys": ["change-this-local-key"],
|
||||
"zen_keys": ["sk-your-zen-key"],
|
||||
"go_keys": [],
|
||||
"prefer": "go",
|
||||
"proxies": ["direct"],
|
||||
"upstream": {
|
||||
"zen": "https://opencode.ai/zen",
|
||||
|
||||
Reference in new issue
Block a user