summaryrefslogblamecommitdiffstats
path: root/g4f/debug.py
blob: c107cbdf97941386cda6a47ec70efda4470c1b97 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                         
 

                          
                                  
                      

                             
               



                        
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)