han145 commited on
Commit
75335cd
·
verified ·
1 Parent(s): 1cf36f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -104,10 +104,14 @@ RUN mkdir -p /root/.openclaw && \
104
  "baseUrl": "PLACEHOLDER_BASE_URL",
105
  "apiKey": "PLACEHOLDER_API_KEY",
106
  "api": "openai-completions",
 
 
 
 
107
  "models": [
108
  {
109
  "id": "PLACEHOLDER_MODEL_ID",
110
- "name": "GLM-4.7-Flash",
111
  "contextWindow": 131072
112
  }
113
  ]
@@ -181,8 +185,8 @@ sed -e "s|PLACEHOLDER_BASE_URL|$CLEAN_BASE|g" \
181
 
182
  echo "✅ OpenClaw fully started (sessions + skills + scheduled tasks restored)"
183
 
184
- # 每20分钟自动备份
185
- (while true; do sleep 1200; python3 /usr/local/bin/sync.py backup; done) &
186
 
187
  openclaw doctor --fix
188
  exec openclaw gateway run --port $PORT
 
104
  "baseUrl": "PLACEHOLDER_BASE_URL",
105
  "apiKey": "PLACEHOLDER_API_KEY",
106
  "api": "openai-completions",
107
+ "headers": {
108
+ "User-Agent": "claude-cli/2.0.76 (external, cli)",
109
+ "Authorization": "Bearer PLACEHOLDER_API_KEY"
110
+ },
111
  "models": [
112
  {
113
  "id": "PLACEHOLDER_MODEL_ID",
114
+ "name": "Kimi K2.6",
115
  "contextWindow": 131072
116
  }
117
  ]
 
185
 
186
  echo "✅ OpenClaw fully started (sessions + skills + scheduled tasks restored)"
187
 
188
+ # 每200分钟自动备份
189
+ (while true; do sleep 12000; python3 /usr/local/bin/sync.py backup; done) &
190
 
191
  openclaw doctor --fix
192
  exec openclaw gateway run --port $PORT