LocalAI/pkg/grammar
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
..
functions_test.go Add tests 2023-07-04 18:58:19 +02:00
functions.go feat(tools): support Tool calls in the API (#1715) 2024-02-17 10:00:34 +01:00
grammar_suite_test.go feat: add grammar and functions call support 2023-07-04 18:58:19 +02:00
json_schema_test.go feat: update integer, number and string rules - allow primitives as root types (#862) 2023-08-03 23:32:30 +02:00
json_schema.go 🔥 add LaVA support and GPT vision API, Multiple requests for llama.cpp, return JSON types (#1254) 2023-11-11 13:14:59 +01:00