mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
"PluginInvokeError" on 4.0 Opus with bedrock plugin 0.0.36 #655
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 16, 2025).
Self Checks
Dify version
1.8.2
Plugin version
bedrock 0.0.36
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
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"}
@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.claudeprefix for Claude 4 series models (including Claude 4.0 Opus). The plugin now expects the model ID to start with a supported prefix likeglobal.anthropic.claude,us.anthropic.claude,eu.anthropic.claude,apac.anthropic.claude, oranthropic.claude. If your configuration or workflow still uses the olderanthropicprefix, 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 Opusand enable cross-region inference if your AWS region supports global routing. This should result in a model ID likeglobal.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

@nadazero commented on GitHub (Sep 17, 2025):
这种问题,就不能考虑插件版本做向前兼容么?每次都是出了问题过来查看然后回滚版本,搞的生产环境根本不敢随便升级。
dify的插件升级兼容性做的很差。
@uenotakeshi1048 commented on GitHub (Sep 22, 2025):
@dosu
Even with 0.0.37 I still get the same error.
cross-region inference is enabled.
@nadazero commented on GitHub (Sep 22, 2025):
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.
@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.
@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?
@uenotakeshi1048 commented on GitHub (Sep 24, 2025):
@nadazero
https://github.com/langgenius/dify-official-plugins/issues/1766