From cc4cec0a74fdef03645e58e25d642de8d9f62735 Mon Sep 17 00:00:00 2001 From: ltd0924 <32387785+ltd0924@users.noreply.github.com> Date: Mon, 21 Jul 2025 11:42:16 +0800 Subject: [PATCH] Update engine_client.py (#2931) --- fastdeploy/entrypoints/engine_client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fastdeploy/entrypoints/engine_client.py b/fastdeploy/entrypoints/engine_client.py index 8aa93e213..96dbdf1bb 100644 --- a/fastdeploy/entrypoints/engine_client.py +++ b/fastdeploy/entrypoints/engine_client.py @@ -81,9 +81,6 @@ class EngineClient: """ Format the request data and send the request to the server. """ - if "request_id" in prompts: - prompts["request_id"] = prompts["request_id"] - if "request_id" not in prompts: request_id = str(uuid.uuid4()) prompts["request_id"] = request_id @@ -144,7 +141,7 @@ class EngineClient: task["preprocess_end_time"] = time.time() preprocess_cost_time = task["preprocess_end_time"] - task["preprocess_start_time"] api_server_logger.info( - f"Cache request with request_id ({task.get('request_id')}), " f"cost {time.time() - preprocess_cost_time}" + f"Cache request with request_id ({task.get('request_id')}), " f"preprocess time cost {preprocess_cost_time}" ) self.vaild_parameters(task)