llama.cpp/tools/server/webui/src/lib
Rohan Jain 974c8c94cc
webui: add setting for first-line chat titles (#21797)
* webui: add setting for first-line chat titles

Add an opt-in setting (`titleGenerationUseFirstLine`) to use the first
non-empty line of a prompt as the generated conversation title.

Previously, the complete multi-line prompt was being used, which created
long titles for complex queries. Coupled with
"Ask for confirmation before changing conversation title", the dialog
would overflow.

* Update tools/server/webui/src/lib/utils/text.ts

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>

* Update tools/server/webui/src/lib/utils/text.ts

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>

* webui: Run build to update the bundle

As requested in:
https://github.com/ggml-org/llama.cpp/pull/21797#pullrequestreview-4094935065

* webui: Fix missing import for NEWLINE_SEPARATOR

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
2026-04-13 09:30:46 +02:00
..
actions webui: Improve Chat Messages initial scroll + auto-scroll logic + add lazy loading with transitions to content blocks (#20999) 2026-03-27 17:01:36 +01:00
components webui: add setting for first-line chat titles (#21797) 2026-04-13 09:30:46 +02:00
constants webui: add setting for first-line chat titles (#21797) 2026-04-13 09:30:46 +02:00
contexts webui: Conversation forking + branching improvements (#21021) 2026-03-28 13:38:15 +01:00
enums Add SLEEPING status to the WebUI model selector (#20949) 2026-03-25 11:02:32 +01:00
hooks webui: Improve Chat Messages initial scroll + auto-scroll logic + add lazy loading with transitions to content blocks (#20999) 2026-03-27 17:01:36 +01:00
markdown Fix rtl text rendering (#21382) 2026-04-07 11:37:20 +02:00
services webui: add setting for first-line chat titles (#21797) 2026-04-13 09:30:46 +02:00
stores webui: add setting for first-line chat titles (#21797) 2026-04-13 09:30:46 +02:00
types webui : store reasoning_content so it is sent back in subsequent requests (#21249) 2026-04-07 13:32:44 +02:00
utils webui: add setting for first-line chat titles (#21797) 2026-04-13 09:30:46 +02:00