| import warnings | |
| import logging | |
| # Suppress SSL warnings from urllib3 | |
| warnings.filterwarnings("ignore", message=".*urllib3 v2 only supports OpenSSL 1.1.1+.*") | |
| warnings.filterwarnings("ignore", message=".*LibreSSL.*") | |
| # Suppress PyTorch deprecation warnings | |
| warnings.filterwarnings( | |
| "ignore", message=".*torch.utils._pytree._register_pytree_node.*" | |
| ) | |
| warnings.filterwarnings( | |
| "ignore", message=".*Please use torch.utils._pytree.register_pytree_node.*" | |
| ) | |
| # Configure logging | |
| logging.basicConfig( | |
| level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s" | |
| ) | |
| # LLM API - GPT Clone | |
| # A ChatGPT-like API with SSE streaming support using free LLM models | |
| __version__ = "1.0.0" | |
| __author__ = "LLM API Team" | |