I wanted to ask about how we can get the output of the request in json format, where we can set it in google ai studio like this below
I’ve read some code in python that we could use "response_mime_type": "application/json"
in the generation config.
model = genai.GenerativeModel("gemini-1.5-pro-latest",
generation_config={"response_mime_type": "application/json"})
But is it possible to do it in kotlin? because I didn’t saw any parameter available for it.
Is there any reccomendation what should I do? or should I just move out to rest api
Thanks in advance