chatgpt-on-wechat
chatgpt-on-wechat copied to clipboard
#指令均无响应
前置确认
- [X] 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。
⚠️ 搜索issues中是否已存在类似问题
- [X] 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
操作系统类型?
Docker
运行的python版本是?
python 3.7
使用的chatgpt-on-wechat版本是?
Latest Release
运行的channel
类型是?
wx(个人微信, itchat)
复现步骤 🕹
No response
问题描述 😯
#auth xxx #plist #help等指令均无回应
/app/config.json如下: { "channel_type": "wx", "open_ai_api_key": "sk-xxxxxxxxxxxxxx", "open_ai_api_base":"https://api.chatanywhere.tech", "model": "gpt-3.5-turbo", "proxy": "", "text_to_image": "dall-e-2", "voice_to_text": "openai", "text_to_voice": "openai", "hot_reload": true, "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": ["画", "看", "找"], "conversation_max_tokens": 2500, "speech_recognition": false, "group_speech_recognition": false, "azure_api_version": "", "character_desc": "你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。", "subscribe_msg": "感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持角色扮演和文字冒险等丰富插件。\n输入{trigger_prefix}#help 查看详细指令。", "use_linkai": false, "linkai_api_key": "", "linkai_app_code": ""
app/plugins/plugins.json如下: { "plugins": { "Godcmd": { "enabled": true, "priority": 999 }, "Keyword": { "enabled": true, "priority": 900 }, "Banwords": { "enabled": false, "priority": 100 }, "linkai": { "enabled": true, "priority": 99 }, "tool": { "enabled": true, "priority": 0 }, "Role": { "enabled": true, "priority": 0 }, "Dungeon": { "enabled": true, "priority": 0 }, "BDunit": { "enabled": false, "priority": 0 }, "Hello": { "enabled": true, "priority": -1 }, "Finish": { "enabled": true, "priority": -999 } }
app/plugins/config.json如下: { "godcmd": { "password": "9527", "admin_users": [] }, "banwords": { "action": "replace", "reply_filter": true, "reply_action": "ignore" }, "tool": { "tools": [ "bing-search", "python", "url-get", "terminal", "meteo-weather" ], "kwargs": { "llm_api_key": "", "proxy": "", "debug": false, "top_k_results": 2, "no_default": false, "model_name": "gpt-3.5-turbo", "bing_subscription_key": "XXXXXXXXXXXXXXXXXXXXXXXX" } }, "linkai": { "group_app_map": { "测试群1": "default", "测试群2": "Kv2fXJcH" }, "midjourney": { "enabled": true, "auto_translate": true, "img_proxy": true, "max_tasks": 3, "max_tasks_per_user": 1, "use_image_create_prefix": true }, "summary": { "enabled": true, "group_enabled": true, "max_file_size": 5000, "type": ["FILE", "SHARING"] } }
终端日志 📒
y2024-03-23T12:47:08.100741521Z [WARNING][2024-03-23 12:47:08][tool.py:234] - [tool] filter invalid tool: 'meteo-weather'
�2024-03-23T12:47:08.108426640Z [INFO][2024-03-23 12:47:08][victorinox.py:83] - use_tools=['meteo', 'python', 'url-get', 'terminal', 'bing-search'], params: {'log': True, 'debug': False, 'no_default': False, 'think_depth': 2, 'proxy': '', 'request_timeout': 120, 'temperature': 0, 'llm_api_key': 'sk-XXXXXXXXXXX', 'llm_api_base_url': 'https://api.chatanywhere.tech', 'deployment_id': '', 'model_name': 'gpt-3.5-turbo', 'arxiv_simple': True, 'arxiv_top_k_results': 2, 'arxiv_sort_by': 'relevance', 'arxiv_sort_order': 'descending', 'arxiv_output_type': 'text', 'bing_subscription_key': 'XXXXXXXXXX', 'bing_search_url': 'https://api.bing.microsoft.com/v7.0/search', 'bing_search_top_k_results': 2, 'bing_search_simple': True, 'bing_search_output_type': 'text', 'email_nickname_mapping': '{}', 'email_smtp_host': '', 'email_smtp_port': '', 'email_sender': '', 'email_authorization_code': '', 'google_api_key': '', 'google_cse_id': '', 'google_simple': True, 'google_output_type': 'text', 'finance_news_filter': False, 'finance_news_filter_list': [], 'finance_news_simple': True, 'finance_news_repeat_news': False, 'morning_news_api_key': '', 'morning_news_simple': True, 'morning_news_output_type': 'text', 'news_api_key': '', 'searxng_search_host': '', 'searxng_search_top_k_results': 2, 'searxng_search_output_type': 'text', 'sms_nickname_mapping': '{}', 'sms_username': '', 'sms_apikey': '', 'stt_api_key': '', 'stt_api_region': '', 'stt_recognition_language': 'zh-CN', 'tts_api_key': '', 'tts_api_region': '', 'tts_auto_detect': True, 'tts_speech_id': 'zh-CN-XiaozhenNeural', 'summary_max_segment_length': 2500, 'terminal_nsfc_filter': True, 'terminal_return_err_output': True, 'terminal_timeout': 20, 'caption_api_key': '', 'browser_use_summary': True, 'url_get_use_summary': True, 'wechat_hot_reload': True, 'wechat_cpt_path': '/app/itchat.pkl', 'wechat_send_group': False, 'wechat_nickname_mapping': '{}', 'wikipedia_top_k_results': 2, 'wolfram_alpha_appid': ''}
W2024-03-23T12:47:08.108631586Z [INFO][2024-03-23 12:47:08][tool.py:28] - [tool] inited
W2024-03-23T12:47:08.109081951Z [INFO][2024-03-23 12:47:08][role.py:69] - [Role] inited
]2024-03-23T12:47:08.109093867Z [INFO][2024-03-23 12:47:08][dungeon.py:56] - [Dungeon] inited
l2024-03-23T12:47:08.109162957Z [WARNING][2024-03-23 12:47:08][bdunit.py:42] - [BDunit] init failed, ignore
�2024-03-23T12:47:08.109207218Z [WARNING][2024-03-23 12:47:08][plugin_manager.py:148] - Failed to init BDUNIT, diabled. config.json not found
Y2024-03-23T12:47:08.109510963Z [INFO][2024-03-23 12:47:08][hello.py:24] - [Hello] inited
[2024-03-23T12:47:08.109594819Z [INFO][2024-03-23 12:47:08][finish.py:23] - [Finish] inited
�2024-03-23T12:47:08.362516713Z Hot reload failed, logging in normally, error={'BaseResponse': {'ErrMsg': '文件位置错误', 'Ret': -1002, 'RawMsg': 'No such file, loading login status failed.'}}
/2024-03-23T12:47:08.362588124Z Ready to login.
82024-03-23T12:47:08.362665048Z Getting uuid of QR code.
42024-03-23T12:47:08.639125856Z Downloading QR code.
N2024-03-23T12:47:08.704069842Z You can also scan QRCode in any website below:
s2024-03-23T12:47:08.704095810Z https://api.pwmqr.com/qrcode/create/?url=https://login.weixin.qq.com/l/wXXXXXg==
�2024-03-23T12:47:08.704100210Z https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?text=https://login.weixin.qq.com/l/XXXXXXog==
�2024-03-23T12:47:08.704103481Z https://api.qrserver.com/v1/create-qr-code/?size=400×400&data=https://login.weixin.qq.com/l/wXXXXXXXg==
u2024-03-23T12:47:08.704107833Z https://api.isoyu.com/qr/?m=1&e=L&p=20&url=https://login.weixin.qq.com/l/wXXXXXXg==
}2024-03-23T12:47:08.704111268Z █▀▀▀▀▀▀▀█████████▀▀████▀▀▀▀▀▀▀█
p2024-03-23T12:47:08.704126597Z █▀ ▀ █▄▀█ ▄▀ ▄▄█▀ █▄▄██
t2024-03-23T12:47:08.704129686Z █▀▄ ▄▀▀ ▄▀ ▄█▄ ██▄ ▀ ▀█▄██▀█
w2024-03-23T12:47:08.704132800Z █▄█ █▀▀▀▄▀▀██▄▀▀ ▄ ▄▄ █ ▄▀▀▄▄█
x2024-03-23T12:47:08.704135787Z ██ ▄▀▀ ▀▀ ▄▄▄█▀██ ▀█▀▄██▄▄▀ █▄█
s2024-03-23T12:47:08.704138702Z █ ▀▀ █▀▄▄█ █▀ ▄▀▄ ▄ ▄ ▄▄▀▄▄ █
x2024-03-23T12:47:08.704142621Z █ █▄█▄ ▀█▀▄▀█▀▀▄█▀▀▀▀▀ ▀█▀▀▀█
x2024-03-23T12:47:08.704146332Z █▀▀▀▀▀▀▀█▄▄▀▄▄▄▀▀▀ ▄ █▀█ ▀███
u2024-03-23T12:47:08.704149104Z █ █▀▀▀█ ██▀█ ▀▀ ▄██ ▀▀▀ ▀█▀▄█
q2024-03-23T12:47:08.704151876Z █ █ █ ██ ▄▀ ▀▀ ▄▄▄▀ ▀▀▀ ▀▄█
y2024-03-23T12:47:08.704154765Z █ ▀▀▀▀▀ █▀▄██▀▀█▄█▀ ▀█▄▄▀▄▄ █▄█
}2024-03-23T12:47:08.704157611Z ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
C2024-03-23T12:47:46.674991904Z Please press confirm on your phone.
R2024-03-23T12:48:05.917225450Z Loading the contact, this may take a little while.
�2024-03-23T12:48:06.918121651Z [INFO][2024-03-23 12:48:06][wechat_channel.py:131] - Wechat login success, user_id: @XXXXXXXX44c8af4f06c6b4, nickname: biubiu
42024-03-23T12:48:06.918151486Z Start auto replying.
B2024-03-23T12:48:29.698755557Z Traceback (most recent call last):
�2024-03-23T12:48:29.698828732Z File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
J2024-03-23T12:48:29.698847262Z httplib_response = self._make_request(
�2024-03-23T12:48:29.698860846Z File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
;2024-03-23T12:48:29.698873200Z six.raise_from(e, None)
H2024-03-23T12:48:29.698884212Z File "
同样问题,请问解决了吗?
"single_chat_prefix": ["bot", "@bot"], 前面加上口令呢bot或者@bot
同样RIP
我测试过了,回复的内容太长了,微信聊天窗口只能接受2048个汉字。要把长内容分隔成几段
需要先加上触发前缀,触发前缀是由"single_chat_prefix": ["bot", "@bot"], 设定的