Unable to submit request because it has an empty text parameter. Add a value to the parameter and try again. #697
Description of the bug:
Getting this issue again, can you please have a quick look?
https://github.com/google-gemini/deprecated-generative-ai-python/issues/697
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
@hkt74 - you solved #697, do you know what's going on here?
Hi @Captainnik53
To help us investigate the issue, Could you confirm if you getting this error from Vertex client or Gemini API client? I notice the error is from Vertex client, while Gemini API returns success.
As far as I known, model wouldn't return meaningful response when sending empty text request, Could you share about your use case here? and want to explore if it is possible to make the change on the client side to filter out empty text request. thanks!
To help us investigate the issue, Could you confirm if you getting this error from Vertex client or Gemini API client? I notice the error is from Vertex client, while Gemini API returns success.
As far as I known, model wouldn't return meaningful response when sending empty text request, Could you share about your use case here? and want to explore if it is possible to make the change on the client side to filter out empty text request. thanks!
We are using the Gemini API Client, specifically the [Gemini 2.0 Flash model](https://ai.google.dev/gemini-api/docs/models#gemini-2.0-flash).
It appears that in a chat session, if a function call fails and results in a malformed function call, the model subsequently stops responding to any further queries in that same session. Instead, it returns the following error:
Invalid argument provided to Gemini: 400 Unable to submit request because it has an empty text parameter. Add a value to the parameter and try again. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini
This behavior seems consistent once the malformed call occurs, effectively halting further interaction in the current session.