Simford.Dong commited on
Commit ·
24e1bf6
1
Parent(s): a630075
fix: move models definition to ai section in config
Browse files- Dockerfile +9 -10
Dockerfile
CHANGED
|
@@ -86,12 +86,7 @@ cat > "$OPENCLAW_HOME/openclaw.json" << EOF\n\
|
|
| 86 |
}\n\
|
| 87 |
}\n\
|
| 88 |
},\n\
|
| 89 |
-
"
|
| 90 |
-
"defaults": {\n\
|
| 91 |
-
"model": {\n\
|
| 92 |
-
"primary": "openai/${ANTHROPIC_MODEL:-glm-4.7}"\n\
|
| 93 |
-
}\n\
|
| 94 |
-
},\n\
|
| 95 |
"models": {\n\
|
| 96 |
"openai/${ANTHROPIC_MODEL:-glm-4.7}": {\n\
|
| 97 |
"id": "${ANTHROPIC_MODEL:-glm-4.7}",\n\
|
|
@@ -100,6 +95,13 @@ cat > "$OPENCLAW_HOME/openclaw.json" << EOF\n\
|
|
| 100 |
"contextWindow": 128000\n\
|
| 101 |
}\n\
|
| 102 |
}\n\
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
}\n\
|
| 104 |
}\n\
|
| 105 |
EOF\n\
|
|
@@ -107,11 +109,8 @@ EOF\n\
|
|
| 107 |
# Debug: show config\n\
|
| 108 |
cat "$OPENCLAW_HOME/openclaw.json"\n\
|
| 109 |
\n\
|
| 110 |
-
# Background task to automatically approve pairing if it still asks\n\
|
| 111 |
-
(sleep 30 && openclaw pairing approve feishu PNF2MUCT; sleep 30 && openclaw pairing approve feishu PNF2MUCT) &\n\
|
| 112 |
-
\n\
|
| 113 |
# Start OpenClaw gateway\n\
|
| 114 |
echo "Starting OpenClaw gateway on port 7860..."\n\
|
| 115 |
exec openclaw gateway run --port 7860 --allow-unconfigured\n' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|
| 116 |
|
| 117 |
-
CMD ["/usr/local/bin/start-openclaw"]
|
|
|
|
| 86 |
}\n\
|
| 87 |
}\n\
|
| 88 |
},\n\
|
| 89 |
+
"ai": {\n\
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"models": {\n\
|
| 91 |
"openai/${ANTHROPIC_MODEL:-glm-4.7}": {\n\
|
| 92 |
"id": "${ANTHROPIC_MODEL:-glm-4.7}",\n\
|
|
|
|
| 95 |
"contextWindow": 128000\n\
|
| 96 |
}\n\
|
| 97 |
}\n\
|
| 98 |
+
},\n\
|
| 99 |
+
"agents": {\n\
|
| 100 |
+
"defaults": {\n\
|
| 101 |
+
"model": {\n\
|
| 102 |
+
"primary": "openai/${ANTHROPIC_MODEL:-glm-4.7}"\n\
|
| 103 |
+
}\n\
|
| 104 |
+
}\n\
|
| 105 |
}\n\
|
| 106 |
}\n\
|
| 107 |
EOF\n\
|
|
|
|
| 109 |
# Debug: show config\n\
|
| 110 |
cat "$OPENCLAW_HOME/openclaw.json"\n\
|
| 111 |
\n\
|
|
|
|
|
|
|
|
|
|
| 112 |
# Start OpenClaw gateway\n\
|
| 113 |
echo "Starting OpenClaw gateway on port 7860..."\n\
|
| 114 |
exec openclaw gateway run --port 7860 --allow-unconfigured\n' > /usr/local/bin/start-openclaw && chmod +x /usr/local/bin/start-openclaw
|
| 115 |
|
| 116 |
+
CMD ["/usr/local/bin/start-openclaw"]
|