diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 17c29ab39..cd40d7610 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -339,7 +339,7 @@ ? { role: 'system', content: - $settings.system + !!(responseMessage?.userContext ?? null) + $settings.system + (responseMessage?.userContext ?? null) ? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` : '' } @@ -598,7 +598,7 @@ ? { role: 'system', content: - $settings.system + !!(responseMessage?.userContext ?? null) + $settings.system + (responseMessage?.userContext ?? null) ? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` : '' } diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index 8e2048a25..e60fd93cf 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -345,7 +345,7 @@ ? { role: 'system', content: - $settings.system + !!(responseMessage?.userContext ?? null) + $settings.system + (responseMessage?.userContext ?? null) ? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` : '' } @@ -604,7 +604,7 @@ ? { role: 'system', content: - $settings.system + !!(responseMessage?.userContext ?? null) + $settings.system + (responseMessage?.userContext ?? null) ? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` : '' }