diff --git a/python/sglang/srt/function_call/function_call_parser.py b/python/sglang/srt/function_call/function_call_parser.py index fd4f7ceb3..35ef60c64 100644 --- a/python/sglang/srt/function_call/function_call_parser.py +++ b/python/sglang/srt/function_call/function_call_parser.py @@ -152,7 +152,7 @@ class FunctionCallParser: tool_structures.append( StructuresResponseFormat( begin=info.begin, - schema=schema, # type: ignore + schema=schema or {}, # type: ignore end=info.end, ) )