Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
28048bd6
Unverified
Commit
28048bd6
authored
Mar 26, 2026
by
yzong-rh
Committed by
GitHub
Mar 26, 2026
Browse files
[Bugfix] Add missing f-string prefix in xgrammar choices error message (#38162)
Signed-off-by:
Yifan Zong
<
yzong@redhat.com
>
parent
c32e9760
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/structured_output/backend_xgrammar.py
vllm/v1/structured_output/backend_xgrammar.py
+1
-1
No files found.
vllm/v1/structured_output/backend_xgrammar.py
View file @
28048bd6
...
@@ -289,7 +289,7 @@ def validate_xgrammar_grammar(sampling_params: SamplingParams) -> None:
...
@@ -289,7 +289,7 @@ def validate_xgrammar_grammar(sampling_params: SamplingParams) -> None:
xgr
.
Grammar
.
from_ebnf
(
choice_grammar
)
xgr
.
Grammar
.
from_ebnf
(
choice_grammar
)
except
Exception
as
err
:
except
Exception
as
err
:
raise
ValueError
(
raise
ValueError
(
"Failed to transform choices into a grammar: {err}"
f
"Failed to transform choices into a grammar:
{
err
}
"
)
from
err
)
from
err
so_params
.
choice
=
None
so_params
.
choice
=
None
so_params
.
grammar
=
choice_grammar
so_params
.
grammar
=
choice_grammar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment