Skip to content

List of Models available #12

Description

@zeronyk

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 ChatGPT

bot = 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions