mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"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"
|
|
},
|
|
"retry": {
|
|
"max_attempts": 3,
|
|
"timeout_seconds": 300
|
|
},
|
|
"models": {
|
|
"refresh_seconds": 300,
|
|
"protocols": {}
|
|
},
|
|
"performance": {
|
|
"max_idle_conns": 2048,
|
|
"max_idle_conns_per_host": 256,
|
|
"max_conns_per_host": 0,
|
|
"idle_conn_timeout_seconds": 120,
|
|
"connect_timeout_seconds": 5,
|
|
"failure_cooldown_seconds": 15,
|
|
"attempt_timeout_seconds": 0
|
|
},
|
|
"logging": {
|
|
"level": "info",
|
|
"ring_size": 2000,
|
|
"dump_request_bodies": false
|
|
},
|
|
"webui": {
|
|
"enabled": true,
|
|
"listen": "0.0.0.0:8081",
|
|
"username": "admin",
|
|
"password_hash": "$argon2id$v=19$m=65536,t=3,p=2$ogomnqeWe2qgf/CdcRNHdw$ZPR9Pfv2uVCJXa6SRr1PqNINZGtkmKk68uXL7quJFNk",
|
|
"session_ttl_minutes": 720
|
|
},
|
|
"prefer": "go",
|
|
"reasoning": {}
|
|
}
|