Files
LocalAI/gallery
leilei3167 c1f697b472 fix(gallery): render single-brace JSON in Llama 3.1 function examples
The function templates stored the few-shot JSON sample inside a Go raw
string that still had an extra pair of braces. text/template printed
that literal, so the prompt showed {{"example_name": "example_value"}}
and models copied invalid JSON.

Fixes #12890

Signed-off-by: leilei3167 <imleilei123@gmail.com>
(cherry picked from commit 72f1dc25fc)
2026-11-03 09:21:06 +00:00
..
2026-04-08 19:23:16 +02:00
2025-08-06 10:40:46 +02:00