Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light mode for playgrounds page #1258

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import { catalog } from '/@/stores/catalog';
$: name = $catalog.models.find(r => r.id === object.modelId)?.name;
</script>

<div class="text-sm text-gray-300 overflow-hidden text-ellipsis">
<div class="text-sm text-[var(--pd-table-body-text)] overflow-hidden text-ellipsis">
{name}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function openDetails() {
</script>

<button on:click="{() => openDetails()}">
<div class="text-sm text-gray-300 overflow-hidden text-ellipsis">
<div class="text-sm text-[var(--pd-table-body-text-highlight)] overflow-hidden text-ellipsis">
{object.name}
</div>
</button>
44 changes: 23 additions & 21 deletions packages/frontend/src/pages/Playgrounds.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,30 @@ const openServicesPage = () => {
{#if $conversations.length > 0}
<Table kind="playground" data="{$conversations}" columns="{columns}" row="{row}"></Table>
{:else}
<div role="status">
There is no playground environment. You can <a
href="{'javascript:void(0);'}"
class="underline"
role="button"
title="Create a new Playground environment"
on:click="{createNewPlayground}">create one now</a
>.
<div class="text-[var(--pd-details-body-text)]">
<div role="status">
There is no playground environment. You can <a
href="{'javascript:void(0);'}"
class="underline"
role="button"
title="Create a new Playground environment"
on:click="{createNewPlayground}">create one now</a
>.
</div>
<p>
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.
</p>
<p>
Once started, each playground ships with a generic chat client to interact with the model service. The <button
class="underline"
title="Open the Services page"
on:click="{openServicesPage}">Services</button>
page allows for accessing running model services and provides further details and code snippets to interact
with them.
</p>
</div>
<p>
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.
</p>
<p>
Once started, each playground ships with a generic chat client to interact with the model service. The <button
class="underline"
title="Open the Services page"
on:click="{openServicesPage}">Services</button>
page allows for accessing running model services and provides further details and code snippets to interact
with them.
</p>
{/if}
</div>
</div>
Expand Down