mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-29 07:35:44 +01:00
6 lines
295 B
Python
6 lines
295 B
Python
class TokenLimitError(Exception):
|
|
def __init__(self, tokens_in_messages, max_tokens):
|
|
self.tokens_in_messages = tokens_in_messages
|
|
self.max_tokens = max_tokens
|
|
super().__init__(f"Token limit error happened with {tokens_in_messages}/{max_tokens} tokens in messages!")
|