mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
fix
This commit is contained in:
parent
322db31dc9
commit
54677a3374
@ -344,10 +344,11 @@
|
||||
$settings.system || (responseMessage?.userContext ?? null)
|
||||
? {
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + responseMessage?.userContext ?? null
|
||||
content: `${$settings?.system ?? ''}${
|
||||
responseMessage?.userContext ?? null
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}`
|
||||
}
|
||||
: undefined,
|
||||
...messages
|
||||
@ -603,10 +604,11 @@
|
||||
$settings.system || (responseMessage?.userContext ?? null)
|
||||
? {
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + (responseMessage?.userContext ?? null)
|
||||
content: `${$settings?.system ?? ''}${
|
||||
responseMessage?.userContext ?? null
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}`
|
||||
}
|
||||
: undefined,
|
||||
...messages
|
||||
|
@ -350,10 +350,11 @@
|
||||
$settings.system || (responseMessage?.userContext ?? null)
|
||||
? {
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + responseMessage?.userContext ?? null
|
||||
content: `${$settings?.system ?? ''}${
|
||||
responseMessage?.userContext ?? null
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}`
|
||||
}
|
||||
: undefined,
|
||||
...messages
|
||||
@ -609,10 +610,11 @@
|
||||
$settings.system || (responseMessage?.userContext ?? null)
|
||||
? {
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + (responseMessage?.userContext ?? null)
|
||||
content: `${$settings?.system ?? ''}${
|
||||
responseMessage?.userContext ?? null
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}`
|
||||
}
|
||||
: undefined,
|
||||
...messages
|
||||
|
Loading…
Reference in New Issue
Block a user