Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Thomas G. Lopes
commited on
Commit
·
57e5e86
1
Parent(s):
9201e9c
fix default project bug
Browse files
src/lib/components/inference-playground/playground.svelte
CHANGED
|
@@ -82,7 +82,7 @@
|
|
| 82 |
<div
|
| 83 |
class="flex flex-1 divide-x divide-gray-200 overflow-x-auto overflow-y-hidden *:w-full max-sm:w-dvw md:pt-3 dark:divide-gray-800"
|
| 84 |
>
|
| 85 |
-
{#each conversations.active as conversation, conversationIdx (conversation)}
|
| 86 |
<div class="flex h-full flex-col overflow-hidden max-sm:min-w-full">
|
| 87 |
{#if compareActive}
|
| 88 |
<PlaygroundConversationHeader
|
|
|
|
| 82 |
<div
|
| 83 |
class="flex flex-1 divide-x divide-gray-200 overflow-x-auto overflow-y-hidden *:w-full max-sm:w-dvw md:pt-3 dark:divide-gray-800"
|
| 84 |
>
|
| 85 |
+
{#each conversations.active as conversation, conversationIdx (conversation.data.id)}
|
| 86 |
<div class="flex h-full flex-col overflow-hidden max-sm:min-w-full">
|
| 87 |
{#if compareActive}
|
| 88 |
<PlaygroundConversationHeader
|
src/lib/components/inference-playground/project-select.svelte
CHANGED
|
@@ -31,9 +31,6 @@
|
|
| 31 |
if (v) projects.activeId = v;
|
| 32 |
},
|
| 33 |
sameWidth: true,
|
| 34 |
-
onOpenChange(open) {
|
| 35 |
-
console.log("open", open);
|
| 36 |
-
},
|
| 37 |
});
|
| 38 |
|
| 39 |
type SaveDialogState = {
|
|
|
|
| 31 |
if (v) projects.activeId = v;
|
| 32 |
},
|
| 33 |
sameWidth: true,
|
|
|
|
|
|
|
|
|
|
| 34 |
});
|
| 35 |
|
| 36 |
type SaveDialogState = {
|
src/lib/state/conversations.svelte.ts
CHANGED
|
@@ -132,7 +132,6 @@ export class ConversationClass {
|
|
| 132 |
|
| 133 |
update = async (data: Partial<ConversationEntityMembers>) => {
|
| 134 |
if (this.data.id === -1) return;
|
| 135 |
-
// if (this.data.id === undefined) return;
|
| 136 |
const cloned = snapshot({ ...this.data, ...data });
|
| 137 |
|
| 138 |
if (this.data.id === undefined) {
|
|
@@ -407,6 +406,7 @@ class Conversations {
|
|
| 407 |
[to]: [...fromArr],
|
| 408 |
[from]: [],
|
| 409 |
};
|
|
|
|
| 410 |
};
|
| 411 |
|
| 412 |
duplicate = async (from: ProjectEntity["id"], to: ProjectEntity["id"]) => {
|
|
|
|
| 132 |
|
| 133 |
update = async (data: Partial<ConversationEntityMembers>) => {
|
| 134 |
if (this.data.id === -1) return;
|
|
|
|
| 135 |
const cloned = snapshot({ ...this.data, ...data });
|
| 136 |
|
| 137 |
if (this.data.id === undefined) {
|
|
|
|
| 406 |
[to]: [...fromArr],
|
| 407 |
[from]: [],
|
| 408 |
};
|
| 409 |
+
await this.create(getDefaultConversation(from));
|
| 410 |
};
|
| 411 |
|
| 412 |
duplicate = async (from: ProjectEntity["id"], to: ProjectEntity["id"]) => {
|