The enable_search parameter item for the Tongyi model is invalid #5708

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

Originally created by @BryceWG on GitHub (Sep 20, 2024).

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The enable_search parameter option in the parameter settings of the Tongyi model is invalid. This issue has been tested with multiple versions of the models.
Clip_2024-09-20_19-10-26
Clip_2024-09-20_19-10-19

✔️ Expected Behavior

Fix the enable_search parameter for Tongyi models

Actual Behavior

The Tongyi platform refused the request parameter

Originally created by @BryceWG on GitHub (Sep 20, 2024). ### 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.8.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce The enable_search parameter option in the parameter settings of the Tongyi model is invalid. This issue has been tested with multiple versions of the models. ![Clip_2024-09-20_19-10-26](https://github.com/user-attachments/assets/ae91bc0e-b385-4b3d-b335-6a09de68282d) ![Clip_2024-09-20_19-10-19](https://github.com/user-attachments/assets/76385134-c906-4e5e-be49-8f13369e02b1) ### ✔️ Expected Behavior Fix the enable_search parameter for Tongyi models ### ❌ Actual Behavior The Tongyi platform refused the request parameter
yindo added the 🐞 bug label 2026-02-21 18:12:16 -05:00
yindo closed this issue 2026-02-21 18:12:16 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 20, 2024):

To fix the enable_search parameter for Tongyi models when it is invalid and causes a "Server Unavailable Error" with status code 500, ensure that the parameter is correctly set as a boolean value. The enable_search parameter should be either true or false. For example:

{
  "enable_search": true
}

or

{
  "enable_search": false
}

If the parameter is set to any value other than a boolean, it may cause the server to return a 500 error [1].

Additionally, ensure that the specific version of the Tongyi model you are using supports the enable_search parameter. The qwen-max-0428 version supports this parameter, but there is no information about other versions that do not support it [2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 20, 2024): <!-- Answer --> To fix the `enable_search` parameter for Tongyi models when it is invalid and causes a "Server Unavailable Error" with status code 500, ensure that the parameter is correctly set as a boolean value. The `enable_search` parameter should be either `true` or `false`. For example: ```json { "enable_search": true } ``` or ```json { "enable_search": false } ``` If the parameter is set to any value other than a boolean, it may cause the server to return a 500 error <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/tongyi/llm/qwen-max-1201.yaml)</sup>. Additionally, ensure that the specific version of the Tongyi model you are using supports the `enable_search` parameter. The `qwen-max-0428` version supports this parameter, but there is no information about other versions that do not support it <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/tongyi/llm/qwen-max-0428.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@AAEE86 commented on GitHub (Sep 23, 2024):

This model does not enable search

@AAEE86 commented on GitHub (Sep 23, 2024): This model does not enable search
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5708