Commit Graph

5628 Commits

Author SHA1 Message Date
Talmaj Marinc a7b63915dc Improve logging for failed download links. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 5d8b3690ff Add read-repos to hf oauth scope. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 515d73f6f2 Update tests. 2026-07-13 00:24:37 +02:00
Talmaj Marinc a14cc66712 Add obfuscation for stored creds. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 09d55ba54a Fix the port for oauth server. 2026-07-13 00:24:37 +02:00
Talmaj Marinc c62c727aac Merge migrations. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 71cf5a11f1 Remove api creds and add oauth. 2026-07-13 00:24:37 +02:00
Talmaj Marinc ee06f45ff3 Add small improvements and query optimization. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 08f0b15d60 Allow whitespaces around download urls, strip them in the backend. 2026-07-13 00:24:37 +02:00
Talmaj Marinc cebe350e0e Add distinction in error messaging for gated models. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 9807d2a743 Add extension check on the final resolved url -> fix downloading from civitAI. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 88be6cd111 Add delete and clear all downloads funcitonalities. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 0ea2773122 Disable newline translations on Windows, \r\n -> \n only. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 589eb6e1d9 Add support for ENV based HF_TOKEN. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 317317c98a Fix an issue with windows lacking have os.pwrite 2026-07-13 00:24:37 +02:00
Talmaj Marinc c5d9d39d0c Fix running CI tests. 2026-07-13 00:24:37 +02:00
Talmaj Marinc ea1e5786b8 Fix more AI detected issues., 2026-07-13 00:24:37 +02:00
Talmaj Marinc 78ca58cf29 Fix ruff. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 5d0835deee Update openapi.yaml. 2026-07-13 00:24:37 +02:00
Talmaj Marinc dc582b0fe2 Remove sending url info over websockets for model downloads. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 343afeb6d0 Fix sweep deleting FAILED partials and fix segmented resume path trusted offsets blindly. 2026-07-13 00:24:37 +02:00
Talmaj Marinc fe20a6483e Add _positive_int in cli_args arguments. 2026-07-13 00:24:37 +02:00
Talmaj Marinc e7b60beaf1 Redact urls in logging and fix concurrent enqueue issue that could corrupt the downloaded files. 2026-07-13 00:24:37 +02:00
Talmaj Marinc ce237f9a79 Simplify docstrings. 2026-07-13 00:24:37 +02:00
Talmaj Marinc 1d79c41064 Normalize malformed safetensors headers into StructuralError. 2026-07-13 00:24:36 +02:00
Talmaj Marinc ccadcaf4e3 Prevent redirects to loopback/internal IPs (SSRF) 2026-07-13 00:24:36 +02:00
Talmaj Marinc 2fc66a5e8d Simplify docstrings. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 15aa401146 Fix IPv4-mapped IPv6 addresses 2026-07-13 00:24:36 +02:00
Talmaj Marinc 4c152491f0 Restrict cleartext HTTP redirects to explicit loopback/dev hosts. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 72ce283d32 Simplify docstrings. 2026-07-13 00:24:36 +02:00
Talmaj Marinc bd27ae82a1 Don't echo full URLs and raw exception text from probe failures. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 9f9a9272ce Simplify docstrings. 2026-07-13 00:24:36 +02:00
Talmaj Marinc a0b35f60be Handle short pwrite() results. 2026-07-13 00:24:36 +02:00
Talmaj Marinc d0e71574a1 Switch to asyncio.to_thread for db calls in job.py 2026-07-13 00:24:36 +02:00
Talmaj Marinc 8a32df7108 Improve _finalize checks for downloads. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 03e6b57a86 Truncate file to 0 before restarting. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 391c628b8e Add max-download-size in case the server tries to send larger files than it reports. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 790e6775da Clear error when the job leaves a failure state. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 3b5483a225 Fix resuming of segmented download. 2026-07-13 00:24:36 +02:00
Talmaj Marinc d73483be0e Simplify docstrings. 2026-07-13 00:24:36 +02:00
Talmaj Marinc acf8f95eb5 Fix potential concurrency and db integrity error. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 2bed0a5d73 Fix an issue when a credential is deleted, resuming of download fails. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 96a3e0ccad Simplify docstrings. 2026-07-13 00:24:36 +02:00
Talmaj Marinc ea583ae155 Fix sercret_last4 2026-07-13 00:24:36 +02:00
Talmaj Marinc cbb0ddd87e Improve normalize_host 2026-07-13 00:24:36 +02:00
Talmaj Marinc b107b834f2 Docstring simplification. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 53da5f94e6 Fix url parsing. 2026-07-13 00:24:36 +02:00
Talmaj Marinc cca6687a0a Simplify migration docstring. 2026-07-13 00:24:36 +02:00
Talmaj Marinc 6f4c742bc5 Add initial commit for model downloader. 2026-07-13 00:24:36 +02:00
comfyanonymous 917faef771
Support PID 1.5 models. (#14894) 2026-07-12 09:43:30 -07:00