Skip to content

Commit

Permalink
fix typo prompts (#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
qibaoyuan authored Nov 27, 2024
1 parent 92d1253 commit a4fd2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/srt/openai_api/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ def v1_embedding_request(all_requests, tokenizer_manager):
else:
prompt_kwargs = {"input_ids": prompt}
else:
if isinstance(prompts[0], str) or isinstance(propmts[0][0], str):
if isinstance(prompts[0], str) or isinstance(prompts[0][0], str):
prompt_kwargs = {"text": prompts}
else:
prompt_kwargs = {"input_ids": prompts}
Expand Down

0 comments on commit a4fd2f9

Please sign in to comment.