Commit Graph

12 Commits

Author SHA1 Message Date
Aaron Miller
edad3baa99 download: make model downloads resumable
* save files as `incomplete-{filename}` in the dest folder
* rename into place after hash is confirmed or delete if hash is bad
* resume downloads using http `range`
* if DL is resumed from a different app session rewind a bit -
  this is to deal with the case where the file size changes before
  the content is fully flushed out
* flush dest file at end of readyRead, this mitigates the above
  and provides backpressure on the download if the destination disk
  is slower than the network connection
2023-05-02 20:36:25 -04:00
Adam Treat
4a09f0f0ec More extensive usage stats to help diagnose errors and problems in the ui. 2023-05-02 20:31:17 -04:00
Adam Treat
bc77d95def Add a requires field for the models.json for future proofing. 2023-04-28 20:30:52 -04:00
Adam Treat
43eef81ca8 New startup dialog features. 2023-04-28 11:03:16 -04:00
Adam Treat
b00da454e4 Provide a description and make the downloader cleaner and prettier. 2023-04-27 14:52:40 -04:00
Aaron Miller
15a979b327 new settings (model path, repeat penalty) w/ tabs 2023-04-25 16:24:55 -04:00
Adam Treat
1b0eac2870 Add debugging code for ssl errors. 2023-04-24 17:52:19 -04:00
Adam Treat
fe97a6e04f Make the download use a temp file to save ram and make it threaded. 2023-04-23 19:43:20 -04:00
Adam Treat
c086a45173 Provide a non-priviledged place for model downloads when exe is installed to root. 2023-04-23 11:28:17 -04:00
Adam Treat
993a43d33a Minor cleanup. 2023-04-22 16:40:34 -04:00
Adam Treat
5a00c83139 Display filesize info in the model downloader. 2023-04-20 09:32:51 -04:00
Adam Treat
e6cb6a2ae3 Add a new model download feature. 2023-04-18 21:10:06 -04:00