Omgaan met problemen met het DeepSeek JSON-antwoordformaat

Wanneer DeepSeek wordt gebruikt, slaagt het voor de test in het configuratiemenu, maar de API retourneert een 400-fout met de inhoud {"error":{"message":"This response_format type is unavailable now","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}

Je hebt een model nodig dat gestructureerde uitvoer ondersteunt.

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 likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.