zhayujie / bot-on-anything

Connect AI models (like ChatGPT-3.5/4.0, Baidu Yiyan, New Bing, Bard) to apps (like Wechat, public account, DingTalk, Telegram, QQ). 将 ChatGPT、必应、文心一言、谷歌Bard 等对话模型连接各类应用,如微信、公众号、QQ、Telegram、Gmail、Slack、Web、企业微信、飞书、钉钉等。
MIT License
3.87k stars 906 forks source link

接入bing时报错 #389

Open Angasky opened 1 year ago

Angasky commented 1 year ago

[INFO][2023-05-23 23:17:52][log.py:34] - [MultiChannel] Start up bing on terminal

Please input your question User: 123 Bot: [ERROR][2023-05-23 23:17:56][log.py:47] - [MultiChannel] Start up failed on terminal: cannot import name 'ChatHubRequest' from 'EdgeGPT' (C:\Users\angasky\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT.py) [ERROR][2023-05-23 23:17:56][log.py:45] - App startup failed! [ERROR][2023-05-23 23:17:56][log.py:50] - cannot import name 'ChatHubRequest' from 'EdgeGPT' (C:\Users\angasky\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT.py) Traceback (most recent call last): File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\app.py", line 42, in main start_process(channel_type[0], args.config) File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\app.py", line 23, in start_process raise e File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\app.py", line 20, in start_process channel.startup() File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\channel\terminal\terminal_channel.py", line 21, in startup for res in super().build_reply_content(prompt, context): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\channel\channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\bridge\bridge.py", line 18, in fetch_reply_content return model_factory.create_bot(type).reply(query, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\model\model_factory.py", line 29, in create_bot from model.bing.new_bing_model import BingModel File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\model\bing\new_bing_model.py", line 9, in from model.bing.jailbroken_sydney import SydneyBot File "C:\Users\angasky\Desktop\webot\bot-on-anything-master\model\bing\jailbroken_sydney.py", line 8, in from EdgeGPT import ChatHubRequest, Chatbot, Conversation, ChatHub ImportError: cannot import name 'ChatHubRequest' from 'EdgeGPT' (C:\Users\angasky\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT.py)

Peteroyu commented 1 year ago

导包问题,版本不兼容