mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-26 16:57:23 +01:00
updated __init__.py
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
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!")
|
||||
class ApiKeyNotDefinedError(Exception):
|
||||
def __init__(self, env_key: str):
|
||||
self.env_key = env_key
|
||||
super().__init__(f"API Key has not been configured: {env_key}")
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
from .AgentConvo import AgentConvo
|
||||
from .Project import Project
|
||||
from .ApiKeyNotDefinedError import ApiKeyNotDefinedError
|
||||
from .TokenLimitError import TokenLimitError
|
||||
from .TooDeepRecursionError import TooDeepRecursionError
|
||||
|
||||
Reference in New Issue
Block a user