]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
webui: add setting for first-line chat titles (#21797)
authorRohan Jain <redacted>
Mon, 13 Apr 2026 07:30:46 +0000 (13:00 +0530)
committerGitHub <redacted>
Mon, 13 Apr 2026 07:30:46 +0000 (09:30 +0200)
commit974c8c94cc20ac33ebdfd60211c26a23ae48599a
treef58ae94ba2cf822744a758baea8d1f66b652937a
parent227ed28e128e93b4d63ae5108560c550c9ab16c8
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 <redacted>
* Update tools/server/webui/src/lib/utils/text.ts

Co-authored-by: Aleksander Grygier <redacted>
* 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 <redacted>
tools/server/public/bundle.js
tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettings.svelte
tools/server/webui/src/lib/constants/settings-config.ts
tools/server/webui/src/lib/constants/settings-keys.ts
tools/server/webui/src/lib/services/parameter-sync.service.ts
tools/server/webui/src/lib/stores/chat.svelte.ts
tools/server/webui/src/lib/stores/conversations.svelte.ts
tools/server/webui/src/lib/utils/index.ts
tools/server/webui/src/lib/utils/text.ts