Normalize Hugging Face and CivitAI model URLs #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context:\nUsers often paste browser URLs instead of direct download URLs. Existing comfy-model-web already handles Hugging Face /blob/ and CivitAI modelVersionId URLs.\n\nRequirements:\n- Convert Hugging Face /blob/ file URLs to /resolve/ URLs.\n- Convert CivitAI model pages with modelVersionId to /api/download/models/{id}.\n- Preserve fileId and relevant query parameters.\n- Redact tokens in logs and UI.\n- Unit test URL normalization and redaction.\n\nAcceptance criteria:\n- Known examples from comfy-model-web tests pass in the new implementation.\n- Token values never appear in job logs.