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.
This commit is contained in:
Will Miao
2025-09-08 10:33:59 +08:00
parent d287883671
commit 9ba3e2c204
8 changed files with 473 additions and 23 deletions

View File

@@ -487,7 +487,7 @@ class DownloadManager:
await progress_callback(3) # 3% progress after preview download
# Download model file with progress tracking
success, result = await civitai_client._download_file(
success, result = await civitai_client.download_file(
download_url,
save_dir,
os.path.basename(save_path),