Unverified Commit 930da877 authored by Chayenne's avatar Chayenne Committed by GitHub
Browse files

rename FunctionCallReqInput to ParseFunctionCallReq (#3976)

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