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] max_token is too large #3195

Closed
1 of 3 tasks
Algorithm5838 opened this issue Nov 8, 2023 · 5 comments
Closed
1 of 3 tasks

[Bug] max_token is too large #3195

Algorithm5838 opened this issue Nov 8, 2023 · 5 comments

Comments

@Algorithm5838
Copy link
Contributor

Algorithm5838 commented Nov 8, 2023

Describe the bug
When I used the new gpt-3.5-turbo-1106 model with the updated default max_token value of 8192, I just sent "Hello", I encountered the following error:

{
  "error": {
    "message": "max_tokens is too large: 8192. This model supports at most 4096 completion tokens, whereas you provided 8192.",
    "type": "invalid_request_error",
    "param": "max_tokens",
    "code": null
  }
}

Which is strange because the new model should support 16k. The same thing happens with gpt-4-1106-preview. However, when I use the older version gpt-3.5-turbo-16k, it works flawlessly without any errors. But when I use gpt-4, I just sent "Hello", I get this error:

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

Deployment

  • Docker
  • Vercel
  • Server
@cutejun
Copy link

cutejun commented Nov 9, 2023

+1

1 similar comment
@xiangmingwu
Copy link

+1

@pmao-guess
Copy link

same problem , any one can help

@Yidadaa
Copy link
Collaborator

Yidadaa commented Nov 9, 2023

fixed

@Yidadaa Yidadaa closed this as completed Nov 9, 2023
@Algorithm5838
Copy link
Contributor Author

Please check the discussion #3208.

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

5 participants