From 930da877c4781f0842b791b90cb0e7e80b6b1afb Mon Sep 17 00:00:00 2001 From: Chayenne Date: Fri, 28 Feb 2025 18:46:25 -0800 Subject: [PATCH] rename FunctionCallReqInput to ParseFunctionCallReq (#3976) --- python/sglang/srt/entrypoints/http_server.py | 4 ++-- python/sglang/srt/managers/io_struct.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/sglang/srt/entrypoints/http_server.py b/python/sglang/srt/entrypoints/http_server.py index f84089d05..4873306c6 100644 --- a/python/sglang/srt/entrypoints/http_server.py +++ b/python/sglang/srt/entrypoints/http_server.py @@ -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. """ diff --git a/python/sglang/srt/managers/io_struct.py b/python/sglang/srt/managers/io_struct.py index 30cc48055..fb7cc53ce 100644 --- a/python/sglang/srt/managers/io_struct.py +++ b/python/sglang/srt/managers/io_struct.py @@ -562,7 +562,7 @@ class Tool: @dataclass -class FunctionCallReqInput: +class ParseFunctionCallReq: text: str # The text to parse. tools: List[Tool] = field( default_factory=list