gg / g4f /debug.py
mfoud444's picture
first commit
79859e3
raw
history blame
273 Bytes
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)