LocalAI/pkg/functions
Ettore Di Giacinto efa32a2677
feat(grammar): support models with specific construct (#2291)
When enabling grammar with functions, it might be useful to
allow more flexibility to support models that are fine-tuned against returning
function calls of the form of { "name": "function_name", "arguments" {...} }
rather then { "function": "function_name", "arguments": {..} }.

This might call out to a more generic approach later on, but for the moment being we can easily support both
as we have just to specific different types.

If needed we can expand on this later on

Signed-off-by: mudler <mudler@localai.io>
2024-05-12 01:13: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(grammar): support models with specific construct (#2291) 2024-05-12 01:13:22 +02:00
functions.go feat(grammar): support models with specific construct (#2291) 2024-05-12 01:13:22 +02:00
grammar_json_schema_test.go feat(grammar): support models with specific construct (#2291) 2024-05-12 01:13:22 +02:00
grammar_json_schema.go feat(grammar): support models with specific construct (#2291) 2024-05-12 01:13:22 +02:00
parse_test.go feat(functions): support models with no grammar, add tests (#2068) 2024-04-18 22:43:12 +02:00
parse.go feat(grammar): support models with specific construct (#2291) 2024-05-12 01:13:22 +02:00