Invalid Model Identifier Error When Using Non-Cross-Region Model Names #764

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

Originally created by @chaosyaan on GitHub (Oct 30, 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.9.2

Plugin version

bedrock 0.0.44

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When attempting to use a model with a non-cross-region identifier (e.g., deepseek.v3-v1:0, penai.gpt-oss-120b-1:0), the system returns an error: "The provided model identifier is invalid."

Image Image

✔️ Error log

No response

Originally created by @chaosyaan on GitHub (Oct 30, 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.9.2 ### Plugin version bedrock 0.0.44 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When attempting to use a model with a non-cross-region identifier (e.g., deepseek.v3-v1:0, penai.gpt-oss-120b-1:0), the system returns an error: "The provided model identifier is invalid." <img width="416" height="421" alt="Image" src="https://github.com/user-attachments/assets/4e69ef89-095d-4917-a45b-3c0a1745e431" /> <img width="408" height="270" alt="Image" src="https://github.com/user-attachments/assets/0cf0bdde-8fec-497f-bdf6-77e809861854" /> ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:20:26 -05:00
yindo closed this issue 2026-02-16 10:20:26 -05:00
Author
Owner

@chaosyaan commented on GitHub (Oct 30, 2025):

https://github.com/langgenius/dify-official-plugins/pull/1969

@chaosyaan commented on GitHub (Oct 30, 2025): https://github.com/langgenius/dify-official-plugins/pull/1969
Author
Owner

@dosubot[bot] commented on GitHub (Oct 30, 2025):

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

PR #1969 directly fixes the "Invalid Model Identifier" error for non-cross-region models in the Bedrock plugin. The updated logic now only adds region prefixes to model IDs if the model actually supports cross-region inference. For models like DeepSeek and OpenAI OSS, which do not support this, the plugin avoids adding the prefix, preventing the invalid identifier error. This change is included in Bedrock plugin version 0.0.45 and should resolve the issue you described. You can find the relevant logic in the updated model ID handling code and the allowlist for cross-region support models here.

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 (Oct 30, 2025): <!-- Greeting --> Hi @chaosyaan! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> PR #1969 directly fixes the "Invalid Model Identifier" error for non-cross-region models in the Bedrock plugin. The updated logic now only adds region prefixes to model IDs if the model actually supports cross-region inference. For models like DeepSeek and OpenAI OSS, which do not support this, the plugin avoids adding the prefix, preventing the invalid identifier error. This change is included in Bedrock plugin version 0.0.45 and should resolve the issue you described. You can find the relevant logic in the updated model ID handling code and the allowlist for cross-region support models [here](https://github.com/langgenius/dify-official-plugins/blob/837104f5170b470e81c2d66262ddfe940ce0040d/models/bedrock/models/llm/model_ids.py). <!-- 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/31467de9-632b-42eb-baf6-760f52f34ba8?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/31467de9-632b-42eb-baf6-760f52f34ba8?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/31467de9-632b-42eb-baf6-760f52f34ba8?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/31467de9-632b-42eb-baf6-760f52f34ba8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/31467de9-632b-42eb-baf6-760f52f34ba8?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/31467de9-632b-42eb-baf6-760f52f34ba8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/31467de9-632b-42eb-baf6-760f52f34ba8?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/1970)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#764