Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

List of Models available #12

Open
Open
Labels
bugSomething isn't working
@zeronyk

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

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp