When using moonshot, setting the value of response_format to json_object results in a call error. #9785
Closed
5 tasks done
Labels
🐞 bug
Something isn't working
Self Checks
Dify version
0.10.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When using moonshot, setting the value of response_format to json_object results in a call error.
The error message is:
"[moonshot] Error: API request failed with status code 400: {"error":{"message":"Invalid request: the
response_format
field in the request (expected type object) is illegal, and string is not acceptable","type":"invalid_request_error"}}"✔️ Expected Behavior
No error
❌ Actual Behavior
"[moonshot] Error: API request failed with status code 400: {"error":{"message":"Invalid request: the
response_format
field in the request (expected type object) is illegal, and string is not acceptable","type":"invalid_request_error"}}"The text was updated successfully, but these errors were encountered: