continue icon indicating copy to clipboard operation
continue copied to clipboard

Recent bedrock integration throwing an error about system role messge getting passed.

Open digitalneedstech opened this issue 1 year ago • 1 comments

Before submitting your bug report

Relevant environment info

- OS:
- Continue:
- IDE:
- Model:
- config.json:

Description

Recent bedrock integration throwing an error about system role messge getting passed.

When a prompt is sent to aws bedrock along with system message setup in config.json.

An error is thrown back that says role type system is not allowed when calling bedrock api.

To reproduce

  1. Go to config.json
  2. Configure basic bedrock config along with system message.
  3. Type a prompt and click send
  4. Error is received and added in log output section.

Log output

_ValidationException: 1 validation error detected: Value 'system' at 'messages.1.member.role' failed to satisfy constraint: Member must satisfy enum value set: [user, assistant]_

digitalneedstech avatar Aug 06 '24 15:08 digitalneedstech