Will Miao
d0fe28cfe2
fix(recipe): validate modelVersionId before fetching hash from cache or Civitai
2025-09-28 09:18:59 +08:00
Will Miao
656e3e43be
fix(imports): update import paths for ensure_settings_file to use relative imports
2025-09-28 08:40:09 +08:00
pixelpaws
88d5caf642
feat(settings): migrate settings to user config dir
2025-09-27 22:22:15 +08:00
pixelpaws
1684978693
Merge pull request #491 from willmiao/codex/replace-spaces-in-embedding-paths
...
Fix embedding relative paths by replacing spaces
2025-09-26 09:06:56 +08:00
pixelpaws
8e4927600f
fix(embeddings): replace spaces in relative paths
2025-09-26 09:02:46 +08:00
pixelpaws
e7316b3389
fix(civitai): strip comfy metadata from images
2025-09-26 08:55:46 +08:00
Will Miao
da52e5b9dd
fix(settings): improve logic for auto-setting default root paths based on folder presence
2025-09-25 10:56:09 +08:00
Will Miao
6c3424029c
fix(recipe image): optimize image saving and update PNG metadata handling, fixes #481
2025-09-25 10:43:10 +08:00
Will Miao
0d0988c090
feat: add functionality to attach model files to version data in SQLiteModelMetadataProvider
2025-09-24 10:55:55 +08:00
Will Miao
12c88835f2
refactor: enhance model version retrieval logic in CivitaiClient, fixes #460
2025-09-24 09:16:02 +08:00
pixelpaws
219cd242db
Merge pull request #467 from willmiao/codex/migrate-frontend-settings-to-backend
...
feat(settings): centralize settings loading and snake_case keys
2025-09-23 22:16:10 +08:00
Will Miao
656f1755fd
feat: add cleanup example image folders functionality and UI integration
2025-09-23 20:35:35 +08:00
pixelpaws
8aa76ce5c1
feat(settings): centralize frontend settings on backend
2025-09-23 20:28:32 +08:00
pixelpaws
6054d95e85
Update py/services/model_query.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-23 19:25:12 +08:00
pixelpaws
aaad270822
feat(example-images): add use case orchestration
2025-09-23 11:47:12 +08:00
pixelpaws
42872e6d2d
feat(recipes): expose recipe scanner mutation apis
2025-09-22 13:45:40 +08:00
pixelpaws
097a68ad18
refactor(recipes): introduce dedicated services for handlers
2025-09-22 13:25:21 +08:00
Will Miao
c3b9c73541
refactor: remove ModelRouteUtils usage and implement filtering directly in services
2025-09-22 09:09:40 +08:00
pixelpaws
08baf884d3
refactor(routes): migrate lifecycle mutations to service
2025-09-22 08:28:30 +08:00
pixelpaws
c063854b51
feat(routes): extract orchestration use cases
2025-09-22 05:25:27 +08:00
pixelpaws
21772feadd
refactor(routes): extract route utilities into services
2025-09-21 23:34:46 +08:00
Will Miao
2d00cfdd31
refactor: enhance BaseModelService initialization and improve filtering logic
2025-09-21 23:13:30 +08:00
Will Miao
1022b07f64
feat: enhance model metadata provider with import error handling and mock setup for tests
2025-09-21 19:57:49 +08:00
Will Miao
1610048974
refactor(metadata): update model fetching methods to return error messages alongside results
2025-09-19 16:36:34 +08:00
Will Miao
67b274c1b2
feat(settings): add 'show_only_sfw' setting to manage content visibility
2025-09-18 21:55:21 +08:00
Will Miao
ded17c1479
feat(routes): add model versions status endpoint and enhance metadata retrieval
2025-09-17 22:06:59 +08:00
Will Miao
86074c87d7
refactor(downloader): update download_to_memory calls to include response headers
2025-09-15 19:24:09 +08:00
Will Miao
6f9245df01
refactor(downloader): enhance download_to_memory to return response headers and improve error handling
2025-09-15 18:53:04 +08:00
Will Miao
9366d3d2d0
feat: add API endpoint for fetching application settings and update frontend settings management
2025-09-14 22:57:17 +08:00
Will Miao
6b606a5cc8
refactor(CivArchiveModelMetadataProvider): remove session management and use downloader for HTTP requests
2025-09-13 20:04:41 +08:00
Will Miao
125fdecd61
fix: handle missing download URL for primary file in metadata
2025-09-13 09:03:34 +08:00
Will Miao
d05076d258
feat: add CivArchive metadata provider and support for optional source parameter in downloads
2025-09-12 21:13:15 +08:00
Will Miao
00b77581fc
refactor(Downloader): change logger info statements to debug level for proxy usage
2025-09-12 15:20:34 +08:00
Will Miao
897787d17c
refactor(AutoComplete): simplify search term extraction and insertion logic
2025-09-12 14:35:25 +08:00
Will Miao
a0c2d9b5ad
refactor: change logger info statements to debug level for improved logging granularity
2025-09-12 11:48:59 +08:00
Will Miao
e713bd1ca2
feat: add app-level proxy settings with UI integration and session management, fixes #382
2025-09-12 11:22:45 +08:00
Will Miao
beb8ff1dd1
refactor(ModelFileService): enhance auto-organize logic to track source directories for cleanup, see #407
2025-09-11 23:02:30 +08:00
Will Miao
6a8f0867d9
refactor: migrate auto_organize_models logic to service layer with dependency injection
2025-09-11 22:37:46 +08:00
Will Miao
0d33884052
refactor(ModelScanner): remove unused metadata fetching logic from model processing
2025-09-11 12:33:34 +08:00
Will Miao
a7df8ae15c
feat(civitai_client): enrich model version info with additional metadata
2025-09-10 23:28:19 +08:00
Will Miao
47ce0d0fe2
fix(model_scanner): comment out fetch missing metadata call to prevent potential issues
2025-09-10 22:08:44 +08:00
Will Miao
4ee5b7481c
fix(downloader): set socket read timeout to 5 minutes for improved stability during large downloads
2025-09-10 18:49:35 +08:00
Will Miao
a4fbeb6295
feat(metadata): update metadata archive management and remove provider priority settings
2025-09-10 15:55:29 +08:00
Will Miao
68f8871403
feat(metadata): add source tracking for SQLite metadata and implement Civitai API metadata validation
2025-09-10 11:20:58 +08:00
Will Miao
6fd74952b7
Refactor metadata handling to use unified provider system
...
- Replaced direct usage of Civitai client with a fallback metadata provider across all recipe parsers.
- Updated metadata service to improve initialization and error handling.
- Enhanced download manager to utilize a downloader service for file operations.
- Improved recipe scanner to fetch model information through the new metadata provider.
- Updated utility functions to streamline image downloading and processing.
- Added comprehensive logging and error handling for better debugging and reliability.
- Introduced `get_default_metadata_provider()` for simplified access to the default provider.
- Ensured backward compatibility with existing APIs and workflows.
2025-09-09 20:57:45 +08:00
Will Miao
1ea468cfc4
feat(metadata): enhance metadata archive management with download progress and status updates
2025-09-09 15:24:28 +08:00
Will Miao
14721c265f
Refactor download logic to use unified downloader service
...
- Introduced a new `Downloader` class to centralize HTTP/HTTPS download management.
- Replaced direct `aiohttp` session handling with the unified downloader in `MetadataArchiveManager`, `DownloadManager`, and `ExampleImagesProcessor`.
- Added support for resumable downloads, progress tracking, and error handling in the new downloader.
- Updated methods to utilize the downloader's capabilities for downloading files and images, improving code maintainability and readability.
2025-09-09 10:34:14 +08:00
Will Miao
821827a375
feat(metadata): implement metadata archive management and update settings for metadata providers
2025-09-08 22:41:17 +08:00
Will Miao
9ba3e2c204
feat(metadata): implement metadata providers and initialize metadata service
...
- Added ModelMetadataProvider and CivitaiModelMetadataProvider for handling model metadata.
- Introduced SQLiteModelMetadataProvider for SQLite database integration.
- Created metadata_service.py to initialize and configure metadata providers.
- Updated CivitaiClient to register as a metadata provider.
- Refactored download_manager to use the new download_file method.
- Added SQL schema for models, model_versions, and model_files.
- Updated requirements.txt to include aiosqlite.
2025-09-08 22:41:17 +08:00
Will Miao
d287883671
refactor(civitai): remove legacy get_model_description and _get_hash_from_civitai methods
2025-09-08 22:41:17 +08:00