Simford.Dong commited on
Commit
89f6401
·
1 Parent(s): 4a771c9

Fix: wrap auth profiles in 'auth' object key

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -38,16 +38,18 @@ if [ ! -f /root/.openclaw/agents/main/agent/auth-profiles.json ]; then\n\
38
  \n\
39
  # Construct the JSON content\n\
40
  JSON_CONTENT="{\n\
41
- \"profiles\": {\n\
42
- \"gemini-default\": {\n\
43
- \"provider\": \"google\",\n\
44
- \"apiKey\": \"${GEMINI_API_KEY_1}\",\n"\n\
 
45
  \n\
46
  if [ -n "$OPENCLAW_GEMINI_BASE_URL" ]; then\n\
47
- JSON_CONTENT="${JSON_CONTENT} \"baseUrl\": \"${OPENCLAW_GEMINI_BASE_URL}\",\n"\n\
48
  fi\n\
49
  \n\
50
- JSON_CONTENT="${JSON_CONTENT} \"type\": \"api_key\"\n\
 
51
  }\n\
52
  }\n\
53
  }"\n\
 
38
  \n\
39
  # Construct the JSON content\n\
40
  JSON_CONTENT="{\n\
41
+ \"auth\": {\n\
42
+ \"profiles\": {\n\
43
+ \"gemini-default\": {\n\
44
+ \"provider\": \"google\",\n\
45
+ \"apiKey\": \"${GEMINI_API_KEY_1}\",\n"\n\
46
  \n\
47
  if [ -n "$OPENCLAW_GEMINI_BASE_URL" ]; then\n\
48
+ JSON_CONTENT="${JSON_CONTENT} \"baseUrl\": \"${OPENCLAW_GEMINI_BASE_URL}\",\n"\n\
49
  fi\n\
50
  \n\
51
+ JSON_CONTENT="${JSON_CONTENT} \"type\": \"api_key\"\n\
52
+ }\n\
53
  }\n\
54
  }\n\
55
  }"\n\