We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43c13f commit bed108fCopy full SHA for bed108f
api/src/serge/routers/model.py
@@ -146,7 +146,7 @@ async def download_model(model_name: str):
146
model_path = os.path.join(WEIGHTS, f"{model_name}.bin")
147
148
# Create an aiohttp session with timeout settings
149
- timeout = aiohttp.ClientTimeout(total=300)
+ timeout = aiohttp.ClientTimeout(total=None, connect=300, sock_read=300)
150
async with aiohttp.ClientSession(timeout=timeout) as session:
151
# Start the download and add to active_downloads
152
download_task = asyncio.create_task(download_file(session, model_url, temp_model_path))
0 commit comments