# Dealing with DeepSeek JSON Response Format Issues

**URL:** https://meta.discourse.org/t/dealing-with-deepseek-json-response-format-issues/384640
**Category:** Support
**Tags:** ai
**Created:** [October 3, 2025, 5:27am UTC](https://meta.discourse.org/t/dealing-with-deepseek-json-response-format-issues/384640 "2025-10-03T05:27:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MoRanYue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moranyue/32/523065_2.png) [@MoRanYue](https://meta.discourse.org/u/MoRanYue)
#### Post date: [October 3, 2025, 5:27am UTC](https://meta.discourse.org/t/dealing-with-deepseek-json-response-format-issues/384640/1 "2025-10-03T05:27:05Z")

</div>

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"}}`

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 3, 2025, 11:46am UTC](https://meta.discourse.org/t/dealing-with-deepseek-json-response-format-issues/384640/2 "2025-10-03T11:46:03Z")

</div>

You need a model that supports structured outputs.

---

<div class="post-metadata">

### Author: ![MoRanYue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moranyue/32/523065_2.png) [@MoRanYue](https://meta.discourse.org/u/MoRanYue)
#### Post date: [October 3, 2025, 12:28pm UTC](https://meta.discourse.org/t/dealing-with-deepseek-json-response-format-issues/384640/3 "2025-10-03T12:28:44Z")

</div>

It is compatible with OpenAI API, is this not enough? And, according to [the document](https://api-docs.deepseek.com/zh-cn/guides/json_mode/), 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.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 3, 2025, 1:51pm UTC](https://meta.discourse.org/t/dealing-with-deepseek-json-response-format-issues/384640/4 "2025-10-03T13:51:13Z")

</div>

> [@MoRanYue](#):
>
> It is compatible with OpenAI API, is this not enough? And, according to [the document](https://api-docs.deepseek.com/zh-cn/guides/json_mode/), it is confirmed that supports JSON object output. I never ever touched Ruby so I can’t know how Discourse treat `response_format` field.

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

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 2, 2025, 1:52pm UTC](https://meta.discourse.org/t/dealing-with-deepseek-json-response-format-issues/384640/5 "2025-11-02T13:52:06Z")

</div>

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