LocalAI/pkg/functions
Ettore Di Giacinto e198347886
feat(openai): add json_schema format type and strict mode ()
* feat(openai): add json_schema and strict mode

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

* handle err vs _

security scanners prefer if we put these branches in, and I tend to agree.

Signed-off-by: Dave <dave@gray101.com>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Signed-off-by: Dave <dave@gray101.com>
Co-authored-by: Dave <dave@gray101.com>
2024-08-07 15:27:02 -04:00
..
grammars feat(grammar): add llama3.1 schema () 2024-07-26 20:11:29 +02:00
function_structure.go feat(grammar): add llama3.1 schema () 2024-07-26 20:11:29 +02:00
functions_suite_test.go feat(grammar): add llama3.1 schema () 2024-07-26 20:11:29 +02:00
functions_test.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys () 2024-07-18 17:52:22 +02:00
functions.go feat(openai): add json_schema format type and strict mode () 2024-08-07 15:27:02 -04:00
json_mode.go refactor: break down json grammar parser in different files () 2024-07-25 08:41:00 +02:00
parse_test.go feat(functions): parse broken JSON when we parse the raw results, use dynamic rules for grammar keys () 2024-07-18 17:52:22 +02:00
parse.go feat(grammar): add llama3.1 schema () 2024-07-26 20:11:29 +02:00