How to add maxOutputTokens argument to Gemini API request
I want to add maxOutputTokens
argument in my code but I don’t know how.
Gemini API: cURL command successfully calls API, but my program does not
I am trying to experiment with the Gemini API using Python in VSCode. Unfortunately, when running the boilerplate code in the IDE, I run into a KeyError. Below is the error I get.