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

bing接口失效 #441

Open
imhut opened this issue Jul 28, 2023 · 1 comment
Open

bing接口失效 #441

imhut opened this issue Jul 28, 2023 · 1 comment

Comments

@imhut
Copy link

imhut commented Jul 28, 2023

根据https://github.com/acheong08/EdgeGPT修改了部分代码,始终也没办法不报错

"text":{"content":" hi"},"robotCode":"dingajrky8i9mzle4wjn","msgtype":"text"}'
[2023-07-28 08:19:16,529] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(view_args)
File "/root/bot-on-anything/channel/dingtalk/dingtalk_channel.py", line 288, in chat
handler.chat(dd, data)
File "/root/bot-on-anything/channel/dingtalk/dingtalk_channel.py", line 205, in chat
reply = channel.handle(data)
File "/root/bot-on-anything/channel/dingtalk/dingtalk_channel.py", line 253, in handle
reply = super().build_reply_content(prompt, context)
File "/root/bot-on-anything/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/root/bot-on-anything/bridge/bridge.py", line 18, in fetch_reply_content
return model_factory.create_bot(type).reply(query, context)
File "/root/bot-on-anything/model/model_factory.py", line 29, in create_bot
from model.bing.new_bing_model import BingModel
File "/root/bot-on-anything/model/bing/new_bing_model.py", line 11, in
from model.bing.jailbroken_sydney import SydneyBot
File "/root/bot-on-anything/model/bing/jailbroken_sydney.py", line 14, in
class SydneyBot(Chatbot):
File "/root/bot-on-anything/model/bing/jailbroken_sydney.py", line 18, in SydneyBot
cookies: dict | None = None,
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
5
*** - - [28/Jul/2023 08:19:16] "POST / HTTP/1.1" 500 -

已经没能力继续修改了,希望能更新一下bing的代码

@imhut
Copy link
Author

imhut commented Sep 27, 2023

自己来回答,注释掉from model.bing.jailbroken_sydney import SydneyBot就行了,过了这么多天才有空搞这个问题,当时临门一脚放弃了。。。

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

1 participant