dify icon indicating copy to clipboard operation
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.

Open luckylhb90 opened this issue 11 months ago • 4 comments

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

  1. 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.

image
  1. 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. image

  2. 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:

image image

luckylhb90 avatar Jan 03 '25 10:01 luckylhb90