mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-13 21:47:04 +08:00
[typing] fix type (#29964)
Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
parent
f16356fe36
commit
7ae13c66ba
@ -121,7 +121,7 @@ class ReasoningParser:
|
||||
self,
|
||||
original_tag: str | None,
|
||||
tool_server: ToolServer | None,
|
||||
) -> str:
|
||||
) -> str | None:
|
||||
"""
|
||||
Instance method that is implemented for preparing the structured tag
|
||||
Otherwise, None is returned
|
||||
|
||||
@ -145,7 +145,7 @@ class GptOssReasoningParser(ReasoningParser):
|
||||
# This function prepares the structural tag to format reasoning output
|
||||
def prepare_structured_tag(
|
||||
self, original_tag: str | None, tool_server: ToolServer | None
|
||||
) -> str:
|
||||
) -> str | None:
|
||||
if original_tag is None:
|
||||
if tool_server is None:
|
||||
return json.dumps(no_func_reaonsing_tag)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user