terry3041 / pyChatGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
GNU General Public License v3.0
1.35k stars 255 forks source link

Update pyChatGPT.py #152

Open Kolhax opened 1 year ago

Kolhax commented 1 year ago

fix: https://github.com/terry3041/pyChatGPT/issues/151

shijiale0609 commented 1 year ago

Here is what I find a new error report.

ValueError Traceback (most recent call last) Cell In[2], line 1 ----> 1 resp = api.send_message("Hello, tell me three jokes")

File ~\anaconda3\envs\openai\lib\site-packages\pyChatGPT\pyChatGPT.py:476, in ChatGPT.send_message(self, message, stream) 474 return {'message': content, 'conversation_id': conversation_id} 475 else: --> 476 raise ValueError('Could not extract conversation ID')

ValueError: Could not extract conversation ID