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

Maximum context length #6

Closed
ovpn-dev opened this issue Jan 16, 2024 · 1 comment
Closed

Maximum context length #6

ovpn-dev opened this issue Jan 16, 2024 · 1 comment

Comments

@ovpn-dev
Copy link

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

How can i fix this? Any pointers please

@rahul2002m
Copy link
Owner

Hi @ovpn-dev,
To solve this issue, you can use the GPT-Turbo 16K model, which supports up to 16,000 tokens. If you need more, consider using GPT-4o, which supports up to 128,000 tokens.

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

2 participants