mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Amazon Bedrock Plugin Qwen model error : This model doesn't support the stopSequences field #670
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Alex-lsky on GitHub (Sep 24, 2025).
Self Checks
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.
✔️ Error log
No response
@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
