Simford.Dong commited on
Commit ·
9f95f6c
1
Parent(s): 862edcf
Fix OpenClaw config: use 'primary' key in model object and remove invalid 'bind'
Browse files- agents.defaults.model now uses { "primary": "..." }
- Removed gateway.bind as it was causing 'Invalid input' error
- Added 'openclaw doctor --fix' to the startup script for robustness
- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -22,7 +22,6 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
|
|
| 22 |
cat > /root/.openclaw/openclaw.json << EOF\n\
|
| 23 |
{\n\
|
| 24 |
"gateway": {\n\
|
| 25 |
-
"bind": "0.0.0.0",\n\
|
| 26 |
"port": 7860,\n\
|
| 27 |
"controlUi": {\n\
|
| 28 |
"allowInsecureAuth": true\n\
|
|
@@ -30,13 +29,18 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
|
|
| 30 |
},\n\
|
| 31 |
"agents": {\n\
|
| 32 |
"defaults": {\n\
|
| 33 |
-
"model":
|
|
|
|
|
|
|
| 34 |
}\n\
|
| 35 |
}\n\
|
| 36 |
}\n\
|
| 37 |
EOF\n\
|
| 38 |
fi\n\
|
| 39 |
\n\
|
|
|
|
|
|
|
|
|
|
| 40 |
# Start OpenClaw gateway\n\
|
| 41 |
exec openclaw gateway --port 7860\n\
|
| 42 |
' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|
|
|
|
| 22 |
cat > /root/.openclaw/openclaw.json << EOF\n\
|
| 23 |
{\n\
|
| 24 |
"gateway": {\n\
|
|
|
|
| 25 |
"port": 7860,\n\
|
| 26 |
"controlUi": {\n\
|
| 27 |
"allowInsecureAuth": true\n\
|
|
|
|
| 29 |
},\n\
|
| 30 |
"agents": {\n\
|
| 31 |
"defaults": {\n\
|
| 32 |
+
"model": {\n\
|
| 33 |
+
"primary": "anthropic/claude-sonnet-4-20250514"\n\
|
| 34 |
+
}\n\
|
| 35 |
}\n\
|
| 36 |
}\n\
|
| 37 |
}\n\
|
| 38 |
EOF\n\
|
| 39 |
fi\n\
|
| 40 |
\n\
|
| 41 |
+
# Fix config if needed\n\
|
| 42 |
+
openclaw doctor --fix\n\
|
| 43 |
+
\n\
|
| 44 |
# Start OpenClaw gateway\n\
|
| 45 |
exec openclaw gateway --port 7860\n\
|
| 46 |
' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|