mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
xAI Grok Plugin: Web Search Fails due to Deprecated API #949
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 @cgi-library on GitHub (Jan 26, 2026).
Self Checks
Dify version
1.11.4
Plugin version
0.0.15
Cloud or Self Hosted
Self Hosted (Docker), Cloud
Steps to reproduce
Set up a basic configuration with Start, LLM, and Answer only.
Open Grok's model settings and enable “Live Search Parameters”.
When you ask any random question, the following error message appears.
✔️ Error log
Run failed: req_id: xxxx PluginInvokeError: {"args":{"description":"[models] Error: API request failed with status code 410: {\"error\":\"Live search is deprecated. Please switch to the Agent Tools API: https://docs.x.ai/docs/guides/tools/overview\"}"},"error_type":"InvokeError","message":"[models] Error: API request failed with status code 410: {\"error\":\"Live search is deprecated. Please switch to the Agent Tools API: https://docs.x.ai/docs/guides/tools/overview\"}"}@dosubot[bot] commented on GitHub (Jan 26, 2026):
Hi @cgi-library! I'm Dosu and I’m helping the dify-official-plugins team.
The Grok Plugin web search fails because it still tries to use the deprecated live search API, which now returns a 410 error. The recommended fix is to update the plugin to use the Agent Tools API instead, as described in the official documentation: x.ai Agent Tools API guide.
Currently, there is no Grok Plugin implementation or migration to the Agent Tools API in the dify-official-plugins repository, so there’s no code to patch yet. If you plan to implement or update the plugin, you’ll need to switch from the old API to the Agent Tools API, which may involve updating authentication, endpoints, and request parameters. For example, Dify’s migration guide suggests replacing
"functions"with"tools"and"function_call"with"tool_choice"in your payloads, which is conceptually similar to what you’ll need for the new API (see example).Keep an eye on the repository for future updates, or consider contributing a new plugin implementation based on the Agent Tools API if you need a solution right away.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@hlog2e commented on GitHub (Jan 27, 2026):
This seems to be related to this issue. https://github.com/langchain-ai/langchain/issues/33961
@cgi-library commented on GitHub (Jan 27, 2026):
I suspect that the commit
f7ee2a7, which addsearch_parametersfor Live Search, may be related.@crazywoola commented on GitHub (Feb 3, 2026):
Hi @cgi-library, thanks for opening this issue.
Why this is being closed
Dify issue tracking requires English-only issue title and description for consistent collaboration.
Next steps
Please open a new issue in English and include clear details so maintainers can help efficiently.
Thanks for understanding and for your support.