From d97f3a684f36db05ffc7f615852ea4725eaa70db Mon Sep 17 00:00:00 2001 From: Woof Dog <197125663+woof-dog@users.noreply.github.com> Date: Fri, 20 Feb 2026 22:58:26 +0000 Subject: [PATCH] Document custom default webui preferences in server README --- tools/server/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/server/README.md b/tools/server/README.md index da16ddc756..c9b570acdd 100644 --- a/tools/server/README.md +++ b/tools/server/README.md @@ -1748,6 +1748,16 @@ Apart from error types supported by OAI, we also have custom types that are spec } ``` +### Custom default Web UI preferences + +You can specify default preferences for the web UI using `--webui-config ` or `--webui-config-file `. For example, you can disable pasting long text as attachments and enable rendering Markdown in user messages with this command: + +```bash +./llama-server -m model.gguf --webui-config '{"pasteLongTextToFileLen": 0, "renderUserContentAsMarkdown": true}' +``` + +You may find available preferences in [settings-config.ts](webui/src/lib/constants/settings-config.ts). + ### Legacy completion web UI A new chat-based UI has replaced the old completion-based since [this PR](https://github.com/ggml-org/llama.cpp/pull/10175). If you want to use the old completion, start the server with `--path ./tools/server/public_legacy`