This commit is contained in:
Timothy J. Baek 2024-05-19 18:17:18 -07:00
parent a600a32f18
commit 3c55773bb2
2 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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,