Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 最新版本,ChatGPT还是一直显示。。。 #1571

Closed
1 task
kevinwu06 opened this issue May 17, 2023 · 10 comments
Closed
1 task

[Bug] 最新版本,ChatGPT还是一直显示。。。 #1571

kevinwu06 opened this issue May 17, 2023 · 10 comments

Comments

@kevinwu06
Copy link

已经更新到最新版本,发送消息后,chatgpt还是一直显示。。。

To Reproduce
Steps to reproduce the behavior:

  1. 显示已经是2023.5.17最新版本
  2. 已经填入api key
  3. 发送消息后,chatgpt一直显示。。。

Screenshots
屏幕截图 2023-05-17 163738
屏幕截图 2023-05-17 163708

Deployment

  • Vercel部署

Desktop (please complete the following information):

  • OS: windows
  • Browser: chrome
@Klauxs
Copy link

Klauxs commented May 17, 2023

+1

1 similar comment
@cailei1
Copy link

cailei1 commented May 17, 2023

+1

@cxwx
Copy link

cxwx commented May 17, 2023

+2

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 17, 2023

提供:

  • 浏览器控制台截图
  • vercel log 截图

@yanCode
Copy link
Contributor

yanCode commented May 17, 2023

chrome控制台有报错的话一些填上来。目前已知当后台报rate limit的错的时候,会一直显示。。。

{
    "error": {
        "message": "Rate limit reached for default-gpt-3.5-turbo in organization org-Jm7MpQ****HGfJpj on requests per min. Limit: 3 / min. Please try again in 20s. Contact us through our help center at help.openai.com if you continue to have issues. Please add a payment method to your account to increase your rate limit. Visit https://platform.openai.com/account/billing to add a payment method.",
        "type": "requests",
        "param": null,
        "code": null
    }
}

这个错误的http code是 429 Too Many Requests
这个原因是对于报错的http code,现有logic只处理了 401

 if (res.status === 401) {
              let extraInfo = { error: undefined };
              try {
                extraInfo = await res.clone().json();
              } catch {}

              responseText += "\n\n" + Locale.Error.Unauthorized;

              if (extraInfo.error) {
                responseText += "\n\n" + prettyObject(extraInfo);
              }

              return finish();
            }

@Yidadaa 应该在逻辑里把这些可能的报错的http code都cover住。

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 17, 2023

@yanCode 看起来靠谱,应该判断一下 res.status !== 200 的情况

@kevinwu06
Copy link
Author

屏幕截图 2023-05-17 172137
屏幕截图 2023-05-17 172617
屏幕截图 2023-05-17 172705

@lovenjz
Copy link

lovenjz commented May 17, 2023

同样的问题

@billgeneral
Copy link

同样问题

@billgeneral
Copy link

@Yidadaa 这个问题要怎样解决?

Yidadaa added a commit that referenced this issue May 17, 2023
jinker pushed a commit to jinker/ChatGPT-Next-Web that referenced this issue Jun 19, 2023
Jeremy-Hibiki pushed a commit to Jeremy-Hibiki/ChatGPT-Next-Web that referenced this issue Sep 5, 2023
Jeremy-Hibiki pushed a commit to Jeremy-Hibiki/ChatGPT-Next-Web that referenced this issue Sep 5, 2023
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue May 16, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants