Simford.Dong commited on
Commit
5444fa1
·
1 Parent(s): 3871945

Fix: set Gemini safetySettings to BLOCK_NONE to avoid empty responses

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -54,7 +54,13 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
54
  "agents": {\n\
55
  "defaults": {\n\
56
  "model": {\n\
57
- "primary": "google/gemini-1.5-pro"\n\
 
 
 
 
 
 
58
  }\n\
59
  }\n\
60
  }\n\
 
54
  "agents": {\n\
55
  "defaults": {\n\
56
  "model": {\n\
57
+ "primary": "google/gemini-1.5-pro",\n\
58
+ "safetySettings": [\n\
59
+ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_NONE" },\n\
60
+ { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_NONE" },\n\
61
+ { "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "BLOCK_NONE" },\n\
62
+ { "category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "BLOCK_NONE" }\n\
63
+ ]\n\
64
  }\n\
65
  }\n\
66
  }\n\