I'm testing DeepSeek API responses that are expected to contain JSON, and I'm wondering what happens if the generation reaches its token limit before the object is complete. Does the response make the cutoff clear, or can a client receive something that looks like a finished but malformed value?
For anyone using JSON output from DeepSeek API, how do you detect this case reliably? I'm interested in the response status and usage details as well as what happens to the partial output.
Can you answer this question?
Write Answer0 Answers