gpt4free/g4f/debug.py

13 lines
273 B
Python
Raw Normal View History

from .providers.types import ProviderType
logging: bool = False
version_check: bool = True
last_provider: ProviderType = None
last_model: str = None
2024-11-19 17:26:03 +03:00
version: str = None
log_handler: callable = print
logs: list = []
2024-11-19 17:26:03 +03:00
def log(text):
if logging:
log_handler(text)