feat: enhance model version context with file metadata

- Rename `preview_overrides` to `version_context` to better reflect expanded purpose
- Add file_path and file_name fields to version serialization
- Update method names and parameter signatures for consistency
- Include file metadata from cache in version context building
- Maintain backward compatibility with existing preview URL functionality

The changes provide more comprehensive version information including file details while maintaining existing preview override behavior.
This commit is contained in:
Will Miao
2025-10-26 08:53:53 +08:00
parent 9ca2b9dd56
commit 795b9e8418
20 changed files with 1542 additions and 51 deletions

View File

@@ -853,13 +853,55 @@
"tabs": {
"examples": "דוגמאות",
"description": "תיאור המודל",
"recipes": "מתכונים"
"recipes": "מתכונים",
"versions": "גרסאות"
},
"loading": {
"exampleImages": "טוען תמונות דוגמה...",
"description": "טוען תיאור מודל...",
"recipes": "טוען מתכונים...",
"examples": "טוען דוגמאות..."
"examples": "טוען דוגמאות...",
"versions": "טוען גרסאות..."
},
"versions": {
"heading": "גרסאות המודל",
"copy": "נהל את כל הגרסאות של המודל הזה במקום אחד.",
"media": {
"placeholder": "אין תצוגה מקדימה"
},
"labels": {
"unnamed": "גרסה ללא שם",
"noDetails": "אין פרטים נוספים"
},
"badges": {
"current": "גרסה נוכחית",
"inLibrary": "בספרייה",
"newer": "גרסה חדשה יותר",
"ignored": "התעלם"
},
"actions": {
"download": "הורדה",
"delete": "מחיקה",
"ignore": "התעלם",
"unignore": "בטל התעלמות",
"resumeModelUpdates": "המשך עדכונים עבור מודל זה",
"ignoreModelUpdates": "התעלם מעדכונים עבור מודל זה",
"viewLocalVersions": "הצג את כל הגרסאות המקומיות",
"viewLocalTooltip": "יגיע בקרוב"
},
"empty": "אין עדיין היסטוריית גרסאות למודל זה.",
"error": "טעינת הגרסאות נכשלה.",
"missingModelId": "למודל זה אין מזהה מודל של Civitai.",
"confirm": {
"delete": "למחוק גרסה זו מהספרייה שלך?"
},
"toast": {
"modelIgnored": "העדכונים עבור מודל זה נוגבו",
"modelResumed": "מעקב העדכונים חודש",
"versionIgnored": "העדכונים עבור גרסה זו נוגבו",
"versionUnignored": "הגרסה הופעלה מחדש",
"versionDeleted": "הגרסה נמחקה"
}
}
}
},