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
a1bd7190
"vscode:/vscode.git/clone" did not exist on "9e26c8e38864d5625db59d5e5b22812b4d153533"
Unverified
Commit
a1bd7190
authored
Nov 12, 2024
by
Xiaoyu Zhang
Committed by
GitHub
Nov 12, 2024
Browse files
fix a bug in v1_embeeding_request (#2014)
parent
78c1d644
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/adapter.py
python/sglang/srt/openai_api/adapter.py
+1
-1
No files found.
python/sglang/srt/openai_api/adapter.py
View file @
a1bd7190
...
...
@@ -1281,7 +1281,7 @@ def v1_embedding_request(all_requests, tokenizer_manager):
else
:
prompt_kwargs
=
{
"input_ids"
:
prompt
}
else
:
if
isinstance
(
prompts
[
0
],
str
)
or
isinstance
(
propmt
[
0
][
0
],
str
):
if
isinstance
(
prompts
[
0
],
str
)
or
isinstance
(
propmt
s
[
0
][
0
],
str
):
prompt_kwargs
=
{
"text"
:
prompts
}
else
:
prompt_kwargs
=
{
"input_ids"
:
prompts
}
...
...
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