mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 13:29:53 +00:00
fix
This commit is contained in:
parent
a600a32f18
commit
3c55773bb2
@ -341,12 +341,12 @@
|
||||
scrollToBottom();
|
||||
|
||||
const messagesBody = [
|
||||
$settings.system || Array.isArray(responseMessage?.userContext ?? null)
|
||||
($settings.system || responseMessage?.userContext) ?? null
|
||||
? {
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + Array.isArray(responseMessage?.userContext ?? null)
|
||||
? `\n\nUser Context:\n${userContext.join('\n')}`
|
||||
$settings.system + responseMessage?.userContext ?? null
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}
|
||||
: undefined,
|
||||
@ -605,7 +605,7 @@
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + (responseMessage?.userContext ?? null)
|
||||
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}`
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}
|
||||
: undefined,
|
||||
|
@ -347,12 +347,12 @@
|
||||
scrollToBottom();
|
||||
|
||||
const messagesBody = [
|
||||
$settings.system || Array.isArray(responseMessage?.userContext ?? null)
|
||||
($settings.system || responseMessage?.userContext) ?? null
|
||||
? {
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + Array.isArray(responseMessage?.userContext ?? null)
|
||||
? `\n\nUser Context:\n${userContext.join('\n')}`
|
||||
$settings.system + responseMessage?.userContext ?? null
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}
|
||||
: undefined,
|
||||
@ -611,7 +611,7 @@
|
||||
role: 'system',
|
||||
content:
|
||||
$settings.system + (responseMessage?.userContext ?? null)
|
||||
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}`
|
||||
? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
|
||||
: ''
|
||||
}
|
||||
: undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user