Commit Graph

35 Commits

Author SHA1 Message Date
Talmaj Marinc
d657a40681 Add distinction in error messaging for gated models.
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
2026-07-02 12:41:23 +02:00
Talmaj Marinc
c98a212589 Add extension check on the final resolved url -> fix downloading from civitAI.
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
2026-07-01 15:37:30 +02:00
Talmaj Marinc
4c82c708a7 Add delete and clear all downloads funcitonalities. 2026-07-01 15:04:30 +02:00
Talmaj Marinc
fe4d0c9722 Disable newline translations on Windows, \r\n -> \n only.
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
2026-07-01 12:06:17 +02:00
Talmaj Marinc
64c5853631 Add support for ENV based HF_TOKEN. 2026-07-01 12:02:19 +02:00
Talmaj Marinc
8a6e7906f7 Fix an issue with windows lacking have os.pwrite 2026-07-01 11:56:41 +02:00
Talmaj Marinc
28b41d4d6d Fix more AI detected issues., 2026-07-01 11:38:33 +02:00
Talmaj Marinc
3eb36377a8 Fix ruff. 2026-07-01 11:36:23 +02:00
Talmaj Marinc
abc0b728ab Fix sweep deleting FAILED partials and fix segmented resume path trusted offsets blindly. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
b419fd8399 Redact urls in logging and fix concurrent enqueue issue that could corrupt the downloaded files. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
e77983ca28 Simplify docstrings. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
893ba2ad37 Normalize malformed safetensors headers into StructuralError. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
312b282ca8 Prevent redirects to loopback/internal IPs (SSRF) 2026-06-30 20:33:16 +02:00
Talmaj Marinc
7690c52a34 Simplify docstrings. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
e326ef3b16 Fix IPv4-mapped IPv6 addresses 2026-06-30 20:33:16 +02:00
Talmaj Marinc
115a4305ea Restrict cleartext HTTP redirects to explicit loopback/dev hosts. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
9be31a4b7e Simplify docstrings. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
7dba134cda Don't echo full URLs and raw exception text from probe failures. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
e0b07014c0 Simplify docstrings. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
3eade55077 Handle short pwrite() results. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
c785130223 Switch to asyncio.to_thread for db calls in job.py 2026-06-30 20:33:16 +02:00
Talmaj Marinc
4ccaaa6f37 Improve _finalize checks for downloads. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
58392bf7a6 Truncate file to 0 before restarting. 2026-06-30 20:33:16 +02:00
Talmaj Marinc
4ae294d2d5 Add max-download-size in case the server tries to send larger files than it reports. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
95b0758a88 Clear error when the job leaves a failure state. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
dba2bfbc02 Fix resuming of segmented download. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
4bd7cc153e Simplify docstrings. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
2b708d5af7 Fix potential concurrency and db integrity error. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
9c845eeb9e Fix an issue when a credential is deleted, resuming of download fails. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
e70f524d5f Simplify docstrings. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
d058ffb761 Fix sercret_last4 2026-06-30 20:33:15 +02:00
Talmaj Marinc
53ec95b87e Improve normalize_host 2026-06-30 20:33:15 +02:00
Talmaj Marinc
e02c7a0890 Docstring simplification. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
1744026eca Fix url parsing. 2026-06-30 20:33:15 +02:00
Talmaj Marinc
c7c18377a3 Add initial commit for model downloader. 2026-06-30 20:33:15 +02:00