Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions kit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"update-inference-providers": "npm ci && npm i @huggingface/inference@latest && npm i @huggingface/tasks@latest"
},
"devDependencies": {
"@huggingface/inference": "^3.8.1",
"@huggingface/tasks": "^0.18.8",
"@huggingface/inference": "^3.9.2",
"@huggingface/tasks": "^0.18.11",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.20.4",
Expand Down
24 changes: 24 additions & 0 deletions kit/src/lib/InferenceSnippet/IconInferenceFeatherless.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<script lang="ts">
export let classNames = "";
</script>

<svg
class={classNames}
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
role="img"
width="1em"
height="1em"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 26 26"
>
<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#0C0A09" />
<path
d="M21.0962 6.7616C20.2483 6.2632 19.1029 6 17.7812 6C15.7596 6 13.5312 6.6139 11.5294 7.6821L11.5152 7.6772L11.5124 7.6919C10.9068 8.0167 10.3196 8.3786 9.7685 8.7825C6.52079 11.1632 5.61129 13.9884 6.37912 15.499C5.53833 16.8794 5.02125 18.3081 5 20C6.615 17.0369 7.584 14.6359 12.8455 10.5934C11.3424 10.9035 8.74425 12.3749 6.99608 14.6079C6.83104 13.3017 7.90275 11.1926 10.2898 9.4426C10.593 9.2214 10.9068 9.0142 11.2277 8.8175C10.9769 9.5672 11.0577 9.381 10.537 10.4324C11.3063 9.7317 11.812 9.2984 12.5721 8.0979C13.5368 7.63815 14.5536 7.29388 15.6009 7.0724C15.4323 7.6093 15.1122 8.5193 14.6787 9.2389C14.6787 9.2389 15.7787 9.0121 16.6882 9.0639C16.1917 9.591 15.744 10.1622 15.2907 10.746C14.6702 11.5454 14.0284 12.3714 13.206 13.1407C13.1069 13.2338 13.0127 13.3178 12.917 13.4046C11.6534 13.2877 10.8197 13.7427 10.0377 14.5456C10.6539 14.2691 11.4827 14.0416 12.0012 14.1788C11.0449 14.9299 9.53829 15.9197 8.30083 15.8378C8.06567 16.1822 8.05079 16.1927 7.79296 16.6078C9.80108 17.0894 12.3227 15.1252 13.8067 13.7357C14.6772 12.9209 15.3402 12.0676 15.9813 11.2437C17.3002 9.5448 18.4399 8.0776 20.968 7.5197L22 7.2922L21.0962 6.7616Z"
fill="#FFE184"
/>
</svg>
</svg>
22 changes: 22 additions & 0 deletions kit/src/lib/InferenceSnippet/IconInferenceGroq.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<script lang="ts">
export let classNames = "";
</script>

<svg
class={classNames}
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
role="img"
width="1em"
height="1em"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 26 26"
>
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#F55036" />
<path
d="M13.024 6.00018C10.2759 5.97721 8.02405 8.10452 8.00019 10.751C7.97634 13.3975 10.1853 15.5662 12.9333 15.5892H14.6604V13.7927H13.024C11.3064 13.811 9.89424 12.4878 9.87516 10.8291C9.85607 9.17047 11.2301 7.81506 12.9524 7.79668C12.9762 7.79668 13.0001 7.79668 13.024 7.79668C14.7415 7.79668 16.1346 9.13831 16.1441 10.7924V15.2078C16.1441 16.8481 14.7558 18.1851 13.0573 18.2035C12.2415 18.1989 11.4639 17.8819 10.8914 17.3259L9.56982 18.5986C10.4858 19.4854 11.7263 19.9908 13.024 20H13.0907C15.8054 19.9632 17.9857 17.8405 18 15.2262V10.6729C17.9332 8.07695 15.7243 6.00478 13.024 6.00018Z"
fill="white"
/>
</svg>
32 changes: 32 additions & 0 deletions kit/src/lib/InferenceSnippet/IconInferenceNscale.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script lang="ts">
export let classNames = "";
</script>

<svg
class={classNames}
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
role="img"
width="1em"
height="1em"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 26 26"
>
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#F6F7F8" />
<path
d="M22 9.10907C22 8.12421 20.818 7.62981 20.1246 8.32459L10.6151 17.852C10.4793 17.9881 10.575 18.2215 10.7667 18.2215H12.1408C12.206 18.2215 12.2711 18.2165 12.3355 18.2066L14.4558 17.8806C15.7981 17.6743 17.1644 17.6827 18.5041 17.9056L20.2984 18.204C20.3679 18.2156 20.4382 18.2214 20.5086 18.2214H21.4747C21.7648 18.2214 22 17.9847 22 17.6927V9.10907Z"
fill="#09090B"
/>
<path
opacity="0.6"
d="M7.30146 18.2187C7.11013 18.2188 7.01423 17.986 7.14943 17.8497L13.7249 11.2215C14.1094 10.8339 14.7332 10.8337 15.118 11.221C15.5025 11.608 15.5025 12.2355 15.118 12.6226L9.85653 17.9185C9.66556 18.1107 9.40653 18.2187 9.13644 18.2187H7.30146Z"
fill="#6B6B6D"
/>
<path
opacity="0.4"
d="M4.51022 18.2196C4.05682 18.2196 3.82952 17.668 4.1498 17.345L8.14569 13.3149C8.53008 12.9272 9.15395 12.9269 9.53872 13.3142C9.92319 13.7012 9.92319 14.3286 9.53872 14.7156L6.35585 17.9193C6.16487 18.1116 5.90585 18.2196 5.63576 18.2196H4.51022Z"
fill="#9D9D9D"
/>
</svg>
9 changes: 9 additions & 0 deletions kit/src/lib/InferenceSnippet/InferenceSnippet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
import IconInferenceCerebras from "./IconInferenceCerebras.svelte";
import IconInferenceCohere from "./IconInferenceCohere.svelte";
import IconInferenceFal from "./IconInferenceFal.svelte";
import IconInferenceFeatherless from "./IconInferenceFeatherless.svelte";
import IconInferenceFireworks from "./IconInferenceFireworks.svelte";
import IconInferenceGroq from "./IconInferenceGroq.svelte";
import IconInferenceHf from "./IconInferenceHf.svelte";
import IconInferenceHyperbolic from "./IconInferenceHyperbolic.svelte";
import IconInferenceNebius from "./IconInferenceNebius.svelte";
import IconInferenceNovita from "./IconInferenceNovita.svelte";
import IconInferenceNscale from "./IconInferenceNscale.svelte";
import IconInferenceReplicate from "./IconInferenceReplicate.svelte";
import IconInferenceSambaNova from "./IconInferenceSambaNova.svelte";
import IconInferenceTogetherAI from "./IconInferenceTogetherAI.svelte";
Expand Down Expand Up @@ -100,10 +103,13 @@
cerebras: "Cerebras",
cohere: "Cohere",
"fal-ai": "fal",
"featherless-ai": "Featherless",
"fireworks-ai": "Fireworks",
groq: "Groq",
hyperbolic: "Hyperbolic",
nebius: "Nebius AI Studio",
novita: "Novita",
nscale: "Nscale",
replicate: "Replicate",
sambanova: "SambaNova",
together: "Together AI",
Expand All @@ -124,10 +130,13 @@
cerebras: IconInferenceCerebras,
cohere: IconInferenceCohere,
"fal-ai": IconInferenceFal,
"featherless-ai": IconInferenceFeatherless,
"fireworks-ai": IconInferenceFireworks,
groq: IconInferenceGroq,
hyperbolic: IconInferenceHyperbolic,
nebius: IconInferenceNebius,
novita: IconInferenceNovita,
nscale: IconInferenceNscale,
replicate: IconInferenceReplicate,
sambanova: IconInferenceSambaNova,
together: IconInferenceTogetherAI,
Expand Down