Merge pull request #2401 from open-webui/dev

fix
This commit is contained in:
Timothy Jaeryang Baek 2024-05-19 15:33:50 -10:00 committed by GitHub
commit 2ce6535a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -345,8 +345,8 @@
? {
role: 'system',
content:
$settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.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,

View File

@ -351,8 +351,8 @@
? {
role: 'system',
content:
$settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.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,