From 31d49cff942801a0aa8cd263d3b02965bfcf7afc Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Mon, 25 Nov 2024 10:14:49 +0800 Subject: [PATCH] =?UTF-8?q?11.24=20=E9=80=9F=E7=8E=87=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/general/多线程提问.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_app/general/多线程提问.py b/flask_app/general/多线程提问.py index ab93dbe..2e7c947 100644 --- a/flask_app/general/多线程提问.py +++ b/flask_app/general/多线程提问.py @@ -268,7 +268,7 @@ def multi_threading(queries, knowledge_name="", file_id="", llm_type=1): with concurrent.futures.ThreadPoolExecutor(max_workers=30) as executor: future_to_query = {} for index, query in enumerate(queries): - time.sleep(0.5) # 每提交一个任务后等待0.5秒 + time.sleep(0.7) # 每提交一个任务后等待0.5秒 future = executor.submit(llm_call, query, knowledge_name, file_id, result_queue, index, llm_type) future_to_query[future] = index retry_counts[index] = 0 # 初始化重试次数