[Model Provider] Support both domestic and international site of Tongyi models #6345

Closed
opened 2026-02-21 18:15:19 -05:00 by yindo · 2 comments
Owner

Originally created by @native98Mu on GitHub (Oct 25, 2024).

Originally assigned to: @crazywoola on GitHub.

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 search for existing issues, 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

0.10.1

Cloud or Self Hosted

Cloud

Steps to reproduce

Alibaba Cloud Tongyi model has different API Base for domestic and international sites.
Currently, Dify does not provide URL configuration like OpenAI or Anthropic when configuring the Tongyi model provider.
iShot_2024-10-25_17 14 29

✔️ Expected Behavior

Dify could provide URL configuration like OpenAI or Anthropic when configuring the Tongyi model provider.
So Dify can support both domestic and international site of Tongyi models.

Actual Behavior

Users cannot call Tongyi on Dify using the API key of the international site

Originally created by @native98Mu on GitHub (Oct 25, 2024). Originally assigned to: @crazywoola on GitHub. ### 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 [search for existing issues](https://github.com/langgenius/dify/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 0.10.1 ### Cloud or Self Hosted Cloud ### Steps to reproduce Alibaba Cloud Tongyi model has different API Base for domestic and international sites. Currently, Dify does not provide URL configuration like OpenAI or Anthropic when configuring the Tongyi model provider. ![iShot_2024-10-25_17 14 29](https://github.com/user-attachments/assets/660c66bd-df2e-409a-ad5a-a2b48c51b56f) ### ✔️ Expected Behavior Dify could provide URL configuration like OpenAI or Anthropic when configuring the Tongyi model provider. So Dify can support both domestic and international site of Tongyi models. ### ❌ Actual Behavior Users cannot call Tongyi on Dify using the API key of the international site
yindo added the 💪 enhancement label 2026-02-21 18:15:19 -05:00
yindo closed this issue 2026-02-21 18:15:19 -05:00
Author
Owner

@crazywoola commented on GitHub (Oct 25, 2024):

You could add links according to en_US and zh_Hans

https://github.com/langgenius/dify/blob/5c76131d3dc1e4a5719cc828ba5a485e97024d90/api/core/model_runtime/model_providers/tongyi/tongyi.yaml#L16

Feel free to open a pull request for this :)

@crazywoola commented on GitHub (Oct 25, 2024): You could add links according to `en_US` and `zh_Hans` https://github.com/langgenius/dify/blob/5c76131d3dc1e4a5719cc828ba5a485e97024d90/api/core/model_runtime/model_providers/tongyi/tongyi.yaml#L16 Feel free to open a pull request for this :)
Author
Owner

@dosubot[bot] commented on GitHub (Nov 25, 2024):

Hi, @native98Mu. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • You reported a need for Dify to support different API base URLs for the Tongyi model provider.
  • This feature is necessary to accommodate both domestic and international sites of Alibaba Cloud's Tongyi models.
  • crazywoola suggested adding links based on language codes en_US and zh_Hans in the configuration file.
  • A pull request was encouraged to address this issue.

Next Steps

  • Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 25, 2024): Hi, @native98Mu. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary** - You reported a need for Dify to support different API base URLs for the Tongyi model provider. - This feature is necessary to accommodate both domestic and international sites of Alibaba Cloud's Tongyi models. - **crazywoola** suggested adding links based on language codes `en_US` and `zh_Hans` in the configuration file. - A pull request was encouraged to address this issue. **Next Steps** - Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here. - If there is no further activity, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6345