CivitAI: add models from civitai.com / civitai.red links
Paste a CivitAI model link (civitai.com, .red or .green), a download link or an AIR id into "Add model": pick a version and its files, and whether to follow new versions. The model is stored as source "civitai" with repoId civitai/<modelId>, pinned to the version id, in the folder civitai/<id>-<name>; files keep CivitAI's SHA-256 for deep verify. Early access and creator-required logins are caught before anything is queued. Migration 0027 adds models.display_name, nsfw and source_card, and model_files.civitai (file id and attributes). The model page links to CivitAI instead of the Hub, and Hub checks, updates and adding files are refused for CivitAI models for now. The worker fails CivitAI download jobs until it can run them (next step). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
765dac2ed2
commit
a1acd8c0a5
19 files changed
+2276
-16
No files matched your search
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE `model_files` ADD `civitai` text;--> statement-breakpoint
|
||||
ALTER TABLE `models` ADD `display_name` text;--> statement-breakpoint
|
||||
ALTER TABLE `models` ADD `nsfw` integer DEFAULT false NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE `models` ADD `source_card` text;
|
||||
File diff suppressed because it is too large.
Load diff
@@ -190,6 +190,13 @@
|
||||
"when": 1794093954553,
|
||||
"tag": "0026_local_readme",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 27,
|
||||
"version": "6",
|
||||
"when": 1794319719546,
|
||||
"tag": "0027_civitai",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user