han145 commited on
Commit
d4e00ce
·
verified ·
1 Parent(s): 40859a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -37,7 +37,7 @@ def restore():
37
  print("🔍 [Restore] Searching for latest backup...")
38
  files = api.list_repo_files(repo_id=repo_id, repo_type="dataset", token=token)
39
  now = datetime.now()
40
- for i in range(11):
41
  day = (now - timedelta(days=i)).strftime("%Y-%m-%d")
42
  name = f"backup_{day}.tar.gz"
43
  if name in files:
@@ -116,6 +116,10 @@ RUN mkdir -p /root/.openclaw && \
116
  },
117
  "agents": {
118
  "defaults": {
 
 
 
 
119
  "model": {
120
  "primary": "thirdparty/PLACEHOLDER_MODEL_ID"
121
  }
 
37
  print("🔍 [Restore] Searching for latest backup...")
38
  files = api.list_repo_files(repo_id=repo_id, repo_type="dataset", token=token)
39
  now = datetime.now()
40
+ for i in range(7):
41
  day = (now - timedelta(days=i)).strftime("%Y-%m-%d")
42
  name = f"backup_{day}.tar.gz"
43
  if name in files:
 
116
  },
117
  "agents": {
118
  "defaults": {
119
+ "timeoutSeconds": 300, // 整体任务超时,建议 300(5分钟)或更高
120
+ "llm": {
121
+ "idleTimeoutSeconds": 300 // LLM 空闲/响应超时,针对本地慢模型特别重要
122
+ }
123
  "model": {
124
  "primary": "thirdparty/PLACEHOLDER_MODEL_ID"
125
  }