Update README for CivitAI API key instructions, bump version to 0.7.1, and enhance error handling in API routes

This commit is contained in:
Will Miao
2025-02-20 08:29:03 +08:00
parent b7c8b11e98
commit 3fa8bae205
3 changed files with 13 additions and 1 deletions

View File

@@ -25,6 +25,14 @@ A web-based management interface designed to help you organize and manage your l
---
## **⚠ Important Note**: To use the CivitAI download feature, you'll need to:
1. Get your CivitAI API key from your profile settings
2. Add it to the LoRA Manager settings page
3. Save the settings
---
## Key Features
- 🚀 **High Performance**

View File

@@ -1,7 +1,7 @@
[project]
name = "comfyui-lora-manager"
description = "LoRA Manager for ComfyUI - Access it at http://localhost:8188/loras for managing LoRA models with previews and metadata integration."
version = "0.7.0"
version = "0.7.1"
license = {file = "LICENSE"}
dependencies = [
"aiohttp",

View File

@@ -498,6 +498,10 @@ class ApiRoutes:
relative_path=data.get('relative_path'),
progress_callback=progress_callback # Add progress callback
)
if not result.get('success', False):
return web.Response(status=500, text=result.get('error', 'Unknown error'))
return web.json_response(result)
except Exception as e:
logger.error(f"Error downloading LoRA: {e}")