LocalAI/core/http/endpoints
Ettore Di Giacinto cf747bcdec
feat: extract output with regexes from LLMs (#3491)
* feat: extract output with regexes from LLMs

This changset adds `extract_regex` to the LLM config. It is a list of
regexes that can match output and will be used to re extract text from
the LLM output. This is particularly useful for LLMs which outputs final
results into tags.

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

* Add tests, enhance output in case of configuration error

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

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2024-09-13 13:27:36 +02:00
..
elevenlabs feat: elevenlabs sound-generation api (#3355) 2024-08-24 00:20:28 +00:00
explorer feat(explorer): make possible to run sync in a separate process (#3224) 2024-08-12 19:25:44 +02:00
jina docs(swagger): comment LocalAI gallery endpoints and rerankers (#2854) 2024-07-14 05:46:42 +02:00
localai feat: add endpoint to list system informations (#3449) 2024-09-05 20:44:30 +02:00
openai feat: extract output with regexes from LLMs (#3491) 2024-09-13 13:27:36 +02:00