- Notifications
You must be signed in to change notification settings - Fork23
Open
Description
Hi, thank you for creating this Tool.
I think the model parameter recently broke, or they changed the model names.
I was using ChatGPT with model="gpt-4" like one week ago and it worked just fine, however i just found that using model="gpt-4" returns now.
I assume there was a change from OpenAI, a list of all models would be usefull, but i have no idea how to get them.
from WebChatGPT import ChatGPTbot = ChatGPT( "[...]", model="gpt-4")response = bot.chat("hello")print(response)
File[....]utils.py:243, in get_message(response)
241 # print(json.dumps(response,indent=4))
242 assert isinstance(response, dict), "'response' should be of 'dict' data-type"
-->243 return response["message"]["content"]["parts"][0]
TypeError: 'NoneType' object is not subscriptable
When i read the post request from OpenAI it still sends `{"server_request_id":"84b130e05d9a6a73-TXL","model":"gpt-4","preflight_time_ms":20,....}`I am pretty sure that there is no response returned, but i am not sure how to fix it.