From 3dd10f2ca0f1d8b6e8e53c985990e6dfc7c28829 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 21 Oct 2024 05:09:28 -0700 Subject: [PATCH] refac: playground --- .../{Playground.svelte => Chat.svelte} | 169 +++------------ .../components/playground/Completions.svelte | 201 ++++++++++++++++++ .../playground/TextCompletion.svelte | 0 src/routes/(app)/playground/+layout.svelte | 35 ++- src/routes/(app)/playground/+page.svelte | 4 +- .../(app)/playground/completions/+page.svelte | 5 + 6 files changed, 261 insertions(+), 153 deletions(-) rename src/lib/components/playground/{Playground.svelte => Chat.svelte} (55%) create mode 100644 src/lib/components/playground/Completions.svelte delete mode 100644 src/lib/components/playground/TextCompletion.svelte create mode 100644 src/routes/(app)/playground/completions/+page.svelte diff --git a/src/lib/components/playground/Playground.svelte b/src/lib/components/playground/Chat.svelte similarity index 55% rename from src/lib/components/playground/Playground.svelte rename to src/lib/components/playground/Chat.svelte index 4cdd8f05b..4abcdca26 100644 --- a/src/lib/components/playground/Playground.svelte +++ b/src/lib/components/playground/Chat.svelte @@ -1,14 +1,17 @@ - - - {$i18n.t('Playground')} | {$WEBUI_NAME} - - -
@@ -252,61 +182,22 @@ />
- -
- -
- {#if mode === 'chat'} -
-
-
{$i18n.t('System')}
-