From 05c74e66e7c99461878aea2ee5d203ccd7459ec2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 17 Apr 2023 23:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=BA=BF=E7=A8=8B=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crazy_functions/crazy_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crazy_functions/crazy_utils.py b/crazy_functions/crazy_utils.py index 68c8072..29c58b4 100644 --- a/crazy_functions/crazy_utils.py +++ b/crazy_functions/crazy_utils.py @@ -175,7 +175,7 @@ def request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency( except: max_workers = 8 if max_workers <= 0 or max_workers >= 20: max_workers = 8 # 屏蔽掉 chatglm的多线程,可能会导致严重卡顿 - if not llm_kwargs['llm_model'].startswith('gpt-'): + if not (llm_kwargs['llm_model'].startswith('gpt-') or llm_kwargs['llm_model'].startswith('api2d-')): max_workers = 1 executor = ThreadPoolExecutor(max_workers=max_workers)