mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
testing new ApiKeyNotDefinedError in CI
This commit is contained in:
5
pilot/helpers/exceptions/ApiKeyNotDefinedError.py
Normal file
5
pilot/helpers/exceptions/ApiKeyNotDefinedError.py
Normal file
@@ -0,0 +1,5 @@
|
||||
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!")
|
||||
Reference in New Issue
Block a user