mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[Gemini] ClientError: 400 INVALID_ARGUMENT #126
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shelltea on GitHub (Mar 26, 2025).
Self Checks
Dify version
1.1.3
Plugin version
0.1.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When using the Gemini 2.0 Pro and Gemini 2.5 Pro models, an error occurs during the second round of conversation, while the first round is normal.
✔️ Error log
2025-03-26 11:20:50.659 DEBUG [Dummy-479] [based_generate_task_pipeline.py:45] - error: [google] Error: PluginInvokeError: {"args":{},"error_type":"ClientError","message":"400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Please use a valid role: user, model.', 'status': 'INVALID_ARGUMENT'}}"}