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
e37cdab0
Unverified
Commit
e37cdab0
authored
Oct 12, 2024
by
Lianmin Zheng
Committed by
GitHub
Oct 12, 2024
Browse files
Fix ignore_eos (#1645)
parent
1d9deeac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/sglang/srt/openai_api/protocol.py
python/sglang/srt/openai_api/protocol.py
+3
-2
No files found.
python/sglang/srt/openai_api/protocol.py
View file @
e37cdab0
...
...
@@ -170,8 +170,8 @@ class CompletionRequest(BaseModel):
# Extra parameters for SRT backend only and will be ignored by OpenAI models.
regex
:
Optional
[
str
]
=
None
json_schema
:
Optional
[
str
]
=
None
ignore_eos
:
Optional
[
bool
]
=
False
min_tokens
:
Optional
[
int
]
=
0
ignore_eos
:
bool
=
False
min_tokens
:
int
=
0
repetition_penalty
:
Optional
[
float
]
=
1.0
stop_token_ids
:
Optional
[
List
[
int
]]
=
Field
(
default_factory
=
list
)
...
...
@@ -275,6 +275,7 @@ class ChatCompletionRequest(BaseModel):
min_tokens
:
Optional
[
int
]
=
0
repetition_penalty
:
Optional
[
float
]
=
1.0
stop_token_ids
:
Optional
[
List
[
int
]]
=
Field
(
default_factory
=
list
)
ignore_eos
:
bool
=
False
class
ChatMessage
(
BaseModel
):
...
...
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