Remove token-adding chat embedding params (#10551)

Signed-off-by: Noam Gat <noamgat@gmail.com>
This commit is contained in:
Noam Gat
2024-11-21 23:59:47 -08:00
committed by GitHub
parent b6374e09b0
commit 11fcf0e066
2 changed files with 4 additions and 18 deletions
+4 -2
View File
@@ -148,8 +148,10 @@ class OpenAIServingEmbedding(OpenAIServing):
chat_template=request.chat_template or self.chat_template,
chat_template_content_format=self.
chat_template_content_format,
add_generation_prompt=request.add_generation_prompt,
continue_final_message=request.continue_final_message,
# In embedding requests, we are not generating tokens,
# so there is no need to append extra tokens to the input
add_generation_prompt=False,
continue_final_message=False,
truncate_prompt_tokens=truncate_prompt_tokens,
add_special_tokens=request.add_special_tokens,
)