Solución de problemas con el formato de respuesta JSON de DeepSeek

When using DeepSeek, it passed the test in configuration menu, but the API returned 400 error with content {"error":{"message":"This response_format type is unavailable now","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}

You need a model that supports structured outputs.

It is compatible with OpenAI API, is this not enough? And, according to the document, it is confirmed that supports JSON object output. I never ever touched Ruby so I can’t know how Discourse treat response_format field.

Btw, I tried compatible Authropic API provided by DeepSeek, still unavailable.

That’s “JSON mode” which is a deprecated old version of structured outputs in the OpenAI API.

2 Me gusta