Hi,
For a while I have consistently been getting this error maybe 60-70% of the time I use Gemini for the voice assistant. I am using gemini-flash-latest and all the default settings.
Has anyone else had this and found a solution?
Full debug: https://gist.github.com/KrisQuack/789bd101a60f6e49ece62535e6c8bca0
Logger: homeassistant.components.google_generative_ai_conversation
Source: components/google_generative_ai_conversation/entity.py:438
integration: Google Gemini (documentation, issues)
First occurred: 14:33:51 (4 occurrences)
Last logged: 14:49:25
Error sending message: <class 'google.genai.errors.ServerError'> 500 Internal Server Error. {'message': '{\n "error": {\n "code": 500,\n "message": "An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting",\n "status": "INTERNAL"\n }\n}\n', 'status': 'Internal Server Error'}
Error sending message: <class 'google.genai.errors.ClientError'> 400 Bad Request. {'message': '{\n "error": {\n "code": 400,\n "message": "Please ensure that function response turn comes immediately after a function call turn.",\n "status": "INVALID_ARGUMENT"\n }\n}\n', 'status': 'Bad Request'}