error while using gemini api to chat with sql database
Hello i have this code that translate human language question into sql query.when i ran in notebook it work fine but i tried to run in a python file and i get errors.
How to generate Multiple Responses for single prompt with Google Gemini API?
Context I am using google gemini-api. Using their Python SDK Goal I am trying to generate multiple possible responses for a single prompt according to the docs and API-reference Expected result – multiple response for a single prompt Actual result – single response Code I have tried # … more code above model = genai.GenerativeModel(model_name=”gemini-1.5-pro-latest”, […]
Google Gemini Pro not providing response if tools are given
Google Gemini Pro works well if not tools are provided
For example: