You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Unable to submit request because it has an empty text parameter. Add a value to the parameter and try again. #697
chat_session.send_message() with empty parts fails with an error:
google.api_core.exceptions.InvalidArgument: 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 fails, which was working earlier chat_session.send_message({'role': 'user', 'parts': ''});
where chat_session = ChatSession(model=model, history=history)
Activity
hkt74 commentedon Mar 4, 2025
Hi @Captainnik53 , thanks for raising this issue, this should be fixed now, could you retry?
Captainnik53 commentedon Mar 5, 2025
Yes, it is fixed. Thanks for the quick fix