AWS Bedrock Provider: required key [max_tokens_to_sample] not found #1511

Closed
opened 2026-02-21 17:34:34 -05:00 by yindo · 0 comments
Owner

Originally created by @fdaugs on GitHub (Mar 22, 2024).

Originally assigned to: @guchenhe on GitHub.

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When adding a AWS Bedrock Provider I'm getting this Error, when i click on "Save":

"ValidationException: Malformed input request: #: required key [max_tokens_to_sample] not found"

I tried this with the "anthropic.claude-v2:1" model.

✔️ Expected Behavior

The model provider should be successfully added.

Actual Behavior

I get this error:
ValidationException: Malformed input request: #: required key [max_tokens_to_sample] not found.

Originally created by @fdaugs on GitHub (Mar 22, 2024). Originally assigned to: @guchenhe on GitHub. ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When adding a AWS Bedrock Provider I'm getting this Error, when i click on "Save": "ValidationException: Malformed input request: #: required key [max_tokens_to_sample] not found" I tried this with the "anthropic.claude-v2:1" model. ### ✔️ Expected Behavior The model provider should be successfully added. ### ❌ Actual Behavior I get this error: ValidationException: Malformed input request: #: required key [max_tokens_to_sample] not found.
yindo added the 🐞 bug label 2026-02-21 17:34:34 -05:00
yindo closed this issue 2026-02-21 17:34:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#1511