From: Woof Dog Date: Sat, 28 Mar 2026 13:19:16 +0000 (+0000) Subject: Document custom default webui preferences in server README (#19771) X-Git-Tag: upstream/0.0.8611~44 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=82b703f8bcb93104426a45c9fc1a62501994e422;p=pkg%2Fggml%2Fsources%2Fllama.cpp Document custom default webui preferences in server README (#19771) --- diff --git a/tools/server/README.md b/tools/server/README.md index 4d80b6c56..1bd820168 100644 --- a/tools/server/README.md +++ b/tools/server/README.md @@ -1775,6 +1775,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`