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

Error: HTTP error! status: 400 #44

Open
raufbisov opened this issue Jun 24, 2023 · 3 comments
Open

Error: HTTP error! status: 400 #44

raufbisov opened this issue Jun 24, 2023 · 3 comments
Assignees

Comments

@raufbisov
Copy link

After 15 minutes of using ChatGPT it responds with "Error: HTTP error! status: 400"
image
There is a workaround where you disable the context feature (the green button in the upper right). Still, it would be nice if I could keep this feature.
image

@vasilecampeanu
Copy link
Owner

I think this is caused because I haven't set a limit for the context of the chat. So, every time you ask something, all the previous messages will be sent to the API. ChatGPT has a limited context of 4096 tokens, so exceeding that limit will result in an error. This issue will be fixed, but until 7 July, I am occupied with exams.

@vasilecampeanu vasilecampeanu self-assigned this Jun 25, 2023
@BumbleBeeElegy
Copy link

BumbleBeeElegy commented Jul 23, 2023

+1 to this request. When working through some complex conversations that build on each other, that context is really important.

I'm really enjoying this extension so far. 😄

@zachshallbetter
Copy link

zachshallbetter commented Jul 30, 2023

Attached response error and related issue #30

{
  "error": {
    "message": "This model's maximum context length is 4097 tokens. However, you requested 4610 tokens (1610 in the messages, 3000 in the completion). Please reduce the length of the messages or completion.",
    "type": "invalid_request_error",
    "param": "messages",
    "code": "context_length_exceeded"
  }
}

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

4 participants