refactor: enhance recipe fingerprint calculation and return detailed recipe information; remove unnecessary console logs in import managers

This commit is contained in:
Will Miao
2025-05-08 16:54:49 +08:00
parent 92fdc16fe6
commit 75a95f0109
4 changed files with 12 additions and 12 deletions

View File

@@ -170,8 +170,6 @@ export class ImageProcessor {
// Get recipe data from response
this.importManager.recipeData = await response.json();
console.log('Recipe data:', this.importManager.recipeData);
// Check if we have an error message
if (this.importManager.recipeData.error) {
throw new Error(this.importManager.recipeData.error);
@@ -184,11 +182,6 @@ export class ImageProcessor {
throw new Error('No LoRA information found in this image');
}
// Store generation parameters if available
if (this.importManager.recipeData.gen_params) {
console.log('Generation parameters found:', this.importManager.recipeData.gen_params);
}
// Find missing LoRAs
this.importManager.missingLoras = this.importManager.recipeData.loras.filter(
lora => !lora.existsLocally