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
api_key为空会显示下面这个错误
The text was updated successfully, but these errors were encountered:
No branches or pull requests
api_key为空会显示下面这个错误
2024-07-29 05:20:43 | stdout | 发送成功 -- | -- | -- 2024-07-29 05:20:43 | stdout | 发送的消息为:发生了未知错误Orz 2024-07-29 05:20:43 | stdout | KeyError: 'usage' 2024-07-29 05:20:43 | stdout | if 'total_tokens' in response["usage"]: 2024-07-29 05:20:43 | stdout | File "/app/chat/views.py", line 52, in get_response 2024-07-29 05:20:43 | stdout | response, tokencount = get_response(context, openAI_API_Key) 2024-07-29 05:20:43 | stdout | File "/app/chat/views.py", line 94, in chatgpt_reply 2024-07-29 05:20:43 | stdout | Traceback (most recent call last): 2024-07-29 05:20:41 | stdout | 收到了ID为6的用户的消息:12333 2024-07-29 05:20:37 | stdout | 发送成功 2024-07-29 05:20:37 | stdout | 发送的消息为:API-key已设置: 2024-07-29 05:20:37 | stdout | 收到了ID为6的用户的指令:/setapikeyThe text was updated successfully, but these errors were encountered: