LocalAI/api/openai
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
..
chat.go feat(tools): support Tool calls in the API (#1715) 2024-02-17 10:00:34 +01:00
completion.go feat(tts): respect YAMLs config file, add sycl docs/examples (#1692) 2024-02-10 21:37:03 +01:00
edit.go feat(tts): respect YAMLs config file, add sycl docs/examples (#1692) 2024-02-10 21:37:03 +01:00
embeddings.go feat(tts): respect YAMLs config file, add sycl docs/examples (#1692) 2024-02-10 21:37:03 +01:00
files_test.go Initial implementation of upload files api. (#1703) 2024-02-18 10:12:02 +00:00
files.go Initial implementation of upload files api. (#1703) 2024-02-18 10:12:02 +00:00
image.go feat(tts): respect YAMLs config file, add sycl docs/examples (#1692) 2024-02-10 21:37:03 +01:00
inference.go Revert "[Refactor]: Core/API Split" (#1550) 2024-01-05 18:04:46 +01:00
list.go Revert "[Refactor]: Core/API Split" (#1550) 2024-01-05 18:04:46 +01:00
request.go feat(tools): support Tool calls in the API (#1715) 2024-02-17 10:00:34 +01:00
transcription.go feat(tts): respect YAMLs config file, add sycl docs/examples (#1692) 2024-02-10 21:37:03 +01:00