Skip to content

Commit c92e72c

Browse files
authored
Bump huggingface.js packages (#559)
* Bump huggingface.js packages * add providers icon and pretty names * fix imports * package-lock.json
1 parent fae59c8 commit c92e72c

File tree

6 files changed

+98
-11
lines changed

6 files changed

+98
-11
lines changed

kit/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"update-inference-providers": "npm ci && npm i @huggingface/inference@latest && npm i @huggingface/tasks@latest"
1515
},
1616
"devDependencies": {
17-
"@huggingface/inference": "^3.8.1",
18-
"@huggingface/tasks": "^0.18.8",
17+
"@huggingface/inference": "^3.9.2",
18+
"@huggingface/tasks": "^0.18.11",
1919
"@sveltejs/adapter-auto": "^2.0.0",
2020
"@sveltejs/adapter-static": "^2.0.3",
2121
"@sveltejs/kit": "^1.20.4",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<script lang="ts">
2+
export let classNames = "";
3+
</script>
4+
5+
<svg
6+
class={classNames}
7+
xmlns="http://www.w3.org/2000/svg"
8+
xmlns:xlink="http://www.w3.org/1999/xlink"
9+
aria-hidden="true"
10+
focusable="false"
11+
role="img"
12+
width="1em"
13+
height="1em"
14+
preserveAspectRatio="xMidYMid meet"
15+
viewBox="0 0 26 26"
16+
>
17+
<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
18+
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#0C0A09" />
19+
<path
20+
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"
21+
fill="#FFE184"
22+
/>
23+
</svg>
24+
</svg>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<script lang="ts">
2+
export let classNames = "";
3+
</script>
4+
5+
<svg
6+
class={classNames}
7+
xmlns="http://www.w3.org/2000/svg"
8+
xmlns:xlink="http://www.w3.org/1999/xlink"
9+
aria-hidden="true"
10+
focusable="false"
11+
role="img"
12+
width="1em"
13+
height="1em"
14+
preserveAspectRatio="xMidYMid meet"
15+
viewBox="0 0 26 26"
16+
>
17+
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#F55036" />
18+
<path
19+
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"
20+
fill="white"
21+
/>
22+
</svg>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<script lang="ts">
2+
export let classNames = "";
3+
</script>
4+
5+
<svg
6+
class={classNames}
7+
xmlns="http://www.w3.org/2000/svg"
8+
xmlns:xlink="http://www.w3.org/1999/xlink"
9+
aria-hidden="true"
10+
focusable="false"
11+
role="img"
12+
width="1em"
13+
height="1em"
14+
preserveAspectRatio="xMidYMid meet"
15+
viewBox="0 0 26 26"
16+
>
17+
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#F6F7F8" />
18+
<path
19+
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"
20+
fill="#09090B"
21+
/>
22+
<path
23+
opacity="0.6"
24+
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"
25+
fill="#6B6B6D"
26+
/>
27+
<path
28+
opacity="0.4"
29+
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"
30+
fill="#9D9D9D"
31+
/>
32+
</svg>

kit/src/lib/InferenceSnippet/InferenceSnippet.svelte

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
import IconInferenceCerebras from "./IconInferenceCerebras.svelte";
1818
import IconInferenceCohere from "./IconInferenceCohere.svelte";
1919
import IconInferenceFal from "./IconInferenceFal.svelte";
20+
import IconInferenceFeatherless from "./IconInferenceFeatherless.svelte";
2021
import IconInferenceFireworks from "./IconInferenceFireworks.svelte";
22+
import IconInferenceGroq from "./IconInferenceGroq.svelte";
2123
import IconInferenceHf from "./IconInferenceHf.svelte";
2224
import IconInferenceHyperbolic from "./IconInferenceHyperbolic.svelte";
2325
import IconInferenceNebius from "./IconInferenceNebius.svelte";
2426
import IconInferenceNovita from "./IconInferenceNovita.svelte";
27+
import IconInferenceNscale from "./IconInferenceNscale.svelte";
2528
import IconInferenceReplicate from "./IconInferenceReplicate.svelte";
2629
import IconInferenceSambaNova from "./IconInferenceSambaNova.svelte";
2730
import IconInferenceTogetherAI from "./IconInferenceTogetherAI.svelte";
@@ -100,10 +103,13 @@
100103
cerebras: "Cerebras",
101104
cohere: "Cohere",
102105
"fal-ai": "fal",
106+
"featherless-ai": "Featherless",
103107
"fireworks-ai": "Fireworks",
108+
groq: "Groq",
104109
hyperbolic: "Hyperbolic",
105110
nebius: "Nebius AI Studio",
106111
novita: "Novita",
112+
nscale: "Nscale",
107113
replicate: "Replicate",
108114
sambanova: "SambaNova",
109115
together: "Together AI",
@@ -124,10 +130,13 @@
124130
cerebras: IconInferenceCerebras,
125131
cohere: IconInferenceCohere,
126132
"fal-ai": IconInferenceFal,
133+
"featherless-ai": IconInferenceFeatherless,
127134
"fireworks-ai": IconInferenceFireworks,
135+
groq: IconInferenceGroq,
128136
hyperbolic: IconInferenceHyperbolic,
129137
nebius: IconInferenceNebius,
130138
novita: IconInferenceNovita,
139+
nscale: IconInferenceNscale,
131140
replicate: IconInferenceReplicate,
132141
sambanova: IconInferenceSambaNova,
133142
together: IconInferenceTogetherAI,

0 commit comments

Comments
 (0)