Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.63k stars 701 forks source link

Bing is Broken #360

Closed fmunim closed 1 year ago

fmunim commented 1 year ago

Getting this when trying to switch. I have my cookies.json set

Traceback (most recent call last):
  File "/home/xxx/xxx/src/bot.py", line 113, in chat_model
    client.chatbot = client.get_chatbot_model()
  File "/home/xxx/xxx/src/aclient.py", line 51, in get_chatbot_model
    return EdgeChatbot(cookiePath='./cookies.json')
TypeError: Chatbot.__init__() got an unexpected keyword argument 'cookiePath'
Zero6992 commented 1 year ago

fixed!

fmunim commented 1 year ago

@Zero6992 Another error now.


Traceback (most recent call last):
  File "/xx/xx/xx/src/aclient.py", line 73, in send_message
    response = f"{response}{await responses.bing_handle_response(user_message, self)}"
  File "/xx/xx/xx/src/responses.py", line 21, in bing_handle_response
    return responseMessage[1]["item"]["messages"][1]["text"]
KeyError: 'text'```