From 4d27ecef1e95ca59585068c6f443a1a021a53f38 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 19 May 2024 12:06:58 -0700 Subject: [PATCH] fix --- src/routes/(app)/+page.svelte | 4 ++-- src/routes/(app)/c/[id]/+page.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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')}` : '' }