#context_length_exceeded error with GPT-4

5 messages · Page 1 of 1 (latest)

tacit relic
#

Doesn't GPT-4 have an allowance of 8k tokens?
I encountered the following error when using GPT-4.

{
  "error": {
    "message": "This model's maximum context length is 4097 tokens. However, your messages resulted in 5553 tokens. Please reduce the length of the messages.",
    "type": "invalid_request_error",
    "param": "messages",
    "code": "context_length_exceeded"
  }
}

I have verified the utilization of GPT-4 by examining the usage summary on my account page. gpt-4-0314 was the only model I used all day.

snow cipher
#

The only way to get to 8k tokens is on computer screen and you supposed to make work for at least 8 hours

tacit relic
#

What are you trying to say? Are you joking around?

blazing sonnet
#

Can you show me how you're sending the request?