zhayujie / chatgpt-on-wechat

基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT-o1/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
https://docs.link-ai.tech/cow
MIT License
29.84k stars 7.88k forks source link

新加坡主机,服务器接收消息响应[WX]get other_user_id failed: 'NickName' #1571

Closed mysmallwhale closed 9 months ago

mysmallwhale commented 9 months ago

前置确认

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

操作系统类型?

Windows

运行的python版本是?

python 3.8

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

1.新加坡windows主机运行python项目 2.个人微信扫码生成的二维码,正常登录,并提示Start auto replying 3.微信每发一条信息(无论是否带bot),都会响应一条字符串[WARNING][2023-12-05 19:43:48][wechat_message.py:84] - [WX]get other_user_id failed: 'NickName' 4.我的config.json配置如下 { "channel_type": "wx", "model": "gpt-3.5-turbo", "open_ai_api_key":我在Open AI官网上注册的api key, "open_ai_api_base": "https://api.openai.com/v1", "text_to_image": "dall-e-2", "voice_to_text": "openai", "text_to_voice": "openai", "proxy": "http://127.0.0.1:7890", "hot_reload": false, "single_chat_prefix": [ "bot", "@bot" ], "single_chat_reply_prefix": "[bot] ", "group_chat_prefix": [ "@bot" ], "group_name_white_list": [ "ChatGPT测试群", "ChatGPT测试群2" ], "group_chat_in_one_session": [ "ChatGPT测试群" ], "image_create_prefix": [ "画" ], "use_azure_chatgpt": false, "speech_recognition": true, "group_speech_recognition": false, "voice_reply_voice": false, "conversation_max_tokens": 2500, "expires_in_seconds": 3600, "character_desc": "chatGPT机器人", "temperature": 0.7, "top_p": 1, "subscribe_msg": "感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。", "use_linkai": false, "linkai_api_key": "", "linkai_app_code": "", "linkai_api_base": "https://api.link-ai.chat"

问题描述 😯

微信每发一条信息(无论是否带bot),电脑的python运行窗口都会响应一条字符串[WARNING][2023-12-05 19:43:48][wechat_message.py:84] - [WX]get other_user_id failed: 'NickName'。运行窗口不显示接收的字符串,微信也没没有收到chatGPT的响应。

终端日志 📒

Please press confirm on your phone.
Loading the contact, this may take a little while.
Login successfully as whale
[INFO][2023-12-05 19:23:00][wechat_channel.py:126] - Wechat login success, user_
id: @4492b68221c3e297abb92ea5af43e514a1508012f46d2b4f54d31e811887ada5, nickname:
 whale
Start auto replying.
[WARNING][2023-12-05 19:23:14][wechat_message.py:84] - [WX]get other_user_id fai
led: 'NickName'
[WARNING][2023-12-05 19:43:42][wechat_message.py:84] - [WX]get other_user_id fai
led: 'NickName'
[WARNING][2023-12-05 19:43:48][wechat_message.py:84] - [WX]get other_user_id fai
led: 'NickName'
zhayujie commented 9 months ago

你换一个账号来和bot对话看看,同时要携带 bot 前缀

mysmallwhale commented 9 months ago

问题解决了。提示[WARNING][2023-12-05 19:43:48][wechat_message.py:84] - [WX]get other_user_id failed: 'NickName',是因为我给“文件传播助手”发消息。给其他人发消息,没有这个问题。