From 3f4c4ebc290d29c42545f1490905acf5aa44146c Mon Sep 17 00:00:00 2001 From: binary-husky Date: Fri, 25 Aug 2023 13:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request_llm/bridge_qianfan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request_llm/bridge_qianfan.py b/request_llm/bridge_qianfan.py index 7abce8a..e2cdb0e 100644 --- a/request_llm/bridge_qianfan.py +++ b/request_llm/bridge_qianfan.py @@ -110,7 +110,7 @@ def generate_from_baidu_qianfan(inputs, llm_kwargs, history, system_prompt): yield buffer except: if ('error_code' in dec) and ("max length" in dec['error_msg']): - raise ConnectionAbortedError(dec['error_msg']) + raise ConnectionAbortedError(dec['error_msg']) # 上下文太长导致 token 溢出 elif ('error_code' in dec): raise RuntimeError(dec['error_msg'])