LocalAI/docs/content/docs
Chakib Benziane 32c0ab3a7f
fix: properly terminate llama.cpp kv_overrides array with empty key + updated doc (#6672)
* fix: properly terminate kv_overrides array with empty key

The llama model loading function expects KV overrides to be terminated
with an empty key (key[0] == 0). Previously, the kv_overrides vector was
not being properly terminated, causing an assertion failure.

This commit ensures that after parsing all KV override strings, we add a
final terminating entry with an empty key to satisfy the C-style array
termination requirement. This fixes the assertion error and allows the
model to load correctly with custom KV overrides.

Fixes #6643

- Also included a reference to the usage of the `overrides` option in
  the advanced-usage section.

Signed-off-by: blob42 <contact@blob42.xyz>

* doc: document the `overrides` option

---------

Signed-off-by: blob42 <contact@blob42.xyz>
2025-10-23 09:31:55 +02:00
..
advanced fix: properly terminate llama.cpp kv_overrides array with empty key + updated doc (#6672) 2025-10-23 09:31:55 +02:00
features feat(mcp): add planning and reevaluation (#6541) 2025-10-18 18:26:32 +02:00
getting-started chore(docs): enhancements and clarifications (#6433) 2025-10-10 21:31:11 +02:00
reference feat(neutts): add backend (#6404) 2025-10-09 21:51:28 +02:00
faq.md Remove model size guidance from FAQ 2025-10-10 21:50:56 +02:00
integrations.md integrations: add Nextcloud (#4233) 2024-11-24 10:33:18 +01:00
overview.md feat: Add Agentic MCP support with a new chat/completion endpoint (#6381) 2025-10-05 17:51:41 +02:00
whats-new.md docs: update links in advanced-usage and models documentation (#5994) 2025-08-08 10:23:42 +02:00