We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When making API requests, receiving a 400 error due to prompt length exceeding maximum token limit.
Error in _get_completion: Error code: 400 {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'prompt is too long: 203073 tokens > 200000 maximum'}}
API requests should process successfully within token limits
Request fails because prompt length (203,073 tokens) exceeds maximum allowed tokens (200,000)
Token limits are a known constraint of the API. Need to implement proper handling.
The text was updated successfully, but these errors were encountered:
PR #226
Sorry, something went wrong.
No branches or pull requests
Description
When making API requests, receiving a 400 error due to prompt length exceeding maximum token limit.
Error Message
Expected Behavior
API requests should process successfully within token limits
Current Behavior
Request fails because prompt length (203,073 tokens) exceeds maximum allowed tokens (200,000)
Steps to Reproduce
Possible Solutions
Additional Context
Token limits are a known constraint of the API. Need to implement proper handling.
Labels
The text was updated successfully, but these errors were encountered: