LocalAI/pkg/functions
Ettore Di Giacinto bf9dd1de7f
feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys (#2912)
* feat(functions): enhance parsing with broken JSON when we parse the raw results

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* breaking: make function name by default

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* feat(grammar): dynamically generate grammars with mutating keys

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* refactor: simplify condition

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* Update docs

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-07-18 17:52:22 +02:00
..
functions_suite_test.go feat(functions): support models with no grammar, add tests (#2068) 2024-04-18 22:43:12 +02:00
functions_test.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys (#2912) 2024-07-18 17:52:22 +02:00
functions.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys (#2912) 2024-07-18 17:52:22 +02:00
grammar_json_schema_test.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys (#2912) 2024-07-18 17:52:22 +02:00
grammar_json_schema.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys (#2912) 2024-07-18 17:52:22 +02:00
options.go feat(grammar): expose properties_order (#2662) 2024-06-26 14:59:02 +02:00
parse_test.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys (#2912) 2024-07-18 17:52:22 +02:00
parse.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys (#2912) 2024-07-18 17:52:22 +02:00