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
7ae13c66
Unverified
Commit
7ae13c66
authored
Dec 05, 2025
by
Ning Xie
Committed by
GitHub
Dec 05, 2025
Browse files
[typing] fix type (#29964)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
f16356fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vllm/reasoning/abs_reasoning_parsers.py
vllm/reasoning/abs_reasoning_parsers.py
+1
-1
vllm/reasoning/gptoss_reasoning_parser.py
vllm/reasoning/gptoss_reasoning_parser.py
+1
-1
No files found.
vllm/reasoning/abs_reasoning_parsers.py
View file @
7ae13c66
...
@@ -121,7 +121,7 @@ class ReasoningParser:
...
@@ -121,7 +121,7 @@ class ReasoningParser:
self
,
self
,
original_tag
:
str
|
None
,
original_tag
:
str
|
None
,
tool_server
:
ToolServer
|
None
,
tool_server
:
ToolServer
|
None
,
)
->
str
:
)
->
str
|
None
:
"""
"""
Instance method that is implemented for preparing the structured tag
Instance method that is implemented for preparing the structured tag
Otherwise, None is returned
Otherwise, None is returned
...
...
vllm/reasoning/gptoss_reasoning_parser.py
View file @
7ae13c66
...
@@ -145,7 +145,7 @@ class GptOssReasoningParser(ReasoningParser):
...
@@ -145,7 +145,7 @@ class GptOssReasoningParser(ReasoningParser):
# This function prepares the structural tag to format reasoning output
# This function prepares the structural tag to format reasoning output
def
prepare_structured_tag
(
def
prepare_structured_tag
(
self
,
original_tag
:
str
|
None
,
tool_server
:
ToolServer
|
None
self
,
original_tag
:
str
|
None
,
tool_server
:
ToolServer
|
None
)
->
str
:
)
->
str
|
None
:
if
original_tag
is
None
:
if
original_tag
is
None
:
if
tool_server
is
None
:
if
tool_server
is
None
:
return
json
.
dumps
(
no_func_reaonsing_tag
)
return
json
.
dumps
(
no_func_reaonsing_tag
)
...
...
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