From d1809432520597417a4cd4f3756051dd440bd96f Mon Sep 17 00:00:00 2001 From: Anthony Cucci <47187712+AnthonyCucci@users.noreply.github.com> Date: Wed, 29 Nov 2023 22:04:38 -0500 Subject: [PATCH] Update +page.svelte --- src/routes/(app)/c/[id]/+page.svelte | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index daf0f793..e6539e8d 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -160,7 +160,8 @@ temperature: $settings.temperature ?? undefined, repeat_penalty: $settings.repeat_penalty ?? undefined, top_k: $settings.top_k ?? undefined, - top_p: $settings.top_p ?? undefined + top_p: $settings.top_p ?? undefined, + num_ctx: $settings.num_ctx ?? undefined }, format: $settings.requestFormat ?? undefined, context: @@ -231,7 +232,8 @@ temperature: $settings.temperature ?? undefined, repeat_penalty: $settings.repeat_penalty ?? undefined, top_k: $settings.top_k ?? undefined, - top_p: $settings.top_p ?? undefined + top_p: $settings.top_p ?? undefined, + num_ctx: $settings.num_ctx ?? undefined }, messages: messages, history: history @@ -299,6 +301,7 @@ .map((message) => ({ role: message.role, content: message.content })), temperature: $settings.temperature ?? undefined, top_p: $settings.top_p ?? undefined, + num_ctx: $settings.num_ctx ?? undefined, frequency_penalty: $settings.repeat_penalty ?? undefined }) }); @@ -358,7 +361,8 @@ temperature: $settings.temperature ?? undefined, repeat_penalty: $settings.repeat_penalty ?? undefined, top_k: $settings.top_k ?? undefined, - top_p: $settings.top_p ?? undefined + top_p: $settings.top_p ?? undefined, + num_ctx: $settings.num_ctx ?? undefined }, messages: messages, history: history @@ -419,7 +423,8 @@ temperature: $settings.temperature ?? undefined, repeat_penalty: $settings.repeat_penalty ?? undefined, top_k: $settings.top_k ?? undefined, - top_p: $settings.top_p ?? undefined + top_p: $settings.top_p ?? undefined, + num_ctx: $settings.num_ctx ?? undefined }, messages: messages, history: history