-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bedrock validation error for question clasifier in workflow #10976
Comments
I found a similar open issue and discussion related to the Bedrock validation error you're encountering:
To resolve the error "ValidationException: A conversation must alternate between user and assistant roles," ensure that your workflow strictly follows the sequence of roles: System, User, Assistant, User, Assistant, User. This pattern is necessary for models like Claude to function correctly. Double-check your workflow setup to maintain this sequence without any missing or extra roles [1][2]. |
@dosu no extra information and solution provided, pls help to fix the showstop issue of classifier. |
Has this issue been fixed yet? This issue still exists in the latest version |
This issue predictably remains even in Version 0.13.0... |
Sorry I do not see any screenshot as below can you provide it ? |
This issue has been around for a long time, but it has not been fixed yet. You can take a look:#9764 |
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Self Checks
Dify version
0.11.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
using question classifer node in workflow with bedrock claude model,when all configuration configured,alert as below:
✔️ Expected Behavior
classify question correctly
❌ Actual Behavior
[bedrock] Error: ValidationException: A conversation must alternate between user and assistant roles. Make sure the conversation alternates between user and assistant roles and try again.
The text was updated successfully, but these errors were encountered: