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
c8f549d9
Unverified
Commit
c8f549d9
authored
Jul 28, 2025
by
Timofey
Committed by
GitHub
Jul 28, 2025
Browse files
Fix parsing ChatCompletionMessage (#7273)
Co-authored-by:
Timofey K
<
timosha1113@gmail.com
>
parent
134fa43e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/entrypoints/openai/protocol.py
python/sglang/srt/entrypoints/openai/protocol.py
+3
-1
No files found.
python/sglang/srt/entrypoints/openai/protocol.py
View file @
c8f549d9
...
...
@@ -317,7 +317,9 @@ class ToolCall(BaseModel):
class
ChatCompletionMessageGenericParam
(
BaseModel
):
role
:
Literal
[
"system"
,
"assistant"
,
"tool"
]
content
:
Union
[
str
,
List
[
ChatCompletionMessageContentTextPart
],
None
]
content
:
Union
[
str
,
List
[
ChatCompletionMessageContentTextPart
],
None
]
=
Field
(
default
=
None
)
tool_call_id
:
Optional
[
str
]
=
None
name
:
Optional
[
str
]
=
None
reasoning_content
:
Optional
[
str
]
=
None
...
...
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