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
550586ef
"src/vscode:/vscode.git/clone" did not exist on "6c314ad0ce8f59f24a26556488972bb70bd904a8"
Unverified
Commit
550586ef
authored
Mar 28, 2025
by
BroadbentJim
Committed by
GitHub
Mar 27, 2025
Browse files
fix: Inappropriate lack of Optional type on OpenAI ChatCompletionRequest (#4681)
parent
cf29fe9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/openai_api/protocol.py
python/sglang/srt/openai_api/protocol.py
+1
-1
No files found.
python/sglang/srt/openai_api/protocol.py
View file @
550586ef
...
...
@@ -323,7 +323,7 @@ class ChatCompletionRequest(BaseModel):
max_tokens
:
Optional
[
int
]
=
None
n
:
int
=
1
presence_penalty
:
float
=
0.0
response_format
:
Union
[
ResponseFormat
,
StructuralTagResponseFormat
]
=
None
response_format
:
Optional
[
Union
[
ResponseFormat
,
StructuralTagResponseFormat
]
]
=
None
seed
:
Optional
[
int
]
=
None
stop
:
Optional
[
Union
[
str
,
List
[
str
]]]
=
None
stream
:
bool
=
False
...
...
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