Error with multi-agent
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.0.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When using multi-agent, if the agent's model is configured as qwen-max or deepseek-chat, an error will be reported. Only if it is set to kimi is correct. The configuration is as shown in the figure:
The error is as follows:
Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [deepseek] Error: PluginInvokeError: {\"args\":{\"description\":\"[models] Error: API request failed with status code 400: {\\\"error\\\":{\\\"message\\\":\\\"Invalid schema for function 'contractManage_test_wf': \\\\\\\"select\\\\\\\" is not valid under any of the schemas listed in the 'anyOf' keyword\\\",\\\"type\\\":\\\"invalid_request_error\\\",\\\"param\\\":null,\\\"code\\\":\\\"invalid_request_error\\\"}}\"},\"error_type\":\"InvokeError\",\"message\":\"[models] Error: API request failed with status code 400: {\\\"error\\\":{\\\"message\\\":\\\"Invalid schema for function 'contractManage_test_wf': \\\\\\\"select\\\\\\\" is not valid under any of the schemas listed in the 'anyOf' keyword\\\",\\\"type\\\":\\\"invalid_request_error\\\",\\\"param\\\":null,\\\"code\\\":\\\"invalid_request_error\\\"}}\"}"}
or
Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [tongyi] Error: PluginInvokeError: {\"args\":{},\"error_type\":\"KeyError\",\"message\":\"'name'\"}"}
✔️ Expected Behavior
no error
❌ Actual Behavior
Wrong report.
A similar closed issue was found, but no solution was provided in the comments [1].
The error you're encountering, PluginInvokeError, with a status code 400, suggests that there is an issue with the schema validation for the function contractManage_test_wf in the deepseek-chat model. The error message indicates that the "select" option is not valid under any of the schemas listed in the 'anyOf' keyword.
Common causes for a status code 400 error in Dify's multi-agent setup include:
- InvalidParamError: Ensure that all parameters are correctly formatted and valid.
- ProviderNotInitializeError: Verify that you have valid model provider credentials.
- ProviderModelCurrentlyNotSupportError: Check if the model you are using is supported.
- CompletionRequestError: Review the request parameters and model configuration for text generation [2][3][4][5].
To resolve this, you may need to review the schema requirements for the contractManage_test_wf function and ensure that the configuration aligns with the expected schema. Unfortunately, specific schema requirements for this function were not found in the available data.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other