Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.6k stars 699 forks source link

gpt-4 is not working #439

Closed TaijiMonster closed 9 months ago

TaijiMonster commented 11 months ago

I am already on plus paid subscription and according to openai website, api for gpt-4 has been turned on but still getting error: ERROR MESSAGE: 404 Not Found { "error": { "message": "The model: gpt-4 does not exist", "type": "invalid_request_error", "param": null, "code": "model_not_found" } }

Is gpt-4 using the new api URL?

mrostamii commented 11 months ago

The same happened on my instance with the latest version (main branch):

Message:

ERROR: Something went wrong, please try again later!

ERROR MESSAGE: 404 Not Found {
"error": {
"message": "The model: `gpt-4` does not exist",
"type": "invalid_request_error",
"param": null,
"code": "model_not_found"
}
}

Log:

Traceback (most recent call last):
  File "/DiscordBot/src/aclient.py", line 111, in send_message
    response = f"{response}{await responses.official_handle_response(user_message, self)}"
  File "/DiscordBot/src/responses.py", line 8, in official_handle_response
    return await sync_to_async(client.chatbot.ask)(message)
  File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 448, in __call__
    ret = await asyncio.wait_for(future, timeout=None)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
    return await fut
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/asgiref/sync.py", line 490, in thread_handler
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/revChatGPT/V3.py", line 391, in ask
    full_response: str = "".join(response)
  File "/usr/local/lib/python3.10/site-packages/revChatGPT/V3.py", line 244, in ask_stream
    raise t.APIConnectionError(
revChatGPT.typings.APIConnectionError: 404 Not Found {
    "error": {
        "message": "The model: `gpt-4` does not exist",
        "type": "invalid_request_error",
        "param": null,
        "code": "model_not_found"
    }
}
Anonymous78e commented 11 months ago

same

mrostamii commented 11 months ago

I can use the GPT-4 API after I got the email from OpenAI that my organization account has received this upgrade. But, it seems it's still GPT-3 since I asked a question about its version!

Zero6992 commented 9 months ago

I can use the GPT-4 API after I got the email from OpenAI that my organization account has received this upgrade. But, it seems it's still GPT-3 since I asked a question about its version!

This is the normal behavior of the GPT-4 API because its model is still based on GPT-3 and it hasn't been undergone pre-instruction like the GPT-4 on the website