mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: fall back to the user's system prompt when the chat's own is cleared (#30333)
This commit is contained in:
parent
845b791609
commit
f2702e1f0f
1 changed files with 1 additions and 1 deletions
|
|
@ -3489,7 +3489,7 @@
|
|||
// Only temp chats need conversation messages (persisted chats load from DB).
|
||||
let messages: any[] = [
|
||||
params?.system || $settings.system
|
||||
? { role: 'system', content: `${params?.system ?? $settings?.system ?? ''}` }
|
||||
? { role: 'system', content: `${params?.system || $settings?.system || ''}` }
|
||||
: undefined
|
||||
].filter(Boolean);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue