acheong08/ChatGPT

[Bug]: 应该是chat.openai新更新的json返回的格式,导致了现在只有message_id,没message这个字段了

zhongqian97 opened this issue · 3 comments

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

正常使用

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...1

What should have happened?

正常使用

Version where the problem happens

正常使用

What Python version are you running this with?

No response

What is your operating system ?

MacOS

Command Line Arguments

正常使用

Console logs

2023-07-20 22:39:10 chatgpt-server-flask_app-1  |   File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 759, in ask
2023-07-20 22:39:10 chatgpt-server-flask_app-1  |     yield from self.post_messages(
2023-07-20 22:39:10 chatgpt-server-flask_app-1  |   File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 712, in post_messages
2023-07-20 22:39:10 chatgpt-server-flask_app-1  |     yield from self.__send_request(
2023-07-20 22:39:10 chatgpt-server-flask_app-1  |   File "/usr/local/lib/python3.10/site-packages/revChatGPT/V1.py", line 578, in __send_request
2023-07-20 22:39:10 chatgpt-server-flask_app-1  |     raise ValueError(f"Field missing. Details: {str(line)}")
2023-07-20 22:39:10 chatgpt-server-flask_app-1  | ValueError: Field missing. Details: {'conversation_id': '98b9bde9-237a-4575-a831-87f0b854c906', 'message_id': '95a74af5-c795-42b2-8031-8608cb235c5e', 'is_completion': False, 'moderation_response': {'flagged': False, 'blocked': False, 'moderation_id': 'modr-7eP65TkRgah0ykJWZoDAzVQCxhuFF'}}

Additional information

No response

you need to update the library, it's because you're using a former version ; just had it with 6.7.6 and updating to 6.8.6 solved the issue

@Nadeus
pip uninstall revChatGPT
and then reistall
pip install revChatGPT==6.8.6

didnt work. the library u mean to update of the src or any other?

I mean now I have another issue (our system have detected unusual activity...), but at least I stopped getting this error message.

I just updated to the latest version using pip, didn't do something specific apart from this