diff --git a/py/routes/lora_routes.py b/py/routes/lora_routes.py index f88d03ec..84776eb5 100644 --- a/py/routes/lora_routes.py +++ b/py/routes/lora_routes.py @@ -345,7 +345,7 @@ class LoraRoutes(BaseModelRoutes): success = await self.service.scanner.move_model(file_path, target_path) if success: - return web.json_response({'success': True}) + return web.json_response({'success': True, 'new_file_path': target_file_path}) else: return web.Response(text='Failed to move model', status=500) diff --git a/static/js/api/baseModelApi.js b/static/js/api/baseModelApi.js index 50a1af16..692a83db 100644 --- a/static/js/api/baseModelApi.js +++ b/static/js/api/baseModelApi.js @@ -515,7 +515,7 @@ class ModelApiClient { // Return new file path if move succeeded if (result.success) { - return targetPath; + return result.new_file_path; } return null; }