debug.py 273 B

12345678910111213
  1. from .providers.types import ProviderType
  2. logging: bool = False
  3. version_check: bool = True
  4. last_provider: ProviderType = None
  5. last_model: str = None
  6. version: str = None
  7. log_handler: callable = print
  8. logs: list = []
  9. def log(text):
  10. if logging:
  11. log_handler(text)