This commit is contained in:
@@ -62,6 +62,18 @@ User query: ` + query,
|
|||||||
"responseMimeType": "application/json",
|
"responseMimeType": "application/json",
|
||||||
"temperature": 0.2,
|
"temperature": 0.2,
|
||||||
"maxOutputTokens": 220,
|
"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",
|
"responseMimeType": "application/json",
|
||||||
"temperature": 0.1,
|
"temperature": 0.1,
|
||||||
"maxOutputTokens": 220,
|
"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)
|
rawText, retryErr := g.generateText(strictBody)
|
||||||
|
|||||||
Reference in New Issue
Block a user