mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat(metadata): enhance model processing with CivitAI metadata checks and new fields for archive DB status
This commit is contained in:
@@ -33,20 +33,6 @@ export async function loadExampleImages(images, modelHash) {
|
||||
const params = `model_hash=${modelHash}`;
|
||||
|
||||
const response = await fetch(`${endpoint}?${params}`);
|
||||
if (!response.ok) {
|
||||
// Try to parse error message from backend
|
||||
let errorMsg = `HTTP error ${response.status}`;
|
||||
try {
|
||||
const errorData = await response.json();
|
||||
if (errorData && errorData.error) {
|
||||
errorMsg = errorData.error;
|
||||
}
|
||||
} catch (e) {
|
||||
// Ignore JSON parse error
|
||||
}
|
||||
console.warn("Failed to get example files:", errorMsg);
|
||||
return;
|
||||
}
|
||||
const result = await response.json();
|
||||
|
||||
if (result.success) {
|
||||
|
||||
Reference in New Issue
Block a user