Fix duplicate var name
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<script lang="ts">
|
2 |
-
import type { ModelEntryWithTokenizer } from "./types";
|
3 |
-
import {
|
4 |
|
5 |
import { page } from "$app/stores";
|
6 |
import { defaultGenerationConfig } from "./generationConfigSettings";
|
@@ -16,7 +16,7 @@
|
|
16 |
import GenerationConfig from "./InferencePlaygroundGenerationConfig.svelte";
|
17 |
import HFTokenModal from "./InferencePlaygroundHFTokenModal.svelte";
|
18 |
import ModelSelector from "./InferencePlaygroundModelSelector.svelte";
|
19 |
-
import
|
20 |
import IconDelete from "../Icons/IconDelete.svelte";
|
21 |
import IconCode from "../Icons/IconCode.svelte";
|
22 |
|
@@ -216,7 +216,7 @@
|
|
216 |
<div
|
217 |
class="flex h-[calc(100dvh-5rem-120px)] divide-x divide-gray-200 pt-3 *:w-full md:h-[calc(100dvh-5rem)] dark:divide-gray-800"
|
218 |
>
|
219 |
-
<
|
220 |
{loading}
|
221 |
{conversation}
|
222 |
index={0}
|
|
|
1 |
<script lang="ts">
|
2 |
+
import type { Conversation, ModelEntryWithTokenizer } from "./types";
|
3 |
+
import type { ChatCompletionInputMessage } from "@huggingface/tasks";
|
4 |
|
5 |
import { page } from "$app/stores";
|
6 |
import { defaultGenerationConfig } from "./generationConfigSettings";
|
|
|
16 |
import GenerationConfig from "./InferencePlaygroundGenerationConfig.svelte";
|
17 |
import HFTokenModal from "./InferencePlaygroundHFTokenModal.svelte";
|
18 |
import ModelSelector from "./InferencePlaygroundModelSelector.svelte";
|
19 |
+
import PlaygroundConversation from "./InferencePlaygroundConversation.svelte";
|
20 |
import IconDelete from "../Icons/IconDelete.svelte";
|
21 |
import IconCode from "../Icons/IconCode.svelte";
|
22 |
|
|
|
216 |
<div
|
217 |
class="flex h-[calc(100dvh-5rem-120px)] divide-x divide-gray-200 pt-3 *:w-full md:h-[calc(100dvh-5rem)] dark:divide-gray-800"
|
218 |
>
|
219 |
+
<PlaygroundConversation
|
220 |
{loading}
|
221 |
{conversation}
|
222 |
index={0}
|