LocalAI/core/http
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
..
ctx feat(model-list): be consistent, skip known files from listing (#2760) 2024-07-10 15:28:39 +02:00
elements feat(gallery): lazy load images (#3246) 2024-08-14 12:53:42 +02:00
endpoints feat: extract output with regexes from LLMs (#3491) 2024-09-13 13:27:36 +02:00
routes feat: add endpoint to list system informations (#3449) 2024-09-05 20:44:30 +02:00
static chore(ux): allow to create and drag dots in the animation (#3287) 2024-08-19 20:40:55 +02:00
views chore(anime.js): drop unused (#3351) 2024-08-21 13:10:09 +02:00
app_test.go feat: add endpoint to list system informations (#3449) 2024-09-05 20:44:30 +02:00
app.go chore: fix go.mod module (#2635) 2024-06-23 08:24:36 +00:00
explorer.go feat(explorer): make possible to run sync in a separate process (#3224) 2024-08-12 19:25:44 +02:00
http_suite_test.go fix: rename fiber entrypoint from http/api to http/app (#2096) 2024-04-21 22:39:28 +02:00
render.go rf: centralize base64 image handling (#2595) 2024-06-24 08:34:36 +02:00