mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
wenxin(baidu) LLM plugin could not support web search funcition normally #641
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nadazero on GitHub (Sep 11, 2025).
Self Checks
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
@nadazero commented on GitHub (Sep 11, 2025):
@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_searchparameter in the UI and YAML config, but there is no code that maps this toggle to the Wenxin API'stoolsparameter with the requiredweb_searchsettings. 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
