Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
930da877
Unverified
Commit
930da877
authored
Feb 28, 2025
by
Chayenne
Committed by
GitHub
Feb 28, 2025
Browse files
rename FunctionCallReqInput to ParseFunctionCallReq (#3976)
parent
3f8a4414
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
python/sglang/srt/entrypoints/http_server.py
python/sglang/srt/entrypoints/http_server.py
+2
-2
python/sglang/srt/managers/io_struct.py
python/sglang/srt/managers/io_struct.py
+1
-1
No files found.
python/sglang/srt/entrypoints/http_server.py
View file @
930da877
...
@@ -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
:
FunctionCallReq
Input
,
request
:
Request
):
async
def
function_call_request
(
obj
:
Parse
FunctionCallReq
,
request
:
Request
):
"""
"""
A native API endpoint to parse function calls from a text.
A native API endpoint to parse function calls from a text.
"""
"""
...
...
python/sglang/srt/managers/io_struct.py
View file @
930da877
...
@@ -562,7 +562,7 @@ class Tool:
...
@@ -562,7 +562,7 @@ class Tool:
@
dataclass
@
dataclass
class
FunctionCallReq
Input
:
class
Parse
FunctionCallReq
:
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment