Skip to content
New issue

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

getting error on replying msg #1

Open
2 tasks done
sdwcn opened this issue Aug 8, 2024 · 3 comments
Open
2 tasks done

getting error on replying msg #1

sdwcn opened this issue Aug 8, 2024 · 3 comments

Comments

@sdwcn
Copy link

sdwcn commented Aug 8, 2024

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Windows

运行的python版本是?

python 3.7

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

按正常步骤安装配置后,与bot交互,收到error提示:
AttributeError: 'str' object has no attribute 'get'
[INFO][2024-08-08 12:16:01][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
我现在有点累了,等会再来吧)

问题描述 😯

na

终端日志 📒

Please press confirm on your phone.
Loading the contact, this may take a little while.
[INFO][2024-08-08 12:15:39][wechat_channel.py:131] - Wechat login success, user_id: @626340e9a186d0904d348461557a90917a3f7e1a9xxxxxxxxxxxxxxxxx, nickname:
Start auto replying.
[INFO][2024-08-08 12:16:00][bridge.py:68] - create bot chatGPT for chat
[INFO][2024-08-08 12:16:00][chat_gpt_bot.py:49] - [CHATGPT] query=你好  你是 ai 么?
[WARNING][2024-08-08 12:16:00][session_manager.py:72] - Exception when counting tokens precisely for prompt: Unknown encoding cl100k_base
[ERROR][2024-08-08 12:16:01][chat_gpt_bot.py:155] - [CHATGPT] Exception: 'str' object has no attribute 'get'
Traceback (most recent call last):
  File "bot\chatgpt\chat_gpt_bot.py", line 123, in reply_text
  File "openai\api_resources\chat_completion.py", line 25, in create
  File "openai\api_resources\abstract\engine_api_resource.py", line 153, in create
  File "openai\api_requestor.py", line 298, in request
  File "openai\api_requestor.py", line 700, in _interpret_response
  File "openai\api_requestor.py", line 763, in _interpret_response_line
  File "openai\api_requestor.py", line 418, in handle_error_response
AttributeError: 'str' object has no attribute 'get'
[INFO][2024-08-08 12:16:01][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
我现在有点累了,等会再来吧), receiver=@e2b2dc7d2196edeae1d3706f1b815fb8857c576ef3072f17c676c9f0d28101d7
@AmandaloveYang
Copy link

和你一样的问题

@ImGoodBai
Copy link
Owner

稍等我这两天更新新版本。

@sdwcn
Copy link
Author

sdwcn commented Aug 13, 2024

大佬,啥时候更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants