refactor: Update model_id and model_version_id types to integers and add validation in routes

This commit is contained in:
Will Miao
2025-07-09 14:21:49 +08:00
parent c692713ffb
commit 79011bd257
4 changed files with 57 additions and 17 deletions

View File

@@ -52,9 +52,6 @@ class WebSocketManager:
if not download_id:
# Generate a new download ID if not provided
download_id = str(uuid4())
logger.info(f"Created new download ID: {download_id}")
else:
logger.info(f"Using provided download ID: {download_id}")
# Store the websocket with its download ID
self._download_websockets[download_id] = ws