mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #24036] [CLOSED] Greeting Message field for custom models #43118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24036
Author: @merilinsilva
Created: 4/23/2026
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (10+)
fe6783cMerge pull request #19030 from open-webui/devfc05e0aMerge pull request #19405 from open-webui/deve3faec6Merge pull request #19416 from open-webui/dev9899293Merge pull request #19448 from open-webui/dev140605eMerge pull request #19462 from open-webui/dev6f1486fMerge pull request #19466 from open-webui/devd95f533Merge pull request #19729 from open-webui/deva7271530.6.43 (#20093)6adde20Merge pull request #20394 from open-webui/devf9b0534Merge pull request #20522 from open-webui/dev📊 Changes
4 files changed (+87 additions, -4 deletions)
View changed files
📝
backend/open_webui/models/models.py(+6 -0)📝
src/lib/apis/index.ts(+1 -0)📝
src/lib/components/chat/Chat.svelte(+56 -4)📝
src/lib/components/workspace/Models/ModelEditor.svelte(+24 -0)📄 Description
Description
Introduces an optional Greeting Message field for custom models. This allows model creators to define a predefined opening message (e.g., "How can I help you with your legal documents today?") that appears automatically when a user starts a new chat with that specific model.
This improves "cold-start" UX by providing immediate context or instructions without requiring initial user input.
Added
greetingfield to theModelMetaschema to store the message in the model's metadata.Changed
messages.length === 0checks).nullparent ID, even if a greeting is visually present in the frontend history.Fixed
Changelog Entry
Added
Changed
Fixed
parent_idinitialization for the first user message when starting a chat via a model greeting.Additional Information
Screenshots or Videos
(Note: Be sure to attach a screenshot of the new field in the Model Editor and the greeting appearing in the Chat UI here!)
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.