Support for async processor added. (#3870)

* Support for async processor added.

* remove yappi code
This commit is contained in:
SunLei
2025-09-04 10:35:08 +08:00
committed by GitHub
parent b56b015d85
commit 8c0e7d6fe9
4 changed files with 12 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ class OpenAIServingChat:
if "chat_template" not in current_req_dict:
current_req_dict["chat_template"] = self.chat_template
current_req_dict["arrival_time"] = time.time()
prompt_token_ids = self.engine_client.format_and_add_data(current_req_dict)
prompt_token_ids = await self.engine_client.format_and_add_data(current_req_dict)
text_after_process = current_req_dict.get("text_after_process")
if isinstance(prompt_token_ids, np.ndarray):
prompt_token_ids = prompt_token_ids.tolist()