From c666ae7b5a7038a35f854b91f821ea02088c7a7d Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Fri, 21 Jun 2024 16:21:14 +0200 Subject: [PATCH] refactor: light mode for playgrounds page (#1258) Signed-off-by: Philippe Martin --- .../playground/PlaygroundColumnModel.svelte | 2 +- .../playground/PlaygroundColumnName.svelte | 2 +- .../frontend/src/pages/Playgrounds.svelte | 44 ++++++++++--------- 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte b/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte index e501e668c..018a9727b 100644 --- a/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte +++ b/packages/frontend/src/lib/table/playground/PlaygroundColumnModel.svelte @@ -6,6 +6,6 @@ import { catalog } from '/@/stores/catalog'; $: name = $catalog.models.find(r => r.id === object.modelId)?.name; -
+
{name}
diff --git a/packages/frontend/src/lib/table/playground/PlaygroundColumnName.svelte b/packages/frontend/src/lib/table/playground/PlaygroundColumnName.svelte index 5ca6439e6..d8cd62209 100644 --- a/packages/frontend/src/lib/table/playground/PlaygroundColumnName.svelte +++ b/packages/frontend/src/lib/table/playground/PlaygroundColumnName.svelte @@ -9,7 +9,7 @@ function openDetails() { diff --git a/packages/frontend/src/pages/Playgrounds.svelte b/packages/frontend/src/pages/Playgrounds.svelte index a1cef84f2..42fb3c906 100644 --- a/packages/frontend/src/pages/Playgrounds.svelte +++ b/packages/frontend/src/pages/Playgrounds.svelte @@ -37,28 +37,30 @@ const openServicesPage = () => { {#if $conversations.length > 0}
{:else} -
- There is no playground environment. You can create one now. +
+
+ There is no playground environment. You can create one now. +
+

+ Playground environments allow for experimenting with available models in a local environment. An + intuitive user prompt helps in exploring the capabilities and accuracy of various models and aids in + finding the best model for the use case at hand. +

+

+ Once started, each playground ships with a generic chat client to interact with the model service. The + page allows for accessing running model services and provides further details and code snippets to interact + with them. +

-

- Playground environments allow for experimenting with available models in a local environment. An intuitive - user prompt helps in exploring the capabilities and accuracy of various models and aids in finding the - best model for the use case at hand. -

-

- Once started, each playground ships with a generic chat client to interact with the model service. The - page allows for accessing running model services and provides further details and code snippets to interact - with them. -

{/if}