LocalAI/api/openai
Ettore Di Giacinto c72808f18b
feat(tools): support Tool calls in the API (#1715)
* feat(tools): support Tools in the API

Co-authored-by: =?UTF-8?q?Stephan=20A=C3=9Fmus?= <stephan.assmus@sap.com>

* feat(tools): support function streaming

* Adhere to new return types when using tools instead of functions

* Keep backward compatibility with function calling

* Evaluate function names in chat templates

* Disable recovery with --debug

* Correctly stream out the entire result

* Detect when llm chooses to reply and to not perform any action in SSE

* Feedback from code review

---------

Co-authored-by: =?UTF-8?q?Stephan=20A=C3=9Fmus?= <stephan.assmus@sap.com>
2024-02-17 10:00:34 +01: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
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