Structured output via sglang not working with DeepSeek-V3.1 #10164
Unanswered
yuyue0225sc
asked this question in
Q&A
Replies: 2 comments
-
|
Seems to be the case with other models as well, 3.1 terminus as you might expect, but also GLM-4.5, GLM-4.6, etc. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
chutesai#3 fixed it for us (chutes) on deepseek 3.1, 3.1-terminus |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I ran into a strange issue when using sglang with different models.
When I start a DeepSeek-V3.1 service using sglang and make the following request:
The output does not match the expected structured JSON format shown in the official example:

However, if I use the same code with a Qwen3-8B service:
The output matches the expected structured JSON format:
So my question is:
Why does the official sglang structured output example work with Qwen3-8B model services but not with DeepSeek-V3.1 services?
Is there a difference in structured output support between these models, or is there a specific configuration needed for DeepSeek-V3.1?
Thanks in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions