浏览代码

Merge pull request #2012 from 6vision/fix_issue_1959_

Fix issue 1959 wenxin模型返回报错
develop
vision GitHub 6 个月前
父节点
当前提交
a46320e744
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bot/baidu/baidu_wenxin.py

+ 1
- 1
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 = {"completion_tokens": 0, "content": "出错了: {}".format(e)}
result = {"total_tokens": 0, "completion_tokens": 0, "content": "出错了: {}".format(e)}
return result

def get_access_token(self):


正在加载...
取消
保存