gunpal5 / Google_GenerativeAI

Unofficial C# Google Generative AI SDK (Google Gemini) with function calls support
MIT License
34 stars 4 forks source link

JSON Output #8

Open ChillingSoul opened 1 month ago

ChillingSoul commented 1 month ago

Currently there is no way to set the response_mime_type to application/json, in order to receive a JSON output. See here: https://ai.google.dev/gemini-api/docs/json-mode?lang=python

gunpal5 commented 1 month ago

Sorry, I'm not getting time to update this library, I will add the response_mime_type option quickly.