We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker
python 3.10
Latest Release
channel
wx(个人微信, itchat)
No response
[WARNING][2024-05-10 08:26:24][baidu_wenxin.py:94] - [BAIDU] Exception: 'result' [ERROR][2024-05-10 08:26:24][chat_channel.py:303] - Worker return exception: 'total_tokens' Traceback (most recent call last): File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/app/channel/chat_channel.py", line 170, in _handle reply = self._generate_reply(context) File "/app/channel/chat_channel.py", line 193, in _generate_reply reply = super().build_reply_content(context.content, context) File "/app/channel/channel.py", line 38, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/app/bridge/bridge.py", line 74, in fetch_reply_content return self.get_bot("chat").reply(query, context) File "/app/bot/baidu/baidu_wenxin.py", line 41, in reply result["total_tokens"], KeyError: 'total_tokens'
The text was updated successfully, but these errors were encountered:
修复了 KeyError: 'total_tokens' 报错,336006错误码见错误码,暂时没复现,可以提供更多log信息
Sorry, something went wrong.
#2012 修复了 KeyError: 'total_tokens' 报错,336006错误码见错误码,暂时没复现,可以提供更多log信息
No branches or pull requests
前置确认
操作系统类型?
Docker
运行的python版本是?
python 3.10
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
No response
问题描述 😯
No response
终端日志 📒
[WARNING][2024-05-10 08:26:24][baidu_wenxin.py:94] - [BAIDU] Exception: 'result'
[ERROR][2024-05-10 08:26:24][chat_channel.py:303] - Worker return exception: 'total_tokens'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/channel/chat_channel.py", line 170, in _handle
reply = self._generate_reply(context)
File "/app/channel/chat_channel.py", line 193, in _generate_reply
reply = super().build_reply_content(context.content, context)
File "/app/channel/channel.py", line 38, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/app/bridge/bridge.py", line 74, in fetch_reply_content
return self.get_bot("chat").reply(query, context)
File "/app/bot/baidu/baidu_wenxin.py", line 41, in reply
result["total_tokens"],
KeyError: 'total_tokens'
The text was updated successfully, but these errors were encountered: