Download app/utils/__init__.py from Song4612/gemini: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/Song4612/gemini/resolve/main/app/utils/__init__.py
- Command line
-
hf download hf://spaces/Song4612/gemini/app/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Song4612/gemini/resolve/main/app/utils/__init__.py
772 Bytes
| # Utils package initialization | |
| from app.utils.logging import logger, log_manager, format_log_message,log | |
| from app.utils.api_key import APIKeyManager, test_api_key | |
| from app.utils.error_handling import handle_gemini_error, translate_error, handle_api_error | |
| from app.utils.rate_limiting import protect_from_abuse | |
| from app.utils.cache import ResponseCacheManager, generate_cache_key, cache_response | |
| from app.utils.request import ActiveRequestsManager, check_client_disconnect | |
| from app.utils.stats import clean_expired_stats, update_api_call_stats | |
| from app.utils.response import create_chat_response, create_error_response, create_response, handle_exception | |
| from app.utils.version import check_version | |
| from app.utils.maintenance import handle_exception, schedule_cache_cleanup |