"PluginInvokeError" on 4.0 Opus with bedrock plugin 0.0.36 #655

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

Originally created by @uenotakeshi1048 on GitHub (Sep 16, 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.2

Plugin version

bedrock 0.0.36

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  • Select Bedrock Plugin 0.0.36
  • make simple workflow with "Claude 4.0 Opus"
Image Image
  • test input "こんにちは、テストさせてください"
  • error on LLM node

Furthermore, the error disappeared when I updated the plugin to 0.0.35.

✔️ Error log

[bedrock] Error: req_id: 2d542a82e4 PluginInvokeError: {"args":{"description":"[models] Error: Got unknown model prefix anthropic"},"error_type":"InvokeError","message":"[models] Error: Got unknown model prefix anthropic"}

Originally created by @uenotakeshi1048 on GitHub (Sep 16, 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.2 ### Plugin version bedrock 0.0.36 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce - Select Bedrock Plugin 0.0.36 - make simple workflow with "Claude 4.0 Opus" <img width="1010" height="160" alt="Image" src="https://github.com/user-attachments/assets/d3a2eec3-f2bf-46aa-82d4-c4c48b12897a" /> <img width="695" height="434" alt="Image" src="https://github.com/user-attachments/assets/9711a8e8-6ba6-463c-97de-12835aa13031" /> - test input "こんにちは、テストさせてください" - error on LLM node Furthermore, the error disappeared when I updated the plugin to 0.0.35. ### ✔️ Error log [bedrock] Error: req_id: 2d542a82e4 PluginInvokeError: {"args":{"description":"[models] Error: Got unknown model prefix anthropic"},"error_type":"InvokeError","message":"[models] Error: Got unknown model prefix anthropic"}
yindo added the bug label 2026-02-16 10:20:05 -05:00
yindo closed this issue 2026-02-16 10:20:05 -05:00
Author
Owner

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

Hi @uenotakeshi1048! I'm Dosu and I’m helping the dify-official-plugins team.

The error is caused by changes in bedrock plugin 0.0.36, which introduced support for AWS Bedrock's new global.anthropic.claude prefix for Claude 4 series models (including Claude 4.0 Opus). The plugin now expects the model ID to start with a supported prefix like global.anthropic.claude, us.anthropic.claude, eu.anthropic.claude, apac.anthropic.claude, or anthropic.claude. If your configuration or workflow still uses the older anthropic prefix, you'll get the "unknown model prefix anthropic" error [PR 1687].

To fix this in 0.0.36, make sure your model configuration uses the correct prefix and model name. For Claude 4.0 Opus, set the model name to Claude 4.0 Opus and enable cross-region inference if your AWS region supports global routing. This should result in a model ID like global.anthropic.claude-opus-4-20250514-v1:0, which the plugin recognizes [llm.py].

If you still encounter issues, double-check your plugin configuration for the model name and region settings, and ensure you are not using any deprecated prefixes. Downgrading to 0.0.35 works because it did not enforce the new prefix logic. If you need to stay on 0.0.36, updating your configuration as described should resolve the error.

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 16, 2025): <!-- Greeting --> Hi @uenotakeshi1048! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> The error is caused by changes in bedrock plugin 0.0.36, which introduced support for AWS Bedrock's new `global.anthropic.claude` prefix for Claude 4 series models (including Claude 4.0 Opus). The plugin now expects the model ID to start with a supported prefix like `global.anthropic.claude`, `us.anthropic.claude`, `eu.anthropic.claude`, `apac.anthropic.claude`, or `anthropic.claude`. If your configuration or workflow still uses the older `anthropic` prefix, you'll get the "unknown model prefix anthropic" error [[PR 1687](https://github.com/langgenius/dify-official-plugins/pull/1687)]. To fix this in 0.0.36, make sure your model configuration uses the correct prefix and model name. For Claude 4.0 Opus, set the model name to `Claude 4.0 Opus` and enable cross-region inference if your AWS region supports global routing. This should result in a model ID like `global.anthropic.claude-opus-4-20250514-v1:0`, which the plugin recognizes [[llm.py](https://github.com/langgenius/dify-official-plugins/blob/0265e1bfc09cc67aa24f12a7848c8b4661cdd2e7/models/bedrock/models/llm/llm.py)]. If you still encounter issues, double-check your plugin configuration for the model name and region settings, and ensure you are not using any deprecated prefixes. Downgrading to 0.0.35 works because it did not enforce the new prefix logic. If you need to stay on 0.0.36, updating your configuration as described should resolve the error. <!-- 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/b0ac65b8-36d2-490f-9c70-497f4ebeb375?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b0ac65b8-36d2-490f-9c70-497f4ebeb375?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b0ac65b8-36d2-490f-9c70-497f4ebeb375?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b0ac65b8-36d2-490f-9c70-497f4ebeb375?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b0ac65b8-36d2-490f-9c70-497f4ebeb375?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b0ac65b8-36d2-490f-9c70-497f4ebeb375?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b0ac65b8-36d2-490f-9c70-497f4ebeb375?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/1725)
Author
Owner

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

这种问题,就不能考虑插件版本做向前兼容么?每次都是出了问题过来查看然后回滚版本,搞的生产环境根本不敢随便升级。
dify的插件升级兼容性做的很差。

@nadazero commented on GitHub (Sep 17, 2025): 这种问题,就不能考虑插件版本做向前兼容么?每次都是出了问题过来查看然后回滚版本,搞的生产环境根本不敢随便升级。 dify的插件升级兼容性做的很差。
Author
Owner

@uenotakeshi1048 commented on GitHub (Sep 22, 2025):

@dosu

Even with 0.0.37 I still get the same error.

Image Image

cross-region inference is enabled.

@uenotakeshi1048 commented on GitHub (Sep 22, 2025): @dosu Even with 0.0.37 I still get the same error. <img width="411" height="189" alt="Image" src="https://github.com/user-attachments/assets/b5c958c9-f447-438f-877d-8f3f324bae1e" /> <img width="1182" height="532" alt="Image" src="https://github.com/user-attachments/assets/b8c8ee7a-1ad3-4f75-bb29-9fdb49290263" /> cross-region inference is enabled.
Author
Owner

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

Even with 0.0.37 I still get the same error.

Image Image
cross-region inference is enabled.

To uenotakeshi-san:
I meet the same issue, I was confused my 4.0 Opus moded id is valid as following.
Claude Opus 4:anthropic.claude-opus-4-20250514-v1:0
Claude Sonnet 4:anthropic.claude-sonnet-4-20250514-v1:0

coud you share your 4.0 Opus moded id? is it the same? I dont know why in 0.0.36 version, sonnet 4 works ok but opus 4 works ng.

@nadazero commented on GitHub (Sep 22, 2025): > Even with 0.0.37 I still get the same error. > > <img alt="Image" width="411" height="189" src="https://private-user-images.githubusercontent.com/101247893/492362009-b5c958c9-f447-438f-877d-8f3f324bae1e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTg1OTc0MzcsIm5iZiI6MTc1ODU5NzEzNywicGF0aCI6Ii8xMDEyNDc4OTMvNDkyMzYyMDA5LWI1Yzk1OGM5LWY0NDctNDM4Zi04NzdkLThmM2YzMjRiYWUxZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwOTIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDkyM1QwMzEyMTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mYzViMDIyMDFlYmNmNTgxYmJjOGEwNDcyZDAxYjUxNDc1Nzc1MGE1NzQ3YzI4MWJmZDhlZjk4YjBmYjNmY2MxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Nrs11YbdVOrvWhJhUWbiyMss3k-gGN9kbWkrejGdtyg"> <img alt="Image" width="1182" height="532" src="https://private-user-images.githubusercontent.com/101247893/492361098-b8c8ee7a-1ad3-4f75-bb29-9fdb49290263.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTg1OTc0MzcsIm5iZiI6MTc1ODU5NzEzNywicGF0aCI6Ii8xMDEyNDc4OTMvNDkyMzYxMDk4LWI4YzhlZTdhLTFhZDMtNGY3NS1iYjI5LTlmZGI0OTI5MDI2My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwOTIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDkyM1QwMzEyMTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kOGEyOWYwMzU2YWZjZmRiODNiMjUxYzQwNzVkZGI2NzdiMWQzODBkYjhkYTRjNjI4ZTlmNjM1YmIzYWRiYjU5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.0y7wZa4TN8h46NroeYVhKlH3OfohclupYb9VIdR5Gms"> > cross-region inference is enabled. To uenotakeshi-san: I meet the same issue, I was confused my 4.0 Opus moded id is valid as following. Claude Opus 4:anthropic.claude-opus-4-20250514-v1:0 Claude Sonnet 4:anthropic.claude-sonnet-4-20250514-v1:0 coud you share your 4.0 Opus moded id? is it the same? I dont know why in 0.0.36 version, sonnet 4 works ok but opus 4 works ng.
Author
Owner

@uenotakeshi1048 commented on GitHub (Sep 24, 2025):

@nadazero
on 0.0.37 , sonnet 4 (model id: anthropic.claude-sonnet-4-20250514-v1:0 ) is no error,
but, Opus 4.0 (model id:anthropic.claude-opus-4-20250514-v1:0) and Opus 4.1 (anthropic.claude-opus-4-1-20250805-v1:0) is error.

[bedrock] Error: req_id: ad0f4c2989 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."}

@uenotakeshi1048 commented on GitHub (Sep 24, 2025): @nadazero on 0.0.37 , sonnet 4 (model id: anthropic.claude-sonnet-4-20250514-v1:0 ) is no error, but, Opus 4.0 (model id:anthropic.claude-opus-4-20250514-v1:0) and Opus 4.1 (anthropic.claude-opus-4-1-20250805-v1:0) is error. > [bedrock] Error: req_id: ad0f4c2989 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."}
Author
Owner

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

Sigh...... There is currently no official explanation for the specific differences in model IDs that led to this issue.
Is there still a living person involved?

@nadazero commented on GitHub (Sep 24, 2025): Sigh...... There is currently no official explanation for the specific differences in model IDs that led to this issue. Is there still a living person involved?
Author
Owner

@uenotakeshi1048 commented on GitHub (Sep 24, 2025):

@nadazero
https://github.com/langgenius/dify-official-plugins/issues/1766

@uenotakeshi1048 commented on GitHub (Sep 24, 2025): @nadazero https://github.com/langgenius/dify-official-plugins/issues/1766
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#655