JSON Output Mode in DeepSeek can only be used with specific models that support it. Currently, the models that support JSON mode include:
- DeepSeek Models: The `deepseek-chat` model is explicitly mentioned as supporting JSON output[1][2].
Other models from OpenAI and Together also support JSON mode, but they are not part of the DeepSeek lineup. If you attempt to use JSON mode with a model that does not support it, the system may not provide valid JSON responses, even if you request it in your prompts[1][3].
To activate JSON mode, users must select a compatible model and toggle the JSON mode option in the Pipe IDE. Additionally, providing a schema in the prompt can help ensure the output conforms to expected formats[1][2].
Citations:[1] https://langbase.com/docs/features/json-mode
[2] https://relevanceai.com/llm-models/explore-deepseek-v25-for-better-data-insights
[3] https://deepinfra.com/docs/advanced/json_mode
[4] https://github.com/continuedev/continue/issues/3742
[5] https://github.com/TrustSight-io/deepseek-go/issues/2
[6] https://huggingface.co/deepseek-ai/DeepSeek-Coder-V2-Instruct-0724
[7] https://api-docs.deepseek.com/guides/json_mode
[8] https://huggingface.co/deepseek-ai/DeepSeek-V2.5