Browse Source

fix: 1959-百度文心偶发报错336006

master
6vision 5 months ago
parent
commit
071709d263
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bot/baidu/baidu_wenxin.py

+ 1
- 1
bot/baidu/baidu_wenxin.py View File

@@ -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):


Loading…
Cancel
Save