Skip to content

Commit cc4cec0

Browse files
authored
Update engine_client.py (#2931)
1 parent 17c5d3a commit cc4cec0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fastdeploy/entrypoints/engine_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ def format_and_add_data(self, prompts: dict):
8181
"""
8282
Format the request data and send the request to the server.
8383
"""
84-
if "request_id" in prompts:
85-
prompts["request_id"] = prompts["request_id"]
86-
8784
if "request_id" not in prompts:
8885
request_id = str(uuid.uuid4())
8986
prompts["request_id"] = request_id
@@ -144,7 +141,7 @@ def add_requests(self, task):
144141
task["preprocess_end_time"] = time.time()
145142
preprocess_cost_time = task["preprocess_end_time"] - task["preprocess_start_time"]
146143
api_server_logger.info(
147-
f"Cache request with request_id ({task.get('request_id')}), " f"cost {time.time() - preprocess_cost_time}"
144+
f"Cache request with request_id ({task.get('request_id')}), " f"preprocess time cost {preprocess_cost_time}"
148145
)
149146

150147
self.vaild_parameters(task)

0 commit comments

Comments
 (0)