mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Bedrock Plugin with Claude Opus 4.0/4.1 make PluginInvokeError #672
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 @uenotakeshi1048 on GitHub (Sep 24, 2025).
Self Checks
Dify version
1.8.1
Plugin version
Bedrock 0.0.37
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
( This issue is continue from https://github.com/langgenius/dify-official-plugins/issues/1725 )
Select Bedrock Plugin 0.0.37
make simple workflow with "Claude 4.0 Opus" or "Claude 4.1 Opus"
(Cross-Region Infence set to True)
and...
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Sep 24, 2025):
The PluginInvokeError with "ValidationException: The provided model identifier is invalid" for Claude Opus 4.0/4.1 in Bedrock plugin 0.0.36 and 0.0.37 (with Cross-Region Inference enabled) is caused by stricter model identifier validation and changes in how model IDs are constructed in these plugin versions. The plugin now requires specific region-aware model ID formats (like
global.anthropic.claude-opus-4-20250514-v1:0) and a validinference_profile_idin the configuration. If the model ID or region mapping is incorrect, Bedrock returns this validation error. This stricter logic does not affect Sonnet models or plugin version 0.0.35, which is more permissive and works as a temporary workaround for Opus models details.To resolve or work around this:
inference_profile_idin your model configuration.This issue is actively tracked and discussed in the repository, and configuration or plugin updates may be needed for full compatibility with Opus 4.x models in future releases.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@nadazero commented on GitHub (Sep 27, 2025):
The Model ID and inference profile ID are both generated by AWS and cannot be modified or customized by users.
So, how can users ensure that the model ID is correct or not?
Has an official DIFY staff member come forward to explain this issue?
The AI's answer seems reasonable, but there is no fundamental explanation for why the plugin is reporting this error now.
Is it possible that it is a bug in the program?
@nadazero commented on GitHub (Sep 27, 2025):
I asked AWS official customer service and received an answer that currently only the Claude Sonnet 4 model supports adding the global prefix in front, while Claude Opus 4.0/4.1 does not support the global prefix.
That's why the 0.0.36/0.037 plugin version reports Opus 4.0/4.1 works NG but Sonnet 4 works OK.
It is almost certain that this is a plugin bug.
At present, only Claude Sonnet 4 should be checked and Claude Opus 4.0/4.1 should not be checked.
@nadazero commented on GitHub (Sep 27, 2025):
We hope DIFY could fix this issue ASAP.
@nadazero commented on GitHub (Sep 27, 2025):
and the fix patch should be as following:
@nadazero commented on GitHub (Sep 28, 2025):
@uenotakeshi1048 @claude @coldstone @wangjianming
@nadazero commented on GitHub (Sep 29, 2025):
How could I push this issue? Which people should I @ ?
@nadazero commented on GitHub (Oct 8, 2025):
@trend-jacky-su
@nadazero commented on GitHub (Oct 8, 2025):
@trend-jacky-su could you please have a look at this issue?
@nadazero commented on GitHub (Oct 9, 2025):
@crazywoola could you please have a look at this issue? or connenct @trend-jacky-su (code author) to confirm this issue again
@nadazero commented on GitHub (Oct 10, 2025):
@ybalbert001 could you please have a look at this issue?
@twjackysu commented on GitHub (Oct 12, 2025):
@nadazero Hello, I don't work for Dify or AWS. I am just an open-source contributor who helps fix bugs in my free time. Could someone please review this PR?
PR-1837
Also, since this is open source, if you have the time and need the fix urgently, feel free to create a new PR yourself to fix the issue or make any necessary changes!