"The provided model identifier is invalid" when using Amazon Bedrock's Claude 4.5 Haiku model #791

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

Originally created by @jip-taku on GitHub (Nov 9, 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

Dify Enterprise 3.5.2

Plugin version

0.0.47

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Describe the issue
I am encountering a ValidationException: The provided model identifier is invalid error when attempting to use the Amazon Bedrock Claude 4.5 Haiku model within Dify Enterpirse.The issue persists across plugin versions 0.0.45, 0.0.46, and 0.0.47.

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

✔️ Error log

No response

Originally created by @jip-taku on GitHub (Nov 9, 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 Dify Enterprise 3.5.2 ### Plugin version 0.0.47 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce **Describe the issue** I am encountering a `ValidationException: The provided model identifier is invalid` error when attempting to use the Amazon Bedrock Claude 4.5 Haiku model within Dify Enterpirse.The issue persists across plugin versions 0.0.45, 0.0.46, and 0.0.47. **Error Message** [bedrock] Error: req_id: 91d812bd08 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."} ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:20:30 -05:00
yindo closed this issue 2026-02-16 10:20:31 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 9, 2025):

The correct model identifier for Amazon Bedrock's Claude 4.5 Haiku in the Dify plugin is anthropic.claude-haiku-4-5-20251001-v1:0 (source). This identifier was added in plugin version 0.0.43 and later, and is mapped in the plugin's configuration files. Make sure your configuration uses this exact identifier and that your plugin version is at least 0.0.43 (source). If you are still seeing the error on version 0.0.47, double-check that your model selection in the Dify UI or config matches the name "Claude 4.5 Haiku" exactly, as any typo or mismatch will cause a validation error.

If you are using the correct identifier and still get the error, verify that your AWS account has access to this model in the selected region, as Bedrock will also return this error if the model is not enabled for your account.

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 (Nov 9, 2025): <!-- Answer --> The correct model identifier for Amazon Bedrock's Claude 4.5 Haiku in the Dify plugin is `anthropic.claude-haiku-4-5-20251001-v1:0` ([source](https://github.com/langgenius/dify-official-plugins/blob/285d6345b3e753564c1e2274414b0458e061337f/models/bedrock/models/llm/model_ids.py#L9-L94)). This identifier was added in plugin version 0.0.43 and later, and is mapped in the plugin's configuration files. Make sure your configuration uses this exact identifier and that your plugin version is at least 0.0.43 ([source](https://github.com/langgenius/dify-official-plugins/pull/1906)). If you are still seeing the error on version 0.0.47, double-check that your model selection in the Dify UI or config matches the name "Claude 4.5 Haiku" exactly, as any typo or mismatch will cause a validation error. If you are using the correct identifier and still get the error, verify that your AWS account has access to this model in the selected region, as Bedrock will also return this error if the model is not enabled for your account. <!-- 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/d8143673-725b-4c71-8057-c21fa9ff943d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d8143673-725b-4c71-8057-c21fa9ff943d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d8143673-725b-4c71-8057-c21fa9ff943d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d8143673-725b-4c71-8057-c21fa9ff943d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d8143673-725b-4c71-8057-c21fa9ff943d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d8143673-725b-4c71-8057-c21fa9ff943d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d8143673-725b-4c71-8057-c21fa9ff943d?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/2025)
Author
Owner

@jip-taku commented on GitHub (Nov 9, 2025):

@dosu
I’ve double-checked the settings on my side:

In the Dify UI, the selected model is definitely Claude 4.5 Haiku — there are no typos or mismatches in the model name.

I also confirmed on the Amazon side that Claude 4.5 Haiku is available in the region I am using, so access/permission should not be the issue.

I’m currently running Dify Enterprise 3.5.2 (which corresponds to 1.8.2 for the open-source version).
Could this version difference be related to the error?

@jip-taku commented on GitHub (Nov 9, 2025): @dosu I’ve double-checked the settings on my side: In the Dify UI, the selected model is definitely Claude 4.5 Haiku — there are no typos or mismatches in the model name. I also confirmed on the Amazon side that Claude 4.5 Haiku is available in the region I am using, so access/permission should not be the issue. I’m currently running Dify Enterprise 3.5.2 (which corresponds to 1.8.2 for the open-source version). Could this version difference be related to the error?
Author
Owner

@dosubot[bot] commented on GitHub (Nov 9, 2025):

It's possible that the version difference is contributing to the error, but not because of a direct incompatibility between Dify Enterprise 3.5.2 (open-source 1.8.2) and plugin 0.0.47. Instead, recent changes in both the plugin and Dify core have made model identifier validation stricter and introduced new requirements for region-aware model IDs and credential linkage. If your database or provider/model configuration wasn't fully migrated or synced during upgrades, you might see models in the UI but get runtime identifier errors example.

Common causes include: mismatches between the plugin's expected model mapping and the Dify core's database state, missing or improperly linked credentials, or outdated provider/model records. Manual migration steps may be needed in self-hosted/offline setups to ensure all provider, model, and credential records are correctly linked details.

There is no official documentation stating that Dify 3.5.2/1.8.2 is incompatible with plugin 0.0.47, but several threads show that stricter validation logic in newer plugin versions can expose migration or configuration issues that weren't apparent before reference.

If you have already confirmed the model ID and AWS access, I recommend double-checking your provider/model/credential linkage in the database, especially if you upgraded or migrated manually. If you need step-by-step guidance for checking or fixing this, let me know your deployment details and I can help with SQL or migration commands.

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 (Nov 9, 2025): <!-- Answer --> It's possible that the version difference is contributing to the error, but not because of a direct incompatibility between Dify Enterprise 3.5.2 (open-source 1.8.2) and plugin 0.0.47. Instead, recent changes in both the plugin and Dify core have made model identifier validation stricter and introduced new requirements for region-aware model IDs and credential linkage. If your database or provider/model configuration wasn't fully migrated or synced during upgrades, you might see models in the UI but get runtime identifier errors [example](https://github.com/langgenius/dify-official-plugins/issues/1629). Common causes include: mismatches between the plugin's expected model mapping and the Dify core's database state, missing or improperly linked credentials, or outdated provider/model records. Manual migration steps may be needed in self-hosted/offline setups to ensure all provider, model, and credential records are correctly linked [details](https://github.com/langgenius/dify-official-plugins/issues/1629). There is no official documentation stating that Dify 3.5.2/1.8.2 is incompatible with plugin 0.0.47, but several threads show that stricter validation logic in newer plugin versions can expose migration or configuration issues that weren't apparent before [reference](https://github.com/langgenius/dify-official-plugins/issues/1766). If you have already confirmed the model ID and AWS access, I recommend double-checking your provider/model/credential linkage in the database, especially if you upgraded or migrated manually. If you need step-by-step guidance for checking or fixing this, let me know your deployment details and I can help with SQL or migration commands. <!-- 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/31d17918-100d-49b7-b623-19b2982fa002?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/31d17918-100d-49b7-b623-19b2982fa002?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/31d17918-100d-49b7-b623-19b2982fa002?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/31d17918-100d-49b7-b623-19b2982fa002?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/31d17918-100d-49b7-b623-19b2982fa002?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/31d17918-100d-49b7-b623-19b2982fa002?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/31d17918-100d-49b7-b623-19b2982fa002?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/2025)
Author
Owner

@jip-taku commented on GitHub (Nov 9, 2025):

@dosu
Just an additional update:
I also tested the same setup on the SaaS version of Dify (1.9.2), and the exact same error still occurs.
So it doesn’t seem to be limited to the Enterprise 3.5.2 environment.

@jip-taku commented on GitHub (Nov 9, 2025): @dosu Just an additional update: I also tested the same setup on the SaaS version of Dify (1.9.2), and the exact same error still occurs. So it doesn’t seem to be limited to the Enterprise 3.5.2 environment.
Author
Owner

@dosubot[bot] commented on GitHub (Nov 9, 2025):

Thanks for the update—since the same "invalid model identifier" error happens on both SaaS and Enterprise, this rules out local config or migration issues and points to a broader problem with plugin logic, model mapping, or a recent change on the AWS Bedrock side.

The plugin is using the correct model ID for Claude 4.5 Haiku (anthropic.claude-haiku-4-5-20251001-v1:0) and the region prefix logic matches the current codebase. The error typically means the constructed model ID (with or without a region/global prefix) doesn't match what AWS Bedrock expects or exposes in your account/region, even if the model appears available in the AWS console. This can happen if AWS changes model ID formats, region support, or cross-region inference rules, and the plugin's allowlist or logic hasn't caught up yet citation.

Given that this is affecting both Dify SaaS and self-hosted, it's likely a plugin-side compatibility issue or a recent AWS-side change not yet reflected in the plugin. If you haven't already, try toggling the "cross-region" setting for the model (on/off) and test again—some Claude models only support the global prefix, others require a regional prefix, and AWS has changed this behavior before citation.

If that doesn't resolve it, this is likely a case where the plugin needs an update to its region/model mapping logic or AWS has made a change that hasn't been documented yet. Monitoring plugin updates or AWS Bedrock release notes for changes to Claude 4.5 Haiku support is the best next step.

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 (Nov 9, 2025): <!-- Answer --> Thanks for the update—since the same "invalid model identifier" error happens on both SaaS and Enterprise, this rules out local config or migration issues and points to a broader problem with plugin logic, model mapping, or a recent change on the AWS Bedrock side. The plugin is using the correct model ID for Claude 4.5 Haiku (`anthropic.claude-haiku-4-5-20251001-v1:0`) and the region prefix logic matches the current codebase. The error typically means the constructed model ID (with or without a region/global prefix) doesn't match what AWS Bedrock expects or exposes in your account/region, even if the model appears available in the AWS console. This can happen if AWS changes model ID formats, region support, or cross-region inference rules, and the plugin's allowlist or logic hasn't caught up yet [citation](https://github.com/langgenius/dify-official-plugins/blob/4ca87bf704e3b033f97b31887d44084cad594156/models/bedrock/models/llm/model_ids.py#L10-L121). Given that this is affecting both Dify SaaS and self-hosted, it's likely a plugin-side compatibility issue or a recent AWS-side change not yet reflected in the plugin. If you haven't already, try toggling the "cross-region" setting for the model (on/off) and test again—some Claude models only support the global prefix, others require a regional prefix, and AWS has changed this behavior before [citation](https://github.com/langgenius/dify-official-plugins/issues/1766). If that doesn't resolve it, this is likely a case where the plugin needs an update to its region/model mapping logic or AWS has made a change that hasn't been documented yet. Monitoring plugin updates or AWS Bedrock release notes for changes to Claude 4.5 Haiku support is the best next step. <!-- 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/b4baaeb5-f6f7-401a-a36c-51f80f4bd6db?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b4baaeb5-f6f7-401a-a36c-51f80f4bd6db?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b4baaeb5-f6f7-401a-a36c-51f80f4bd6db?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b4baaeb5-f6f7-401a-a36c-51f80f4bd6db?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b4baaeb5-f6f7-401a-a36c-51f80f4bd6db?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b4baaeb5-f6f7-401a-a36c-51f80f4bd6db?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b4baaeb5-f6f7-401a-a36c-51f80f4bd6db?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/2025)
Author
Owner

@inaravae commented on GitHub (Nov 14, 2025):

@dosu
I am facing the exact same problem.
The problem only occurs when using Bedrock Claude 4.5 Haiku and 3.5 Haiku. No errors occur with 4.5 Sonnet or 3 Haiku.
Dify is v1.10.0-rc1, and the Bedrock plugin is v0.0.50. I changed the "Use Cross-Region Inference" setting, but it did not improve the situation at all.

@inaravae commented on GitHub (Nov 14, 2025): @dosu I am facing the exact same problem. The problem only occurs when using Bedrock Claude 4.5 Haiku and 3.5 Haiku. No errors occur with 4.5 Sonnet or 3 Haiku. Dify is v1.10.0-rc1, and the Bedrock plugin is v0.0.50. I changed the "Use Cross-Region Inference" setting, but it did not improve the situation at all.
Author
Owner

@jip-taku commented on GitHub (Nov 26, 2025):

Plugin version 0.0.51
the bug is still not fixed.

@jip-taku commented on GitHub (Nov 26, 2025): Plugin version 0.0.51 the bug is still not fixed.
Author
Owner

@jip-taku commented on GitHub (Nov 27, 2025):

It turns out that for Claude Haiku 4.5 in the Tokyo region (ap-northeast-1), AWS requires a specific jp prefix for the inference profile, rather than the standard apac prefix that the plugin currently assigns.

@jip-taku commented on GitHub (Nov 27, 2025): It turns out that for Claude Haiku 4.5 in the Tokyo region (ap-northeast-1), AWS requires a specific jp prefix for the inference profile, rather than the standard apac prefix that the plugin currently assigns.
Author
Owner

@jip-taku commented on GitHub (Dec 5, 2025):

With Bedrock plugin version 0.0.54, the Claude Haiku 4.5 model works in Cross-Region Inference’s global mode.

@jip-taku commented on GitHub (Dec 5, 2025): With Bedrock plugin version 0.0.54, the Claude Haiku 4.5 model works in Cross-Region Inference’s global mode.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#791