Please add support for tongyi-farui #5015

Closed
opened 2026-02-21 18:09:01 -05:00 by yindo · 1 comment
Owner

Originally created by @oiuv on GitHub (Aug 13, 2024).

Originally assigned to: @oiuv on GitHub.

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I need tongyi-farui,please add this model support,thanks。

2. Additional context or comments

https://help.aliyun.com/zh/model-studio/developer-reference/tongyi-farui-quick-start?spm=a2c4g.11186623.0.0.7e375b14PSLQ9X

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @oiuv on GitHub (Aug 13, 2024). Originally assigned to: @oiuv on GitHub. ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I need tongyi-farui,please add this model support,thanks。 ### 2. Additional context or comments https://help.aliyun.com/zh/model-studio/developer-reference/tongyi-farui-quick-start?spm=a2c4g.11186623.0.0.7e375b14PSLQ9X ### 3. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:09:01 -05:00
yindo closed this issue 2026-02-21 18:09:01 -05:00
Author
Owner

@oiuv commented on GitHub (Aug 15, 2024):

sorry,error when use farui-plus:Not support model: farui-plus, currently only support qwen models.

6ecd4d6ec6e5ddf0e233794f1c9e3179

    if model in QWEN_SERIALS:
        return QwenTokenizer(
            os.path.join(root_path, 'resources', 'qwen.tiktoken'))
    elif model.startswith('qwen'):
        return QwenTokenizer(
            os.path.join(root_path, 'resources', 'qwen.tiktoken'))
    else:
        raise UnsupportedModel(
            f'Not support model: {model}, currently only support qwen models.')
@oiuv commented on GitHub (Aug 15, 2024): sorry,error when use farui-plus:Not support model: farui-plus, currently only support qwen models. ![6ecd4d6ec6e5ddf0e233794f1c9e3179](https://github.com/user-attachments/assets/ea38bfe4-d01a-4b62-ba78-0ff89a859fc1) ``` if model in QWEN_SERIALS: return QwenTokenizer( os.path.join(root_path, 'resources', 'qwen.tiktoken')) elif model.startswith('qwen'): return QwenTokenizer( os.path.join(root_path, 'resources', 'qwen.tiktoken')) else: raise UnsupportedModel( f'Not support model: {model}, currently only support qwen models.') ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5015