Simford.Dong commited on
Commit
e8b6073
·
1 Parent(s): c79fbac

Switch to Gemini model and configure auth-profiles

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -1
Dockerfile CHANGED
@@ -22,9 +22,26 @@ RUN echo '#!/bin/bash\n\
22
  set -x\n\
23
  \n\
24
  # Create critical missing directories\n\
 
25
  mkdir -p /root/.openclaw/agents/main/sessions\n\
26
  mkdir -p /root/.openclaw/credentials\n\
27
  \n\
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  # Generate minimal config if not exists\n\
29
  if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
30
  cat > /root/.openclaw/openclaw.json << EOF\n\
@@ -44,7 +61,7 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
44
  "agents": {\n\
45
  "defaults": {\n\
46
  "model": {\n\
47
- "primary": "anthropic/claude-sonnet-4-20250514"\n\
48
  }\n\
49
  }\n\
50
  }\n\
 
22
  set -x\n\
23
  \n\
24
  # Create critical missing directories\n\
25
+ mkdir -p /root/.openclaw/agents/main/agent\n\
26
  mkdir -p /root/.openclaw/agents/main/sessions\n\
27
  mkdir -p /root/.openclaw/credentials\n\
28
  \n\
29
+ # Generate auth-profiles.json for the main agent if it doesn'\''t exist\n\
30
+ if [ ! -f /root/.openclaw/agents/main/agent/auth-profiles.json ]; then\n\
31
+ cat > /root/.openclaw/agents/main/agent/auth-profiles.json << EOF\n\
32
+ {\n\
33
+ "profiles": {\n\
34
+ "gemini-default": {\n\
35
+ "provider": "google",\n\
36
+ "apiKey": "${GEMINI_API_KEY_1}",\n\
37
+ "baseUrl": "${OPENCLAW_GEMINI_BASE_URL}",\n\
38
+ "type": "api_key"\n\
39
+ }\n\
40
+ }\n\
41
+ }\n\
42
+ EOF\n\
43
+ fi\n\
44
+ \n\
45
  # Generate minimal config if not exists\n\
46
  if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
47
  cat > /root/.openclaw/openclaw.json << EOF\n\
 
61
  "agents": {\n\
62
  "defaults": {\n\
63
  "model": {\n\
64
+ "primary": "google/gemini-2.0-flash"\n\
65
  }\n\
66
  }\n\
67
  }\n\