Spaces:
Build error
Build error
fixing and adding Nous Mixtral 8x7b
Browse files
src/lib/components/Playground/Playground.svelte
CHANGED
|
@@ -1,15 +1,20 @@
|
|
| 1 |
<script lang="ts">
|
| 2 |
-
import { HfInference } from '@huggingface/inference';
|
| 3 |
-
|
| 4 |
import PlaygroundCode from './PlaygroundCode.svelte';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
import PlaygroundMessage from '$lib/components/Playground/PlaygroundMessage.svelte';
|
| 6 |
import PlaygroundOptions from '$lib/components/Playground/PlaygroundOptions.svelte';
|
| 7 |
import PlaygroundTokenModal from './PlaygroundTokenModal.svelte';
|
| 8 |
import PlaygroundModelSelector from './PlaygroundModelSelector.svelte';
|
|
|
|
| 9 |
|
| 10 |
const compatibleModels: string[] = [
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
'microsoft/Phi-3-mini-4k-instruct',
|
| 15 |
|
|
@@ -484,4 +489,4 @@
|
|
| 484 |
</div>
|
| 485 |
</div>
|
| 486 |
{/if}
|
| 487 |
-
</div>
|
|
|
|
| 1 |
<script lang="ts">
|
|
|
|
|
|
|
| 2 |
import PlaygroundCode from './PlaygroundCode.svelte';
|
| 3 |
+
import {
|
| 4 |
+
createHfInference,
|
| 5 |
+
prepareRequestMessages,
|
| 6 |
+
handleStreamingResponse,
|
| 7 |
+
handleNonStreamingResponse
|
| 8 |
+
} from './playgroundUtils';
|
| 9 |
import PlaygroundMessage from '$lib/components/Playground/PlaygroundMessage.svelte';
|
| 10 |
import PlaygroundOptions from '$lib/components/Playground/PlaygroundOptions.svelte';
|
| 11 |
import PlaygroundTokenModal from './PlaygroundTokenModal.svelte';
|
| 12 |
import PlaygroundModelSelector from './PlaygroundModelSelector.svelte';
|
| 13 |
+
import { onDestroy } from 'svelte';
|
| 14 |
|
| 15 |
const compatibleModels: string[] = [
|
| 16 |
|
| 17 |
+
'CohereForAI/c4ai-command-r-plus',
|
| 18 |
|
| 19 |
'microsoft/Phi-3-mini-4k-instruct',
|
| 20 |
|
|
|
|
| 489 |
</div>
|
| 490 |
</div>
|
| 491 |
{/if}
|
| 492 |
+
</div>
|