Closed neilp9 closed 10 hours ago
Thanks for the info. This repository is for Generative AI with Vertex AI on Google Cloud, not the Google AI Studio Gemini API. For issues with the Google AI Gemini API, you can report them in the appropriate repository in the google-gemini GitHub organization (https://github.com/google-gemini/generative-ai-python) or post a message on their developer forums (https://discuss.ai.google.dev/c/gemini-api/4).
File Name
google/generativeai/types/generation_types.py
What happened?
calling session.send_message returns a
GenerateContentResponse
object, and when this response includes a function call,response.text
should still work. Also, there should ideally be a convenience accessor forresponse.function_call
Instead, response.text throws an error when a function call is present
Relevant log output
Code of Conduct