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
2025-03-23 16:47:19.869 | ERROR | app.llm:ask_tool:762 - OpenAI API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:19.869 | ERROR | app.llm:ask_tool:768 - API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:21.399 | ERROR | app.llm:ask_tool:762 - OpenAI API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:21.399 | ERROR | app.llm:ask_tool:768 - API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:25.084 | ERROR | app.llm:ask_tool:762 - OpenAI API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:25.084 | ERROR | app.llm:ask_tool:768 - API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
https://github.com/mannaandpoem/OpenManus/issues/787#issuecomment-2735551810
If you refer to this answer, I think it will probably be resolved.
Pull request #864 proposes a solution by modifying the prompt(in browser_use tool) and token max limits, but that didn't work for me. I had to roll back to a specific version, as the link says.
It seems that this issue occurs especially in Gemini.
Bug Description
i am unable to use gemini api
2025-03-23 16:47:19.869 | ERROR | app.llm:ask_tool:762 - OpenAI API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:19.869 | ERROR | app.llm:ask_tool:768 - API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:21.399 | ERROR | app.llm:ask_tool:762 - OpenAI API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:21.399 | ERROR | app.llm:ask_tool:768 - API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:25.084 | ERROR | app.llm:ask_tool:762 - OpenAI API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
2025-03-23 16:47:25.084 | ERROR | app.llm:ask_tool:768 - API error: Error code: 400 - [{'error': {'code': 400, 'message': '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', 'status': 'INVALID_ARGUMENT'}}]
Bug solved method
Fix is to be found after determing the issue
Environment information
pip install -r requirements.txt
orpip install -e .
):Extra information
No response
The text was updated successfully, but these errors were encountered: