awsr
09f5fc6e03
Update concurrent.futures imports
...
Python 3.14 adds `concurrent.interpreters` and we don't need to import that here.
2026-04-23 16:49:31 -07:00
Vladimir Mandic
f1304b3ba0
Merge pull request #4762 from awsr/hashcache
...
Update hash cache
2026-04-15 09:42:35 +02:00
Vladimir Mandic
c7521f4da4
Merge pull request #4756 from vladmandic/feat/civitai-base-models
...
feat(civitai): enrich base-model discovery with github constants
2026-04-15 09:34:04 +02:00
CalamitousFelicitousness
ac78d904b3
refactor(civitai): split base-model helpers into basemodels_civitai
...
Addresses #4756 review: keeps client_civitai focused on the HTTP client
surface. Behavior unchanged.
2026-04-14 23:26:01 +01:00
CalamitousFelicitousness
5d9b8d2e34
feat(civitai): enrich base-model discovery with github constants
...
CivitAI removed enum validation from /api/v1/models?baseModels=X (now
returns 200 with empty items on unknown values), which left the
base-model filter dropdown empty. Fix in two parts.
1. Point the base_models discovery probe at /images instead of /models.
/images still returns a ZodError with the full enum list (82 names
at time of writing). The existing parser handles the shape unchanged.
2. Also fetch civitai/civitai's base-model.constants.ts from GitHub and
merge per-name metadata (group, ecosystem, engine, family, hidden)
into a new base_models_info field on the response. The live probe
remains authoritative for which names exist; GitHub provides the
metadata and doubles as a fallback name list if the probe comes back
empty.
Backward compatible: the existing base_models list keeps the same
shape. Clients that want grouped dropdowns, hidden-flag filtering, or
image/video separation can consume base_models_info instead.
The GitHub fetch has a separate 6h cache since these constants change
much less often than the probes it sits alongside.
2026-04-14 23:26:01 +01:00
awsr
03486deca6
Support upcoming site frontend split
...
API endpoints are supposed to remain the same, so those don't need updating.
2026-04-14 12:46:12 -07:00
awsr
1647be96de
Minor function renaming
...
Cache no longer requires initialization.
2026-04-13 23:44:05 -07:00
awsr
e4aaed9eee
Improve init & data handling. Improve typing.
...
Minor usage change. Instead of setting the hash info directly, call `add_hash` to ensure proper data structure.
2026-04-13 23:44:05 -07:00
CalamitousFelicitousness
a9a33b2bfa
fix(civitai): probe /images for baseModels enum discovery
...
Civitai stopped validating baseModels on /api/v1/models (returns 200 with
empty items on unknown values), which left API clients without a way to
discover the values. Right now /images still does, I will get a separate
PR to put something more robust in place.
2026-04-13 22:46:52 +01:00
vladmandic
15c8b2b0c4
fixes from check-api
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-04-12 18:54:22 +02:00
awsr
ff247d8fd2
Merge branch 'dev' into RUF013
2026-03-24 07:12:51 -07:00
awsr
53598d40ab
RUF013 update
2026-03-23 22:59:32 -07:00
vladmandic
afe3786f5f
add unet/dir to networks
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-03-22 11:09:45 +01:00
vladmandic
760b0121bc
update register_api
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-03-20 08:07:05 +01:00
CalamitousFelicitousness
202862fb64
feat(civitai): wire subfolder resolution and sidecar metadata into download
...
Add base_model, model_id, version_id params to download_civit_model.
Call resolve_save_path when subfolder sorting is enabled. Pass model_id
and version_id to DownloadManager.enqueue so _fetch_sidecar downloads
metadata JSON and preview images alongside the model file. Extract
version_id from the download URL as fallback when not provided.
2026-03-20 04:33:20 +00:00
CalamitousFelicitousness
91d21eefb6
feat(civitai): allow tag-only and sort-only browsing
...
Relax the empty-query guard so search works with tag, sort, or period
alone. Skip exact-match name filtering when no keyword is provided so
browse results return the full API response.
2026-03-20 04:33:12 +00:00
vladmandic
4e1c1a6844
add secrets manager
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-03-17 13:56:55 +01:00
vladmandic
ea1abfe2ce
merge: modules/civitai
2026-03-17 11:07:51 +01:00
vladmandic
09e41b65d3
rename video_helper
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-03-13 12:22:53 +01:00
vladmandic
756b4599be
merge: modules/caption
...
Signed-off-by: vladmandic <mandic00@live.com >
2026-03-13 12:22:46 +01:00
vladmandic
3586ae90bc
merge: modules/civitai/__init__.py
2026-03-12 14:16:50 +01:00
Vladimir Mandic
f78f0eb4a5
refactor imports
2026-02-19 15:28:24 +01:00
Vladimir Mandic
d65a2d1ebc
ruff lint
2026-02-19 11:13:44 +01:00
Vladimir Mandic
e5c494f999
cleanup logger
2026-02-19 11:09:13 +01:00
Vladimir Mandic
a3074baf8b
unified logger
2026-02-19 09:46:42 +01:00
Vladimir Mandic
bfe014f5da
modernize typing
2026-02-19 09:15:37 +01:00
vladmandic
595b07aef4
update base models
...
Signed-off-by: vladmandic <mandic00@live.com >
2025-12-30 18:36:02 +01:00
awsr
dcb7164d30
Update readfile type safety
2025-12-17 16:43:54 -08:00
awsr
c22ca8d76e
Create and opt in to dict type safety from JSON
...
Opt in via the keyword-only argument `dict_only`
2025-12-17 13:18:13 -08:00
Vladimir Mandic
b71afb1c86
update optional packages
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-10-21 11:31:12 -04:00
Vladimir Mandic
d41bf3d673
add api to trigger civitai metadata update
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-09-21 20:06:45 -04:00
Vladimir Mandic
5b43c66a92
nunchaku sdxl and sdxl-turbo support
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-09-20 21:01:21 -04:00
Vladimir Mandic
9667fffd3a
fix download for sd15/sdxl reference models
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-09-20 19:39:43 -04:00
Vladimir Mandic
d351fdb98f
add more job state updates and update history tab
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-09-13 10:54:04 -04:00
Vladimir Mandic
175e9cbe29
cleanup/refactor state history
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-09-12 16:12:45 -04:00
Vladimir Mandic
11c72d5402
remove standardui previews
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-31 16:35:49 -04:00
Vladimir Mandic
7f46d08a2c
match network version
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-25 12:27:03 -04:00
Vladimir Mandic
752d636324
add /sdapi/v1/network
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-10 10:53:28 -04:00
Vladimir Mandic
09cc584089
civitai downloader batch download all versions
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-08 18:06:36 -04:00
Vladimir Mandic
a9c65c0e8c
move api-only to legacy options
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-06 19:27:57 -04:00
Vladimir Mandic
5fd44e473e
fix networks scan
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-06 06:21:17 -04:00
Vladimir Mandic
692c236831
modernui updates
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-05 13:28:55 -04:00
Vladimir Mandic
49e3ff163a
lint
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-04 15:53:43 -04:00
Vladimir Mandic
8aff68fe06
new models tab including civitai downloader
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-04 15:53:43 -04:00
Vladimir Mandic
66456f3b4f
civitai search redesign prototype
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2025-08-04 15:53:43 -04:00