LocalAI/pkg/model
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
..
initializers.go feat: Use ubuntu as base for container images, drop deprecated ggml-transformers backends (#1689) 2024-02-08 20:12:51 +01:00
loader.go feat(tools): support Tool calls in the API (#1715) 2024-02-17 10:00:34 +01:00
options.go Revert "[Refactor]: Core/API Split" (#1550) 2024-01-05 18:04:46 +01:00
process.go feat: initial watchdog implementation (#1341) 2023-11-26 18:36:23 +01:00
watchdog.go feat: initial watchdog implementation (#1341) 2023-11-26 18:36:23 +01:00