From 071709d2630451daaf3195092776f9b29e3818e3 Mon Sep 17 00:00:00 2001 From: 6vision Date: Wed, 22 May 2024 16:01:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201959-=E7=99=BE=E5=BA=A6=E6=96=87?= =?UTF-8?q?=E5=BF=83=E5=81=B6=E5=8F=91=E6=8A=A5=E9=94=99336006?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot/baidu/baidu_wenxin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/baidu/baidu_wenxin.py b/bot/baidu/baidu_wenxin.py index f00b5ff..81b5748 100644 --- a/bot/baidu/baidu_wenxin.py +++ b/bot/baidu/baidu_wenxin.py @@ -94,7 +94,7 @@ class BaiduWenxinBot(Bot): logger.warn("[BAIDU] Exception: {}".format(e)) need_retry = False self.sessions.clear_session(session.session_id) - result = {"total_tokens":0, "completion_tokens": 0, "content": "出错了: {}".format(e)} + result = {"total_tokens": 0, "completion_tokens": 0, "content": "出错了: {}".format(e)} return result def get_access_token(self):