LocalAI/pkg/reasoning
Ettore Di Giacinto 34e054f607
fix(reasoning): support models with reasoning without starting thinking tag (#8132)
* chore: extract reasoning to its own package

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

* make sure we detect thinking tokens from template

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

* Allow to override via config, add tests

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

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-01-20 21:07:59 +01:00
..
config.go fix(reasoning): support models with reasoning without starting thinking tag (#8132) 2026-01-20 21:07:59 +01:00
reasoning.go fix(reasoning): support models with reasoning without starting thinking tag (#8132) 2026-01-20 21:07:59 +01:00
reasoning_suite_test.go fix(reasoning): support models with reasoning without starting thinking tag (#8132) 2026-01-20 21:07:59 +01:00
reasoning_test.go fix(reasoning): support models with reasoning without starting thinking tag (#8132) 2026-01-20 21:07:59 +01:00