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
33c5ff28
Unverified
Commit
33c5ff28
authored
Dec 17, 2024
by
Lei
Committed by
GitHub
Dec 17, 2024
Browse files
Add lora_path to chat completion (#2438)
parent
5ce9daea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/sglang/srt/openai_api/protocol.py
python/sglang/srt/openai_api/protocol.py
+1
-0
No files found.
python/sglang/srt/openai_api/protocol.py
View file @
33c5ff28
...
@@ -276,6 +276,7 @@ class ChatCompletionRequest(BaseModel):
...
@@ -276,6 +276,7 @@ class ChatCompletionRequest(BaseModel):
user
:
Optional
[
str
]
=
None
user
:
Optional
[
str
]
=
None
# Extra parameters for SRT backend only and will be ignored by OpenAI models.
# Extra parameters for SRT backend only and will be ignored by OpenAI models.
lora_path
:
Optional
[
Union
[
List
[
Optional
[
str
]],
Optional
[
str
]]]
=
None
regex
:
Optional
[
str
]
=
None
regex
:
Optional
[
str
]
=
None
min_tokens
:
int
=
0
min_tokens
:
int
=
0
repetition_penalty
:
float
=
1.0
repetition_penalty
:
float
=
1.0
...
...
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