Simford.Dong Claude Opus 4.6 commited on
Commit
32922ff
·
1 Parent(s): 360f9c4

feat: change default model to glm-4.7

Browse files

Change model provider from cliproxy to zai and set glm-4.7 as the primary default model.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -121,22 +121,20 @@ cat > /root/.openclaw/openclaw.json <<EOF\n\
121
  \"models\": {\n\
122
  \"mode\": \"merge\",\n\
123
  \"providers\": {\n\
124
- \"cliproxy\": {\n\
125
  \"baseUrl\": \"\$OPENAI_API_BASE\",\n\
126
  \"apiKey\": \"\$OPENAI_API_KEY\",\n\
127
  \"api\": \"openai-completions\",\n\
128
  \"models\": [\n\
129
- {\"id\": \"gemini-2.5-pro\", \"name\": \"gemini-2.5-pro\", \"contextWindow\": 200000, \"maxTokens\": 8192},\n\
130
- {\"id\": \"gemini-2.5-flash\", \"name\": \"gemini-2.5-flash\", \"contextWindow\": 200000, \"maxTokens\": 8192},\n\
131
- {\"id\": \"gemini-3-flash-preview\", \"name\": \"gemini-3-flash-preview\", \"contextWindow\": 200000, \"maxTokens\": 8192},\n\
132
- {\"id\": \"gemini-3-pro-preview\", \"name\": \"gemini-3-pro-preview\", \"contextWindow\": 200000, \"maxTokens\": 8192}\n\
133
  ]\n\
134
  }\n\
135
  }\n\
136
  },\n\
137
  \"agents\": {\n\
138
  \"defaults\": {\n\
139
- \"model\": {\"primary\": \"cliproxy/gemini-3-flash-preview\", \"fallbacks\": [\"cliproxy/gemini-3-pro-preview\"]},\n\
140
  \"workspace\": \"~/.openclaw/workspace\"\n\
141
  }\n\
142
  },\n\
 
121
  \"models\": {\n\
122
  \"mode\": \"merge\",\n\
123
  \"providers\": {\n\
124
+ \"zai\": {\n\
125
  \"baseUrl\": \"\$OPENAI_API_BASE\",\n\
126
  \"apiKey\": \"\$OPENAI_API_KEY\",\n\
127
  \"api\": \"openai-completions\",\n\
128
  \"models\": [\n\
129
+ {\"id\": \"glm-4.7\", \"name\": \"GLM-4.7 Coding\", \"contextWindow\": 200000, \"maxTokens\": 8192},\n\
130
+ {\"id\": \"glm-5\", \"name\": \"GLM-5\", \"contextWindow\": 200000, \"maxTokens\": 8192}\n\
 
 
131
  ]\n\
132
  }\n\
133
  }\n\
134
  },\n\
135
  \"agents\": {\n\
136
  \"defaults\": {\n\
137
+ \"model\": {\"primary\": \"zai/glm-4.7\"},\n\
138
  \"workspace\": \"~/.openclaw/workspace\"\n\
139
  }\n\
140
  },\n\