mishig HF staff commited on
Commit
af93b45
β€’
1 Parent(s): be78046

types file

Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -1,5 +1,5 @@
1
  <script lang="ts">
2
- import type { ModelEntryWithTokenizer } from "$lib/types";
3
  import { type ChatCompletionInputMessage } from "@huggingface/tasks";
4
 
5
  import { defaultGenerationConfig } from "./generationConfigSettings";
 
1
  <script lang="ts">
2
+ import type { ModelEntryWithTokenizer } from "./types";
3
  import { type ChatCompletionInputMessage } from "@huggingface/tasks";
4
 
5
  import { defaultGenerationConfig } from "./generationConfigSettings";
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte CHANGED
@@ -1,5 +1,5 @@
1
  <script lang="ts">
2
- import type { Conversation, ModelEntryWithTokenizer } from "$lib/types";
3
 
4
  import IconCaret from "../Icons/IconCaret.svelte";
5
  import ModelSelectorModal from "./InferencePlaygroundModelSelectorModal.svelte";
 
1
  <script lang="ts">
2
+ import type { Conversation, ModelEntryWithTokenizer } from "./types";
3
 
4
  import IconCaret from "../Icons/IconCaret.svelte";
5
  import ModelSelectorModal from "./InferencePlaygroundModelSelectorModal.svelte";
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte CHANGED
@@ -1,5 +1,5 @@
1
  <script lang="ts">
2
- import type { ModelEntryWithTokenizer } from "$lib/types";
3
 
4
  import { createEventDispatcher } from "svelte";
5
 
 
1
  <script lang="ts">
2
+ import type { ModelEntryWithTokenizer } from "./types";
3
 
4
  import { createEventDispatcher } from "svelte";
5
 
src/lib/components/InferencePlayground/inferencePlaygroundUtils.ts CHANGED
@@ -1,5 +1,5 @@
1
  import { type ChatCompletionInputMessage } from "@huggingface/tasks";
2
- import type { Conversation, ModelEntryWithTokenizer } from "$lib/types";
3
 
4
  import { HfInference } from "@huggingface/inference";
5
 
 
1
  import { type ChatCompletionInputMessage } from "@huggingface/tasks";
2
+ import type { Conversation, ModelEntryWithTokenizer } from "./types";
3
 
4
  import { HfInference } from "@huggingface/inference";
5
 
src/lib/{types/index.d.ts β†’ components/InferencePlayground/types.ts} RENAMED
@@ -2,7 +2,7 @@ import type { GenerationConfig } from "$lib/components/InferencePlayground/gener
2
  import type { ModelEntry } from "@huggingface/hub";
3
  import type { ChatCompletionInputMessage } from "@huggingface/tasks";
4
 
5
- type Conversation = {
6
  model: ModelEntryWithTokenizer;
7
  config: GenerationConfig;
8
  messages: ChatCompletionInputMessage[];
 
2
  import type { ModelEntry } from "@huggingface/hub";
3
  import type { ChatCompletionInputMessage } from "@huggingface/tasks";
4
 
5
+ export type Conversation = {
6
  model: ModelEntryWithTokenizer;
7
  config: GenerationConfig;
8
  messages: ChatCompletionInputMessage[];
src/routes/+page.server.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ModelEntryWithTokenizer } from "$lib/types";
2
  import type { ModelEntry } from "@huggingface/hub";
3
  import type { PageServerLoad } from "./$types";
4
  import { env } from "$env/dynamic/private";
 
1
+ import type { ModelEntryWithTokenizer } from "$lib/components/InferencePlayground/types";
2
  import type { ModelEntry } from "@huggingface/hub";
3
  import type { PageServerLoad } from "./$types";
4
  import { env } from "$env/dynamic/private";