mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
PluginInvokeError when transforming agent message: "read llm model failed" with Tongyi model #362
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 @zclcz on GitHub (Jun 12, 2025).
Self Checks
Dify version
1.4.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
run failed: Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [tongyi] Error: PluginInvokeError: {"args":{"description":"[models] Error: 'description'"},"error_type":"InvokeError","message":"[models] Error: 'description'"}"}
Additional issue: In the model vendor list, DeepSeek's models can be seen, but they are not visible in the agent plugin. Could this be due to the fact that the model plugins in these two places are not the same?
agent with mcp:
In the model vendor list, DeepSeek's models can be seen:
model plugin in agent: but they are not visible in the agent plugin
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Jun 12, 2025):
Your PluginInvokeError with the Tongyi model in Docker is likely due to network or configuration issues. Make sure you are not using
localhostor127.0.0.1for service endpoints inside Docker—use your host’s internal IP orhttp://host.docker.internalinstead. Double-check thatPLUGIN_DAEMON_URLis set correctly (e.g.,http://host.docker.internal:5002), and thatSANDBOX_ENABLE_NETWORK=trueis set in your environment. Also, confirm your Tongyi DashScope API key is present in your environment variables and that the Tongyi plugin is properly installed and models are listed in the Dify admin interface. If the plugin is outdated, upgrade it, as older versions may not support new models or have registration bugs. Sometimes, models need to be added manually or you may need to wait for a plugin update to get new models built-in [source].For the DeepSeek visibility issue: DeepSeek is a built-in (static) provider, not a plugin-based provider. The agent plugin infrastructure only exposes plugin-based models/strategies, so DeepSeek appears in the vendor list but not in the agent plugin selection. Only models that support tool-calling (function call or ReACT) are visible in the Agent node. If you have unconfigured model plugins, removing or disabling them may help with incomplete listings [source].
If you continue to see validation errors, ensure your model configuration matches the expected schema and that the model parameter is correctly defined in your workflow. Switching to a different model (like DeepSeek) has resolved similar errors for other users [source].
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@zclcz commented on GitHub (Jun 12, 2025):
I can use Qwen3 normally in other workflows, but it doesn't work here. I've ruled out network and configuration issues, so the problem likely lies within the agent node. Could you please check if this version has this issue? Thank you.
@dosubot[bot] commented on GitHub (Jun 12, 2025):
Based on everything I found, there’s no evidence of a general bug in Dify 1.4.1 that prevents Qwen3 from working in the agent node, but there are a few known causes for similar PluginInvokeError issues:
If you’ve confirmed your plugin version and configuration are correct, and Qwen3 still works in other nodes but not the agent node, try updating the Tongyi plugin, removing any unconfigured plugins, and ensuring your workflow’s model config is complete. If the issue persists, it may be a plugin compatibility edge case, but there’s no general blocker in 1.4.1 for Qwen3 agent node use [source].
Let me know if you want more details on any of these checks!
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@zclcz commented on GitHub (Jun 12, 2025):
My Tongyi plugin is only 0.1 version behind — it's almost up to date. Moreover, this isn't just an issue with selecting the Qwen3 model; the same error occurs when selecting any model. Therefore, the problem is definitely with the "agent" node.
@liaofuyan commented on GitHub (Jun 14, 2025):
碰到同样的问题
@wanghan5 commented on GitHub (Jun 16, 2025):
I meet the same problem here when I'm trying to interact with MCP server.
Important clue: mcp works well in ReAct mode, but in functioncalling mode, the log in plugin-daemon pod shows that dify got the tools list and then failed in the next step.
@junjiem commented on GitHub (Jun 16, 2025):
see https://github.com/junjiem/dify-plugin-agent-mcp_sse/pull/89
@wanghan5 commented on GitHub (Jun 16, 2025):
I think I have found the cause: the official tongyi plugin is not compatible with MCP, it will try to get description field in each properties . @junjiem @liaofuyan @zclcz
It works well when using openai-api plugin
@zclcz commented on GitHub (Jun 17, 2025):
However, the Qwen model from the Tongyi provider works normally when using MCP in the 'Agent' feature.

@wanghan5 commented on GitHub (Jun 17, 2025):
In "Agent", MCP Server is wrapped as a tool. It is not directly connectted to Agent
@dosubot[bot] commented on GitHub (Aug 21, 2025):
Hi, @zclcz. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!