Open DrAliRagab opened 3 months ago
+1
+1
... and the corresponding responseSchema
please
example:
"responseMimeType" => "application/json", "responseSchema" => [ "type" => "ARRAY", "items" => [ "type" => "OBJECT", "properties" => [ "product" => [ "type" => "STRING" ] ] ] ]
According to google docs here https://ai.google.dev/docs/gemini_api_overview#json We can instruct Gemini to return
json
by adding"response_mime_type": "application/json"
togenerationConfig
I hope this will be added to
generationConfig