wenxin(baidu) LLM plugin could not support web search funcition normally #641

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

Originally created by @nadazero on GitHub (Sep 11, 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.7.1

Plugin version

0.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

As we know, wenxin(baidu) LLM models ernie-4.5-turbo-128k and ernie-x1-turbo-32k support web search function,
but I found it could not perform web search function normally when I close "disable_search" switch.

In wenxin document, the web search param is as following:
client.chat.create(
model="ernie-4.5-turbo-128k",
messages=[{"role": "user", "content": "今天北京天气"}],
tools=[{"web_search": {"enable": True, "search_num": 10}}]
)
but in dify wenxin LLM plugin, the param is "disable_search", could it work normally?

✔️ Error log

No response

Originally created by @nadazero on GitHub (Sep 11, 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.7.1 ### Plugin version 0.1.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce As we know, wenxin(baidu) LLM models ernie-4.5-turbo-128k and ernie-x1-turbo-32k support web search function, but I found it could not perform web search function normally when I close "disable_search" switch. In wenxin document, the web search param is as following: client.chat.create( model="ernie-4.5-turbo-128k", messages=[{"role": "user", "content": "今天北京天气"}], tools=[{"web_search": {"enable": True, "search_num": 10}}] ) but in dify wenxin LLM plugin, the param is "disable_search", could it work normally? ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:20:01 -05:00
yindo closed this issue 2026-02-16 10:20:01 -05:00
Author
Owner

@nadazero commented on GitHub (Sep 11, 2025):

Image this picture is my setting

@nadazero commented on GitHub (Sep 11, 2025): ![Image](https://github.com/user-attachments/assets/82d5169e-519e-4974-9728-8aad678df3bf) this picture is my setting
Author
Owner

@dosubot[bot] commented on GitHub (Sep 12, 2025):

Your screenshot shows the "Disable Search" (禁用搜索) toggle for the Wenxin (Baidu) LLM plugin, but currently, this setting does not actually control the Wenxin API's web search functionality. The plugin defines the disable_search parameter in the UI and YAML config, but there is no code that maps this toggle to the Wenxin API's tools parameter with the required web_search settings. As a result, toggling this option has no effect on whether web search is enabled or disabled for Wenxin models in this plugin version. This is a logic gap in the plugin, not just a UI or documentation issue. To enable web search, the plugin would need to map the toggle to the correct Wenxin API parameter in the request payload. Until this is fixed, you may need to use the Wenxin API directly for web search features.
Reference: plugin config and code review

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 (Sep 12, 2025): <!-- Answer --> Your screenshot shows the "Disable Search" (禁用搜索) toggle for the Wenxin (Baidu) LLM plugin, but currently, this setting does not actually control the Wenxin API's web search functionality. The plugin defines the `disable_search` parameter in the UI and YAML config, but there is no code that maps this toggle to the Wenxin API's `tools` parameter with the required `web_search` settings. As a result, toggling this option has no effect on whether web search is enabled or disabled for Wenxin models in this plugin version. This is a logic gap in the plugin, not just a UI or documentation issue. To enable web search, the plugin would need to map the toggle to the correct Wenxin API parameter in the request payload. Until this is fixed, you may need to use the Wenxin API directly for web search features. [Reference: plugin config and code review](https://github.com/langgenius/dify-official-plugins/blob/527c7b3b06c0d27262914d5b1313e0daac3c3513/models/wenxin/models/llm/ernie-4.5-turbo-128k.yaml) <!-- 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/fdb0bce1-6891-425c-a996-f247a46e31d0?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/fdb0bce1-6891-425c-a996-f247a46e31d0?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/fdb0bce1-6891-425c-a996-f247a46e31d0?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/fdb0bce1-6891-425c-a996-f247a46e31d0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/fdb0bce1-6891-425c-a996-f247a46e31d0?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/fdb0bce1-6891-425c-a996-f247a46e31d0?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/fdb0bce1-6891-425c-a996-f247a46e31d0?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/1701)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#641