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
4e51fa8c
Unverified
Commit
4e51fa8c
authored
Aug 20, 2025
by
Russell Bryant
Committed by
GitHub
Aug 20, 2025
Browse files
Do not use eval() to convert unknown types (#23266)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
bf7c99df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
vllm/entrypoints/openai/tool_parsers/qwen3coder_tool_parser.py
...entrypoints/openai/tool_parsers/qwen3coder_tool_parser.py
+4
-9
No files found.
vllm/entrypoints/openai/tool_parsers/qwen3coder_tool_parser.py
View file @
4e51fa8c
...
@@ -208,15 +208,10 @@ class Qwen3CoderToolParser(ToolParser):
...
@@ -208,15 +208,10 @@ class Qwen3CoderToolParser(ToolParser):
"valid JSON object in tool '%s', will try other "
"valid JSON object in tool '%s', will try other "
"methods to parse it."
,
param_value
,
param_name
,
"methods to parse it."
,
param_value
,
param_name
,
func_name
)
func_name
)
try
:
converted_value
=
eval
(
param_value
)
return
converted_value
except
Exception
:
logger
.
warning
(
logger
.
warning
(
"Parsed value '%s' of parameter '%s' cannot be "
"Parameter '%s' has unknown type '%s'. "
"converted via Python `eval()` in tool '%s', "
"The value will be treated as a string."
,
param_name
,
"degenerating to string."
,
param_value
,
param_name
,
param_type
)
func_name
)
return
param_value
return
param_value
# Extract function name
# Extract function name
...
...
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