Unverified Commit 7ae13c66 authored by Ning Xie's avatar Ning Xie Committed by GitHub
Browse files

[typing] fix type (#29964)


Signed-off-by: default avatarAndy Xie <andy.xning@gmail.com>
parent f16356fe
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment