Replies: 5 comments
-
I am also running into a similar issue when using the pydantic method for json decoding. |
Beta Was this translation helpful? Give feedback.
-
This issue seems to be talked about here too, they suggest
Haven't tested though |
Beta Was this translation helpful? Give feedback.
-
It's likely due to the regex issue. I'd suggest the following ways:
|
Beta Was this translation helpful? Give feedback.
-
@comaniac thanks for your insight. It's interesting that the pydantic doesn't give perfect regex. Will keep that in mind. But I think also the solution mentioned in that other issue might be useful to test as well. |
Beta Was this translation helpful? Give feedback.
-
Could you convert this to a discussion since it's probably not an sglang issue |
Beta Was this translation helpful? Give feedback.
-
When using a regex to constrain the output to a particular json format, sometimes after the comma it will randomly fail and do new lines.
Like
Beta Was this translation helpful? Give feedback.
All reactions