Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

fix KeyError: 'messages' #124

Merged
merged 1 commit into from
Mar 15, 2023
Merged

fix KeyError: 'messages' #124

merged 1 commit into from
Mar 15, 2023

Conversation

jiayuqi7813
Copy link
Contributor

fix this issue #123

The reason for this problem is that new bing will send a new json upon request, so just judge the code

image

its work
image

@tom68-ll
Copy link

Hello, could you please be more detailed, I'm not sure where to make the changes. Thank you very much!

@jiayuqi7813
Copy link
Contributor Author

Hello, could you please be more detailed, I'm not sure where to make the changes. Thank you very much!

In line 262 of the EdgeGPT.py file, replace it with
if response.get("type") == 1 and response["arguments"][0].get("messages"):

@tom68-ll
Copy link

It works, thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants