rename FunctionCallReqInput to ParseFunctionCallReq (#3976)

This commit is contained in:
Chayenne authored and GitHub committed 2025-02-28 18:46:25 -08:00
1 parent 3f8a441437
commit 930da877c4
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -44,11 +44,11 @@ from sglang.srt.managers.io_struct import (
CloseSessionReqInput,
ConfigureLoggingReq,
EmbeddingReqInput,
FunctionCallReqInput,
GenerateReqInput,
GetWeightsByNameReqInput,
InitWeightsUpdateGroupReqInput,
OpenSessionReqInput,
ParseFunctionCallReq,
ReleaseMemoryOccupationReqInput,
ResumeMemoryOccupationReqInput,
UpdateWeightFromDiskReqInput,
@@ -373,7 +373,7 @@ async def configure_logging(obj: ConfigureLoggingReq, request: Request):
@app.post("/function_call")
async def function_call_request(obj: FunctionCallReqInput, request: Request):
async def function_call_request(obj: ParseFunctionCallReq, request: Request):
"""
A native API endpoint to parse function calls from a text.
"""
+1 -1
View File
@@ -562,7 +562,7 @@ class Tool:
@dataclass
class FunctionCallReqInput:
class ParseFunctionCallReq:
text: str # The text to parse.
tools: List[Tool] = field(
default_factory=list