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)
|
$settings.system || (responseMessage?.userContext ?? null)
|
||||||
? {
|
? {
|
||||||
role: 'system',
|
role: 'system',
|
||||||
content:
|
content: `${$settings?.system ?? ''}${
|
||||||
$settings.system + responseMessage?.userContext ?? null
|
responseMessage?.userContext ?? null
|
||||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||||
: ''
|
: ''
|
||||||
|
}`
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
...messages
|
...messages
|
||||||
@ -603,10 +604,11 @@
|
|||||||
$settings.system || (responseMessage?.userContext ?? null)
|
$settings.system || (responseMessage?.userContext ?? null)
|
||||||
? {
|
? {
|
||||||
role: 'system',
|
role: 'system',
|
||||||
content:
|
content: `${$settings?.system ?? ''}${
|
||||||
$settings.system + (responseMessage?.userContext ?? null)
|
responseMessage?.userContext ?? null
|
||||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||||
: ''
|
: ''
|
||||||
|
}`
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
...messages
|
...messages
|
||||||
|
@ -350,10 +350,11 @@
|
|||||||
$settings.system || (responseMessage?.userContext ?? null)
|
$settings.system || (responseMessage?.userContext ?? null)
|
||||||
? {
|
? {
|
||||||
role: 'system',
|
role: 'system',
|
||||||
content:
|
content: `${$settings?.system ?? ''}${
|
||||||
$settings.system + responseMessage?.userContext ?? null
|
responseMessage?.userContext ?? null
|
||||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||||
: ''
|
: ''
|
||||||
|
}`
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
...messages
|
...messages
|
||||||
@ -609,10 +610,11 @@
|
|||||||
$settings.system || (responseMessage?.userContext ?? null)
|
$settings.system || (responseMessage?.userContext ?? null)
|
||||||
? {
|
? {
|
||||||
role: 'system',
|
role: 'system',
|
||||||
content:
|
content: `${$settings?.system ?? ''}${
|
||||||
$settings.system + (responseMessage?.userContext ?? null)
|
responseMessage?.userContext ?? null
|
||||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||||
: ''
|
: ''
|
||||||
|
}`
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
...messages
|
...messages
|
||||||
|
Loading…
Reference in New Issue
Block a user