Amazon Bedrock Plugin Qwen model error : This model doesn't support the stopSequences field #670

Closed
opened 2026-02-16 10:20:08 -05:00 by yindo · 1 comment
Owner

Originally created by @Alex-lsky on GitHub (Sep 24, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.1

Plugin version

0.37

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Select the Qwen3 235B version, but an error occurs:
[bedrock] Error: PluginInvokeError: {"args":{"description":"[models] Error: ValidationException: This model doesn't support the stopSequences field. Remove stopSequences and try again."},"error_type":"InvokeError","message":"[models] Error: ValidationException: This model doesn't support the stopSequences field. Remove stopSequences and try again.

Image

✔️ Error log

No response

Originally created by @Alex-lsky on GitHub (Sep 24, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.7.1 ### Plugin version 0.37 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Select the Qwen3 235B version, but an error occurs: [bedrock] Error: PluginInvokeError: {"args":{"description":"[models] Error: ValidationException: This model doesn't support the stopSequences field. Remove stopSequences and try again."},"error_type":"InvokeError","message":"[models] Error: ValidationException: This model doesn't support the stopSequences field. Remove stopSequences and try again. <img width="534" height="191" alt="Image" src="https://github.com/user-attachments/assets/e535587c-0f3c-4130-aa5d-c6d1111464f2" /> ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:20:08 -05:00
yindo closed this issue 2026-02-16 10:20:08 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 24, 2025):

The error happens because the Bedrock plugin always includes the stopSequences field in its API calls if any stop tokens are set, but the Qwen3 235B model on Amazon Bedrock does not support this field. There is currently no conditional logic in the plugin to exclude stopSequences for models that don't support it, which leads to the validation error you’re seeing. This is a known limitation in the codebase and has been present for some time, including recent updates that added Qwen3 235B support but did not address this compatibility issue [source].

There is no official workaround or configuration to avoid passing stopSequences for incompatible models like Qwen3 235B. Fixing this would require a code change to conditionally omit stopSequences for models that do not support it, likely in the BedrockLargeLanguageModel class [source]. For now, you’ll need to monitor for plugin updates or consider a custom patch if you need an immediate solution.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 24, 2025): <!-- Answer --> The error happens because the Bedrock plugin always includes the stopSequences field in its API calls if any stop tokens are set, but the Qwen3 235B model on Amazon Bedrock does not support this field. There is currently no conditional logic in the plugin to exclude stopSequences for models that don't support it, which leads to the validation error you’re seeing. This is a known limitation in the codebase and has been present for some time, including recent updates that added Qwen3 235B support but did not address this compatibility issue [[source](https://github.com/langgenius/dify-official-plugins/blob/90720c65c97e6adb5f6b7daaed21343053d441a5/models/bedrock/models/llm/llm.py)]. There is no official workaround or configuration to avoid passing stopSequences for incompatible models like Qwen3 235B. Fixing this would require a code change to conditionally omit stopSequences for models that do not support it, likely in the BedrockLargeLanguageModel class [[source](https://github.com/langgenius/dify-official-plugins/pull/1738)]. For now, you’ll need to monitor for plugin updates or consider a custom patch if you need an immediate solution. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/904ede21-aef1-4137-8510-394889312462?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/904ede21-aef1-4137-8510-394889312462?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/904ede21-aef1-4137-8510-394889312462?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/904ede21-aef1-4137-8510-394889312462?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/904ede21-aef1-4137-8510-394889312462?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/904ede21-aef1-4137-8510-394889312462?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/904ede21-aef1-4137-8510-394889312462?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1767)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#670