Add a Response format for Gemini Chat Model

The idea is:

As it’s possible with OpenAI Chat model, add a Response Format field for Gemini in order to enable outputting text or JSON.

My use case:

I have an AI Agent using Gemini; I’d need it to return a JSON instead of a text.

I think it would be beneficial to add this because:

AI agents have become a centrepiece and Gemini is becoming more and more interesting to build AI Agents

Any resources to support this?

Gemini enable for different output using the following syntax:

"generationConfig": {
    "responseMimeType": "application/json"

Here is the documentation

Are you willing to work on this?

I’m not able to do so :frowning:

actually really need this, gemini never work for me in n8n just because of the lacking of the response mime type here