Strengthen Gemini JSON output and range UI
build-push / docker (push) Successful in 4m15s

This commit is contained in:
AI Assistant
2026-03-13 11:19:52 +09:00
parent c4b70003f6
commit 0941f60a0c
+24
View File
@@ -62,6 +62,18 @@ User query: ` + query,
"responseMimeType": "application/json",
"temperature": 0.2,
"maxOutputTokens": 220,
"responseSchema": map[string]any{
"type": "OBJECT",
"properties": map[string]any{
"querywords": map[string]any{
"type": "ARRAY",
"items": map[string]any{
"type": "STRING",
},
},
},
"required": []string{"querywords"},
},
},
}
@@ -92,6 +104,18 @@ User query: ` + query,
"responseMimeType": "application/json",
"temperature": 0.1,
"maxOutputTokens": 220,
"responseSchema": map[string]any{
"type": "OBJECT",
"properties": map[string]any{
"querywords": map[string]any{
"type": "ARRAY",
"items": map[string]any{
"type": "STRING",
},
},
},
"required": []string{"querywords"},
},
},
}
rawText, retryErr := g.generateText(strictBody)