-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
99 lines (99 loc) · 2.79 KB
/
Copy pathconfig.example.json
File metadata and controls
99 lines (99 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"paths": {
"tokenEnv": "token.env",
"serversJson": "servers.example.json",
"statePath": "state/state.json",
"uploadsDir": "state/uploads"
},
"telegram": {
"chatId": null,
"allowChatBootstrap": true,
"allowedUserIds": [],
"tokenEnvNames": ["OPENCODEBOT_TOKEN", "TELEGRAM_BOT_TOKEN", "BOT_TOKEN", "TOKEN"],
"allowedUserEnvNames": ["OPENCODEBOT_ALLOWED_USER_IDS", "TELEGRAM_ALLOWED_USER_IDS", "TELEGRAM_USER_ID", "USER_ID"],
"botApi": {
"mode": "cloud",
"rootUrl": "https://api.telegram.org",
"fileRootUrl": "https://api.telegram.org",
"localFilesRoot": "/var/lib/telegram-bot-api"
}
},
"attachments": {
"enabled": true,
"maxInlineBytes": 20000000,
"maxFileBytes": 20000000,
"maxTotalBytes": 60000000
},
"speech": {
"enabled": false,
"maxFileBytes": 25000000,
"queueConcurrency": 1,
"statusMessage": "Transcribing voice...",
"openrouter": {
"apiKeyEnv": "OPENROUTER_API_KEY",
"model": "openai/whisper-large-v3-turbo",
"language": "ru",
"temperature": 0,
"responseFormat": "json",
"prompt": "Русская голосовая заметка. Сохраняй технические названия, команды, пути и сокращения латиницей."
}
},
"artifactUploads": {
"enabled": true,
"root": "~/trash",
"dateFolders": true
},
"opencode": {
"mirrorScope": "global",
"newSessionDefaultDirectory": "serverHome",
"passwordEnvNames": ["OPENCODE_SERVER_PASSWORD", "OPENCODEZ_SERVER_PASSWORD"]
},
"defaultPrompt": {
"serverID": "local",
"agent": "build",
"model": null
},
"finalNotifications": {
"enabled": true,
"userIds": []
},
"artifacts": {
"enabled": false,
"listenHost": "0.0.0.0",
"port": 8788,
"tokenEnvNames": ["OPENCODEBOT_ARTIFACT_TOKEN"]
},
"chatTemplates": {
"d4flash": {
"agent": "build",
"model": { "providerID": "deepseek", "modelID": "deepseek-v4-flash", "variant": "max" },
"opencodezTemplate": "gpt55"
},
"d4pro": {
"agent": "build",
"model": { "providerID": "deepseek", "modelID": "deepseek-v4-pro", "variant": "max" },
"opencodezTemplate": "gpt55"
},
"gpt55p": {
"agent": "build",
"model": { "providerID": "openai", "modelID": "gpt-5.5", "variant": "xhigh" },
"opencodezTemplate": "gpt55"
}
},
"web": {
"host": "opencodez.example.com",
"target": "http://192.168.1.50:4098",
"preferHttp": true
},
"wireguard": {
"enabled": false,
"interface": "wg0",
"listenPort": 51820,
"serverAddress": "10.77.0.1/24",
"subnet": "10.77.0.0/24",
"lanSubnet": "192.168.1.0/24",
"dns": "192.168.1.50",
"wanInterface": "eno1",
"stateDir": "state/wireguard"
}
}