refactor: Clean up and optimize import modal and related components, removing unused styles and improving path selection functionality

This commit is contained in:
Will Miao
2025-08-20 23:12:38 +08:00
parent af4cbe2332
commit 03b6f4b378
7 changed files with 235 additions and 176 deletions

View File

@@ -628,15 +628,6 @@ class ModelRouteUtils:
if not result.get('success', False):
error_message = result.get('error', 'Unknown error')
# Return 401 for early access errors
if 'early access' in error_message.lower():
logger.warning(f"Early access download failed: {error_message}")
return web.json_response({
'success': False,
'error': f"Early Access Restriction: {error_message}",
'download_id': download_id
}, status=401)
return web.json_response({
'success': False,
'error': error_message,