LocalAI/pkg/functions
lenaxia 6b6c8cdd5f
feat(functions): Enable true regex replacement for the regexReplacement option (#2341)
* Adding regex capabilities to ParseFunctionCall replacement

Signed-off-by: Lenaxia <github@47north.lat>

* Adding tests for the regex replace in ParseFunctionCall

Signed-off-by: Lenaxia <github@47north.lat>

* Fixing tests and adding a test case to validate double quote replacement works

Signed-off-by: Lenaxia <github@47north.lat>

* Make Regex replacement stable, drop lookaheads

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

---------

Signed-off-by: Lenaxia <github@47north.lat>
Signed-off-by: mudler <mudler@localai.io>
Co-authored-by: Lenaxia <github@47north.lat>
Co-authored-by: mudler <mudler@localai.io>
2024-05-19 01:29:10 +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(functions): mixed JSON BNF grammars (#2328) 2024-05-15 20:03:18 +02:00
grammar_json_schema.go feat(functions): mixed JSON BNF grammars (#2328) 2024-05-15 20:03:18 +02:00
parse_test.go feat(functions): Enable true regex replacement for the regexReplacement option (#2341) 2024-05-19 01:29:10 +02:00
parse.go feat(functions): Enable true regex replacement for the regexReplacement option (#2341) 2024-05-19 01:29:10 +02:00