Normalize Hugging Face and CivitAI model URLs #7

Open
opened 2026-06-16 21:39:46 +02:00 by vince · 0 comments
Owner

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.

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.
vince added the
comfyui
mvp
labels 2026-06-16 21:42:28 +02:00
vince added this to the v0.1 MVP milestone 2026-06-16 21:42:29 +02:00
Sign in to join this conversation.
No description provided.