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
da2e5d65
Commit
da2e5d65
authored
Jul 09, 2024
by
Lianmin Zheng
Browse files
Fix the default argument of OpenAI Chat completion (#605)
parent
ce62dc73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
README.md
README.md
+0
-1
python/sglang/srt/openai_protocol.py
python/sglang/srt/openai_protocol.py
+1
-1
No files found.
README.md
View file @
da2e5d65
...
@@ -42,7 +42,6 @@ pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.3/
...
@@ -42,7 +42,6 @@ pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.3/
git clone https://github.com/sgl-project/sglang.git
git clone https://github.com/sgl-project/sglang.git
cd sglang
cd sglang
pip install --upgrade pip
pip install -e "python[all]"
pip install -e "python[all]"
# Install FlashInfer CUDA kernels
# Install FlashInfer CUDA kernels
...
...
python/sglang/srt/openai_protocol.py
View file @
da2e5d65
...
@@ -134,7 +134,7 @@ class ChatCompletionRequest(BaseModel):
...
@@ -134,7 +134,7 @@ class ChatCompletionRequest(BaseModel):
logit_bias
:
Optional
[
Dict
[
str
,
float
]]
=
None
logit_bias
:
Optional
[
Dict
[
str
,
float
]]
=
None
logprobs
:
Optional
[
bool
]
=
False
logprobs
:
Optional
[
bool
]
=
False
top_logprobs
:
Optional
[
int
]
=
None
top_logprobs
:
Optional
[
int
]
=
None
max_tokens
:
Optional
[
int
]
=
None
max_tokens
:
Optional
[
int
]
=
16
n
:
Optional
[
int
]
=
1
n
:
Optional
[
int
]
=
1
presence_penalty
:
Optional
[
float
]
=
0.0
presence_penalty
:
Optional
[
float
]
=
0.0
response_format
:
Optional
[
ResponseFormat
]
=
None
response_format
:
Optional
[
ResponseFormat
]
=
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