You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error "tool_parameters should be a dict, but got a string" typically occurs when the tool_parameters are incorrectly handled or assigned as a string instead of a dictionary. In the Dify platform, the _generate_parameters method in the ToolNode class is responsible for generating a dictionary of parameters. If node_data.tool_parameters is set as a string, this error will occur because the code expects a dictionary format [1].
To resolve this issue, ensure that the tool_parameters are correctly formatted as a dictionary when integrating the glm4 model with the xinference provider. Check the part of your code where tool_parameters are being set or passed to ensure they are structured as a dictionary. This should help in aligning the parameter parsing with the expected format.
Self Checks
Dify version
0.10.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
get a normal response from agent
❌ Actual Behavior
got an error of "tool_parameters should be a dict, but got a string"
The text was updated successfully, but these errors were encountered: