LocalAI/pkg/utils
Steven Christou 01205fd4c0
Initial implementation of upload files api. (#1703)
* Initial implementation of upload files api.

* Move sanitize method to utils.

* Save uploaded data to uploads folder.

* Avoid loop if we do not have a purpose.

* Minor cleanup of api and fix bug where deleting duplicate filename cause error.

* Revert defer of saving config

* Moved creation of directory to startup.

* Make file names unique when storing on disk.

* Add test for files api.

* Update dependencies.
2024-02-18 10:12:02 +00:00
..
hash.go feat: embedded model configurations, add popular model examples, refactoring (#1532) 2024-01-05 23:16:33 +01:00
json.go fix: do not break on newlines on function returns (#864) 2023-08-04 21:46:36 +02:00
logging.go feat: share models by url (#1522) 2024-01-01 10:31:03 +01:00
path.go Initial implementation of upload files api. (#1703) 2024-02-18 10:12:02 +00:00
untar.go Gallery repository (#663) 2023-06-24 08:18:17 +02:00
utils_suite_test.go refactor: consolidate usage of GetURI (#674) 2023-06-26 12:25:38 +02:00