Rename componentns to better names (#7)
Browse files- src/lib/components/{Playground/PlaygroundCode.svelte β CodeSnippets.svelte} +0 -0
- src/lib/components/{Playground/PlaygroundOptions.svelte β GenerationConfig.svelte} +0 -0
- src/lib/components/{Playground/PlaygroundTokenModal.svelte β HFTokenModal.svelte} +0 -0
- src/lib/components/{Playground/PlaygroundMessage.svelte β Message.svelte} +0 -0
- src/lib/components/{Playground/PlaygroundModelSelector.svelte β ModelSelector.svelte} +0 -0
- src/lib/components/{Playground/PlaygroundModelSelectorV2.svelte β ModelSelectorV2.svelte} +0 -0
- src/lib/components/{Playground/Playground.svelte β Playground.svelte} +5 -5
- src/lib/components/{Playground/playgroundUtils.ts β playgroundUtils.ts} +0 -0
- src/routes/+page.svelte +1 -1
src/lib/components/{Playground/PlaygroundCode.svelte β CodeSnippets.svelte}
RENAMED
File without changes
|
src/lib/components/{Playground/PlaygroundOptions.svelte β GenerationConfig.svelte}
RENAMED
File without changes
|
src/lib/components/{Playground/PlaygroundTokenModal.svelte β HFTokenModal.svelte}
RENAMED
File without changes
|
src/lib/components/{Playground/PlaygroundMessage.svelte β Message.svelte}
RENAMED
File without changes
|
src/lib/components/{Playground/PlaygroundModelSelector.svelte β ModelSelector.svelte}
RENAMED
File without changes
|
src/lib/components/{Playground/PlaygroundModelSelectorV2.svelte β ModelSelectorV2.svelte}
RENAMED
File without changes
|
src/lib/components/{Playground/Playground.svelte β Playground.svelte}
RENAMED
@@ -1,15 +1,15 @@
|
|
1 |
<script lang="ts">
|
2 |
-
import PlaygroundCode from './
|
3 |
import {
|
4 |
createHfInference,
|
5 |
prepareRequestMessages,
|
6 |
handleStreamingResponse,
|
7 |
handleNonStreamingResponse
|
8 |
} from './playgroundUtils';
|
9 |
-
import PlaygroundMessage from '$lib/components/
|
10 |
-
import PlaygroundOptions from '$lib/components/
|
11 |
-
import PlaygroundTokenModal from './
|
12 |
-
import PlaygroundModelSelector from './
|
13 |
import { onDestroy, onMount } from 'svelte';
|
14 |
import { type ModelEntry } from "@huggingface/hub";
|
15 |
import { type ChatCompletionInputMessage } from "@huggingface/tasks";
|
|
|
1 |
<script lang="ts">
|
2 |
+
import PlaygroundCode from './CodeSnippets.svelte';
|
3 |
import {
|
4 |
createHfInference,
|
5 |
prepareRequestMessages,
|
6 |
handleStreamingResponse,
|
7 |
handleNonStreamingResponse
|
8 |
} from './playgroundUtils';
|
9 |
+
import PlaygroundMessage from '$lib/components/Message.svelte';
|
10 |
+
import PlaygroundOptions from '$lib/components/GenerationConfig.svelte';
|
11 |
+
import PlaygroundTokenModal from './HFTokenModal.svelte';
|
12 |
+
import PlaygroundModelSelector from './ModelSelector.svelte';
|
13 |
import { onDestroy, onMount } from 'svelte';
|
14 |
import { type ModelEntry } from "@huggingface/hub";
|
15 |
import { type ChatCompletionInputMessage } from "@huggingface/tasks";
|
src/lib/components/{Playground/playgroundUtils.ts β playgroundUtils.ts}
RENAMED
File without changes
|
src/routes/+page.svelte
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<script lang="ts">
|
2 |
-
import Playground from '$lib/components/Playground
|
3 |
</script>
|
4 |
|
5 |
<Playground />
|
|
|
1 |
<script lang="ts">
|
2 |
+
import Playground from '$lib/components/Playground.svelte';
|
3 |
</script>
|
4 |
|
5 |
<Playground />
|