refactor: Simplify model download handling by consolidating download logic and updating parameter usage

This commit is contained in:
Will Miao
2025-07-02 18:25:42 +08:00
parent 9d8b7344cd
commit d7cb546c5f
7 changed files with 25 additions and 186 deletions

View File

@@ -267,7 +267,7 @@ class CivitaiClient:
# Replace index with modelId
if 'index' in result:
del result['index']
result['modelId'] = model_id
result['modelId'] = int(model_id)
# Add model field with metadata from top level
result['model'] = {