gpt4free/g4f/debug.py
2024-11-19 17:25:40 +01:00

13 lines
273 B
Python

from .providers.types import ProviderType
logging: bool = False
version_check: bool = True
last_provider: ProviderType = None
last_model: str = None
version: str = None
log_handler: callable = print
logs: list = []
def log(text):
if logging:
log_handler(text)