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
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.15.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
No response
❌ Actual Behavior
Run failed: [deepseek] Error: API request failed with status code 422: Failed to deserialize the JSON body into the target type: response_format.type: invalid type: map, expected variant identifier at line 1 column 132
The text was updated successfully, but these errors were encountered:
To resolve the "deepseek response format error" with status code 422, ensure that the response_format parameter is structured correctly. The response_format should be a dictionary with a 'type' key. Update your configuration to use the following structure:
{
"response_format": {"type": "json_object"} # or {"type": "text"}
}
This conversion is necessary for proper JSON deserialization when making API requests to the DeepSeek API. Make sure your model_parameters include the response_format in this format to avoid the deserialization error [1].
Self Checks
Dify version
0.15.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
No response
❌ Actual Behavior
Run failed: [deepseek] Error: API request failed with status code 422: Failed to deserialize the JSON body into the target type: response_format.type: invalid type: map, expected variant identifier at line 1 column 132
The text was updated successfully, but these errors were encountered: