dify
dify copied to clipboard
[bedrock] Error: ValidationException: A conversation must start with a user message. Try again with a conversation that starts with a user message.
Self Checks
- [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [X] Please do not modify this template :) and fill in all the required fields.
Dify version
0.10.2
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
- When we use sonnet3.5 with memory enabled, this error is always reported when we call it.
[bedrock] Error: ValidationException: A conversation must start with a user message. Try again with a conversation that starts with a user message.
-
I analyzed the code and guessed that it might have something to do with checking tokens here. For the other models, I didn't think there was a problem, but for sonnet, if we removed a prompt, it would cause this error.
-
I try to modify the configuration of the model, but again I get input token overrun issues. context_size: 20000000
Is there any relevant experience you can provide for our reference?
✔️ Expected Behavior
Even if the memory function is enabled, users will not be affected.
❌ Actual Behavior
Always get the following error: