mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-06 08:03:47 +00:00
refactor: strip paid tiers, webui, rotation, and docker; optimize anonymous free concurrency
This commit is contained in:
1 parent
83d623d541
commit
80a8da3195
65 files changed
+648
-11927
No files matched your search
+3
-28
@@ -1,14 +1,10 @@
|
||||
{
|
||||
"listen": "127.0.0.1:8080",
|
||||
"server_keys": ["change-this-local-key"],
|
||||
"zen_keys": ["sk-your-zen-key"],
|
||||
"go_keys": [],
|
||||
"anonymous": false,
|
||||
"proxies": ["direct"],
|
||||
"proxyfile": "",
|
||||
"upstream": {
|
||||
"zen": "https://opencode.ai/zen",
|
||||
"go": "https://opencode.ai/zen/go",
|
||||
"anonymous": "https://opencode.ai/inference"
|
||||
},
|
||||
"retry": {
|
||||
@@ -17,12 +13,11 @@
|
||||
},
|
||||
"models": {
|
||||
"refresh_seconds": 300,
|
||||
"protocols": {},
|
||||
"free_only": false
|
||||
"protocols": {}
|
||||
},
|
||||
"performance": {
|
||||
"max_idle_conns": 2048,
|
||||
"max_idle_conns_per_host": 256,
|
||||
"max_idle_conns": 4096,
|
||||
"max_idle_conns_per_host": 1024,
|
||||
"max_conns_per_host": 0,
|
||||
"idle_conn_timeout_seconds": 120,
|
||||
"connect_timeout_seconds": 5,
|
||||
@@ -32,30 +27,10 @@
|
||||
},
|
||||
"logging": {
|
||||
"level": "info",
|
||||
"ring_size": 2000,
|
||||
"dump_request_bodies": false
|
||||
},
|
||||
"webui": {
|
||||
"enabled": true,
|
||||
"listen": "0.0.0.0:8081",
|
||||
"username": "admin",
|
||||
"password": "change-this-admin-password",
|
||||
"session_ttl_minutes": 720
|
||||
},
|
||||
"prefer": "go",
|
||||
"reasoning": {
|
||||
"effort": "high",
|
||||
"effort_by_model": {}
|
||||
},
|
||||
"rotation": {
|
||||
"sota": {
|
||||
"alias": "sota",
|
||||
"order": ["deepseek-v4.1-flash", "glm-5.3", "grok-4.6", "kimi-k3", "qwen3.8-max"]
|
||||
},
|
||||
"sweet": {
|
||||
"alias": "sweet",
|
||||
"order": []
|
||||
},
|
||||
"first_output_seconds": 30
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user