Bedrock Plugin with Claude Opus 4.0/4.1 make PluginInvokeError #672

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

Originally created by @uenotakeshi1048 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.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"

Image

(Cross-Region Infence set to True)

  • start chat, then error.
Image

[bedrock] Error: req_id: c23f89f5ce PluginInvokeError: {"args":{"description":"[models] Error: ValidationException: The provided model identifier is invalid."},"error_type":"InvokeError","message":"[models] Error: ValidationException: The provided model identifier is invalid."}

and...

  • no error with "Claude 4.0 Sonnet"
Image
  • no error with Bedrock Plugin 0.0.35 but same error with 0.0.36.

✔️ Error log

No response

Originally created by @uenotakeshi1048 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.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" <img width="487" height="281" alt="Image" src="https://github.com/user-attachments/assets/f2b891ba-ab6c-4a03-a6d4-70e25a0011bd" /> (Cross-Region Infence set to True) - start chat, then error. <img width="823" height="458" alt="Image" src="https://github.com/user-attachments/assets/b4a946a5-8cb6-4407-8310-8e3258d149eb" /> > [bedrock] Error: req_id: c23f89f5ce PluginInvokeError: {"args":{"description":"[models] Error: ValidationException: The provided model identifier is invalid."},"error_type":"InvokeError","message":"[models] Error: ValidationException: The provided model identifier is invalid."} and... - no error with "Claude 4.0 Sonnet" <img width="782" height="291" alt="Image" src="https://github.com/user-attachments/assets/da167468-6a6c-498b-b078-bb6331ddf538" /> - no error with Bedrock Plugin 0.0.35 but same error with 0.0.36. ### ✔️ 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 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 valid inference_profile_id in 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:

  • Double-check that your model ID uses the correct prefix and format for your region and that Cross-Region Inference is only enabled if your AWS region supports it.
  • Make sure you provide a valid inference_profile_id in your model configuration.
  • If you need immediate functionality with Claude Opus 4.0/4.1, downgrading to Bedrock plugin 0.0.35 avoids the stricter validation and works with these models details.
  • The latest plugin versions include updated configuration requirements and stricter validation logic, so review your settings against the latest documentation and plugin config files PR reference.

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  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 24, 2025): <!-- Answer --> 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 valid `inference_profile_id` in 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](https://github.com/langgenius/dify-official-plugins/issues/1725). To resolve or work around this: - Double-check that your model ID uses the correct prefix and format for your region and that Cross-Region Inference is only enabled if your AWS region supports it. - Make sure you provide a valid `inference_profile_id` in your model configuration. - If you need immediate functionality with Claude Opus 4.0/4.1, downgrading to Bedrock plugin 0.0.35 avoids the stricter validation and works with these models [details](https://github.com/langgenius/dify-official-plugins/issues/1725). - The latest plugin versions include updated configuration requirements and stricter validation logic, so review your settings against the latest documentation and plugin config files [PR reference](https://github.com/langgenius/dify-official-plugins/pull/1371). 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. <!-- 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/c2d91925-beb9-4e24-be2c-f323cc3b42ea?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c2d91925-beb9-4e24-be2c-f323cc3b42ea?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c2d91925-beb9-4e24-be2c-f323cc3b42ea?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c2d91925-beb9-4e24-be2c-f323cc3b42ea?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c2d91925-beb9-4e24-be2c-f323cc3b42ea?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c2d91925-beb9-4e24-be2c-f323cc3b42ea?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c2d91925-beb9-4e24-be2c-f323cc3b42ea?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/1766)
Author
Owner

@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): 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?
Author
Owner

@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): 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.
Author
Owner

@nadazero commented on GitHub (Sep 27, 2025):

We hope DIFY could fix this issue ASAP.

@nadazero commented on GitHub (Sep 27, 2025): We hope DIFY could fix this issue ASAP.
Author
Owner

@nadazero commented on GitHub (Sep 27, 2025):

and the fix patch should be as following:

Image

@nadazero commented on GitHub (Sep 27, 2025): and the fix patch should be as following: ![Image](https://github.com/user-attachments/assets/cf9f8a62-3ad8-4375-a7a4-23c433067b15)
Author
Owner

@nadazero commented on GitHub (Sep 28, 2025):

@uenotakeshi1048 @claude @coldstone @wangjianming

@nadazero commented on GitHub (Sep 28, 2025): @uenotakeshi1048 @claude @coldstone @wangjianming
Author
Owner

@nadazero commented on GitHub (Sep 29, 2025):

How could I push this issue? Which people should I @ ?

@nadazero commented on GitHub (Sep 29, 2025): How could I push this issue? Which people should I @ ?
Author
Owner

@nadazero commented on GitHub (Oct 8, 2025):

@trend-jacky-su

@nadazero commented on GitHub (Oct 8, 2025): @trend-jacky-su
Author
Owner

@nadazero commented on GitHub (Oct 8, 2025):

@trend-jacky-su could you please have a look at this issue?

@nadazero commented on GitHub (Oct 8, 2025): @trend-jacky-su could you please have a look at this issue?
Author
Owner

@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 9, 2025): @crazywoola could you please have a look at this issue? or connenct @trend-jacky-su (code author) to confirm this issue again
Author
Owner

@nadazero commented on GitHub (Oct 10, 2025):

@ybalbert001 could you please have a look at this issue?

@nadazero commented on GitHub (Oct 10, 2025): @ybalbert001 could you please have a look at this issue?
Author
Owner

@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!

@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](https://github.com/langgenius/dify-official-plugins/pull/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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#672