You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error code: 400 - {'object': 'error', 'message': "This model's maximum context length is 131072 tokens. However, you requested 351430 tokens. Please reduce the length of the messages or completion.", 'type': 'BadRequestError', 'param': None, 'code': 400
#104
Open
guanzy2012 opened this issue
Jan 18, 2025
· 2 comments
Hey, does this error happen during testing OpenAI model? You need to first truncate the sequence using tiktoken to less than 131072 tokens and then call the model on the truncated input.
No description provided.
The text was updated successfully, but these errors were encountered: