mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-19 06:54:41 +08:00
Support for async processor added. (#3870)
* Support for async processor added. * remove yappi code
This commit is contained in:
@@ -70,7 +70,7 @@ class TestLodChatTemplate(unittest.IsolatedAsyncioTestCase):
|
||||
):
|
||||
return prompt_token_ids
|
||||
|
||||
def mock_format_and_add_data(current_req_dict):
|
||||
async def mock_format_and_add_data(current_req_dict):
|
||||
return current_req_dict
|
||||
|
||||
self.chat_completion_handler.chat_completion_full_generator = mock_chat_completion_full_generator
|
||||
@@ -97,7 +97,7 @@ class TestLodChatTemplate(unittest.IsolatedAsyncioTestCase):
|
||||
):
|
||||
return prompt_token_ids
|
||||
|
||||
def mock_format_and_add_data(current_req_dict):
|
||||
async def mock_format_and_add_data(current_req_dict):
|
||||
return current_req_dict
|
||||
|
||||
self.chat_completion_handler.chat_completion_full_generator = mock_chat_completion_full_generator
|
||||
|
Reference in New Issue
Block a user