Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GenerativeModel.generate_content() missing 1 required keyword-only argument: 'tool_config'

Has anyone run into this error when trying to generate content with Gemini Pro? This is the error I get after creating a gemini.model object using boilerplate code.

 

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[26], line 1
----> 1 gemini.model.generate_content('hi')

TypeError: GenerativeModel.generate_content() missing 1 required keyword-only argument: 'tool_config'

 

7 0 843
0 REPLIES 0