mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
Add license resolution utilities and integrate license information into model metadata processing. The changes include: - Add `resolve_license_payload` function to extract license data from Civitai model responses - Integrate license information into model metadata in CivitaiClient and MetadataSyncService - Add license flags support in model scanning and caching - Implement CommercialUseLevel enum for standardized license classification - Update model scanner to handle unknown fields when extracting metadata values This ensures proper license attribution and compliance when working with Civitai models.
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"id": 2269146,
|
|
"modelId": 2004760,
|
|
"name": "v1.0 Illustrious",
|
|
"nsfwLevel": 1,
|
|
"trainedWords": ["PencilSketchDaal"],
|
|
"baseModel": "Illustrious",
|
|
"description": "<p>Illustrious. Your pencil may vary with your checkpoint. </p>",
|
|
"model": {
|
|
"name": "Pencil Sketch Anime",
|
|
"type": "LORA",
|
|
"nsfw": false,
|
|
"description": "description",
|
|
"tags": ["style"],
|
|
"allowNoCredit": true,
|
|
"allowCommercialUse": ["Sell"],
|
|
"allowDerivatives": true,
|
|
"allowDifferentLicense": true
|
|
},
|
|
"files": [
|
|
{
|
|
"id": 2161260,
|
|
"sizeKB": 223106.37890625,
|
|
"name": "Pencil-Sketch-Illustrious.safetensors",
|
|
"type": "Model",
|
|
"hashes": {
|
|
"SHA256": "2C70479CD673B0FE056EAF4FD97C7F33A39F14853805431AC9AB84226ECE3B82"
|
|
},
|
|
"primary": true,
|
|
"downloadUrl": "https://civitai.com/api/download/models/2269146",
|
|
"mirrors": {}
|
|
}
|
|
],
|
|
"images": [
|
|
{},
|
|
{}
|
|
],
|
|
"creator": {
|
|
"username": "Daalis",
|
|
"image": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/eb245b49-edc8-4ed6-ad7b-6d61eb8c51de/width=96/Daalis.jpeg"
|
|
}
|
|
}
|