Spaces:
Um35h
/
Runtime error

Um35h commited on
Commit
de11196
·
verified ·
1 Parent(s): 1f503cd
Files changed (1) hide show
  1. config/openclaw.json +59 -2
config/openclaw.json CHANGED
@@ -3,49 +3,106 @@
3
  "providers": {
4
  "zngw": {
5
  "baseUrl": "${CLEAN_BASE}",
 
6
  "apiKey": "${OPENAI_API_KEY}",
 
7
  "api": "openai-completions",
 
8
  "models": [
9
  {
10
  "id": "${MODEL}",
11
  "name": "${MODEL}"
 
 
 
 
 
12
  }
13
  ]
14
  }
15
  }
16
  },
 
17
  "agents": {
18
  "defaults": {
19
  "model": {
20
- "primary": "zngw/${MODEL}"
 
 
 
 
 
 
 
 
21
  }
22
  }
23
  },
 
24
  "commands": {
25
  "native": true,
 
26
  "nativeSkills": true,
 
27
  "restart": false,
 
28
  "ownerDisplay": "raw"
29
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  "gateway": {
31
  "mode": "local",
 
32
  "bind": "lan",
 
33
  "port": 7860,
 
34
  "trustedProxies": [
35
  "0.0.0.0/0",
36
  "10.0.0.0/8",
37
  "172.16.0.0/12",
38
  "192.168.0.0/16"
39
  ],
 
40
  "auth": {
41
  "mode": "password",
 
42
  "token": "${OPENCLAW_GATEWAY_TOKEN}",
43
- "password": "$OPENCLAW_GATEWAY_PASSWORD"
 
44
  },
 
45
  "controlUi": {
46
  "allowedOrigins": [
47
  "${ALLOWED_ORIGINS}"
48
  ]
49
  }
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
  }
 
3
  "providers": {
4
  "zngw": {
5
  "baseUrl": "${CLEAN_BASE}",
6
+
7
  "apiKey": "${OPENAI_API_KEY}",
8
+
9
  "api": "openai-completions",
10
+
11
  "models": [
12
  {
13
  "id": "${MODEL}",
14
  "name": "${MODEL}"
15
+ },
16
+
17
+ {
18
+ "id": "${BACKUP_MODEL}",
19
+ "name": "${BACKUP_MODEL}"
20
  }
21
  ]
22
  }
23
  }
24
  },
25
+
26
  "agents": {
27
  "defaults": {
28
  "model": {
29
+ "primary": "zngw/${MODEL}",
30
+
31
+ "fallback": "zngw/${BACKUP_MODEL}"
32
+ },
33
+
34
+ "maxConcurrent": 4,
35
+
36
+ "subagents": {
37
+ "maxConcurrent": 8
38
  }
39
  }
40
  },
41
+
42
  "commands": {
43
  "native": true,
44
+
45
  "nativeSkills": true,
46
+
47
  "restart": false,
48
+
49
  "ownerDisplay": "raw"
50
  },
51
+
52
+ "channels": {
53
+ "telegram": {
54
+ "enabled": true,
55
+
56
+ "botToken": "${TELEGRAM_BOT_TOKEN}",
57
+
58
+ "allowedUsers": [
59
+ YOUR_TELEGRAM_USER_ID
60
+ ],
61
+
62
+ "groupPolicy": "allowlist",
63
+
64
+ "streamMode": "partial"
65
+ }
66
+ },
67
+
68
  "gateway": {
69
  "mode": "local",
70
+
71
  "bind": "lan",
72
+
73
  "port": 7860,
74
+
75
  "trustedProxies": [
76
  "0.0.0.0/0",
77
  "10.0.0.0/8",
78
  "172.16.0.0/12",
79
  "192.168.0.0/16"
80
  ],
81
+
82
  "auth": {
83
  "mode": "password",
84
+
85
  "token": "${OPENCLAW_GATEWAY_TOKEN}",
86
+
87
+ "password": "${OPENCLAW_GATEWAY_PASSWORD}"
88
  },
89
+
90
  "controlUi": {
91
  "allowedOrigins": [
92
  "${ALLOWED_ORIGINS}"
93
  ]
94
  }
95
+ },
96
+
97
+ "plugins": {
98
+ "entries": {
99
+ "telegram": {
100
+ "enabled": true
101
+ }
102
+ }
103
+ },
104
+
105
+ "messages": {
106
+ "ackReactionScope": "group-mentions"
107
  }
108
  }