From b825a2ca37f1c43ca6fc4c83cc0739889854b3c0 Mon Sep 17 00:00:00 2001 From: George Panchuk Date: Fri, 17 Apr 2026 20:34:44 +0700 Subject: [PATCH] fix: add timeout for download from gcs --- fastembed/common/model_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastembed/common/model_management.py b/fastembed/common/model_management.py index 854f76b7..35e68236 100644 --- a/fastembed/common/model_management.py +++ b/fastembed/common/model_management.py @@ -99,7 +99,7 @@ def download_file_from_gcs(cls, url: str, output_path: str, show_progress: bool if os.path.exists(output_path): return output_path - response = requests.get(url, stream=True) + response = requests.get(url, stream=True, timeout=(10, 120)) # Handle HTTP errors if response.status_code == 403: