langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46k stars 6.48k forks source link

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

Open BryceWG opened 2 hours ago

BryceWG commented 2 hours ago

Self Checks

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

dosubot[bot] commented 2 hours ago

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.