Skip to content

Commit 831664e

Browse files
authored
Add icons + pretty names for some new providers (#688)
* Add icons + pretty names for some new providers * run prettier
1 parent c0c639e commit 831664e

File tree

7 files changed

+203
-0
lines changed

7 files changed

+203
-0
lines changed
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="#19E76E" />
18+
<path
19+
d="M7.20571 8.2H16.7486V11.4H10.4514C10.3371 11.4 10.2514 11.4914 10.2514 11.6V14.4C10.2514 14.5143 10.3429 14.6 10.4514 14.6H16.7486V17.8H13.7029C13.5886 17.8 13.5029 17.8914 13.5029 18V20.8C13.5029 20.9143 13.5943 21 13.7029 21H16.5486C16.6629 21 16.7486 20.9143 16.7486 20.8V17.8H19.8C19.9143 17.8 20 17.7086 20 17.6V14.8C20 14.6857 19.9086 14.6 19.8 14.6H16.7486V11.4H19.8C19.9143 11.4 20 11.3086 20 11.2V8.4C20 8.28571 19.9086 8.2 19.8 8.2H16.7486V5.2C16.7486 5.08571 16.6571 5 16.5486 5H7.20571C7.09143 5 7 5.09143 7 5.2V8C7 8.11429 7.09143 8.2 7.20571 8.2Z"
20+
fill="black"
21+
/>
22+
</svg>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 width="26" height="26" fill="white" />
18+
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#004EEB" />
19+
<path
20+
d="M6.86176 14.9387C5.83834 14.9428 5.00411 14.0905 5.00002 13.0366C4.99592 11.9827 5.82354 11.1342 6.83684 11.1302C7.85013 11.1262 8.68436 11.9785 8.68842 13.0219C8.69245 14.0654 7.8852 14.9347 6.86176 14.9387ZM16.3927 6.00001C15.0248 6.00545 14.9686 7.19524 12.8812 7.20354C10.7735 7.21192 10.5967 6.02306 9.35029 6.02802C8.32687 6.03209 7.50941 6.89099 7.51347 7.93445C7.51753 8.97791 8.35174 9.83024 9.36504 9.82622C10.7431 9.82072 10.7993 8.63095 12.8867 8.62265C14.9943 8.61427 15.1712 9.80311 16.4176 9.79817C17.441 9.7941 18.2585 8.9352 18.2544 7.89174C18.2504 6.84828 17.4161 5.99594 16.3927 6.00001ZM16.4322 16.1738C15.0542 16.1792 14.9979 17.369 12.9106 17.3773C10.8029 17.3857 10.626 16.1968 9.37967 16.2018C8.35625 16.2059 7.53881 17.0647 7.54285 18.1082C7.54691 19.1517 8.38114 20.004 9.39444 20C10.7725 19.9945 10.8287 18.8047 12.9161 18.7964C15.0237 18.788 15.2006 19.9769 16.447 19.9719C17.4704 19.9679 18.2878 19.109 18.2838 18.0655C18.2797 17.022 17.4557 16.1697 16.4322 16.1738ZM19.1484 11.0812C17.7602 11.0868 17.8157 12.3387 16.0728 12.3456C14.4617 12.352 14.4366 11.1104 12.8863 11.1165C11.9236 11.1204 11.1368 12.0313 11.1406 13.0226C11.1445 14.0139 11.9485 14.9185 12.9922 14.9144C14.3804 14.9088 14.3249 13.6569 16.0678 13.65C17.6789 13.6436 17.704 14.8852 19.2543 14.8791C20.2169 14.8752 21.0038 13.9643 21 12.973C21.0062 11.9816 20.2022 11.077 19.1484 11.0812Z"
21+
fill="white"
22+
/>
23+
</svg>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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
18+
x="2.43628"
19+
y="2.43652"
20+
width="21.1274"
21+
height="21.1274"
22+
rx="3.54011"
23+
fill="#FA0000"
24+
fill-opacity="0.8"
25+
/>
26+
<path
27+
d="M6.01244 6C6.01244 6 16.0931 8.82252 21 10.42C21 11.4496 21 12.4792 21 13.54C16.108 14.7345 11.1331 15.6974 6.19878 16.712C11.0832 16.7206 15.9676 16.7292 21 16.738C21 17.4845 21 18.2309 21 19C16.0541 19 11.1082 19 6.01244 19C6.01244 17.4384 6.01244 15.8769 6.01244 14.268C9.87007 13.4923 13.7057 12.6124 17.5659 11.85C17.5659 11.8414 17.5659 11.8328 17.5659 11.824C13.7616 10.7923 9.98546 9.6648 6.18599 8.61655C6.15829 8.60897 6.13059 8.60138 6.10205 8.59357C6.03906 8.574 6.03906 8.574 6.01244 8.548C5.98526 7.70021 6.01086 6.84781 6.01244 6Z"
28+
fill="#F1F0E6"
29+
/>
30+
</svg>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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
18+
x="2.43628"
19+
y="2.43652"
20+
width="21.1274"
21+
height="21.1274"
22+
rx="3.54011"
23+
fill="#8C40EF"
24+
fill-opacity="0.8"
25+
/>
26+
<path
27+
d="M12.8596 18H15.8212C16.135 17.961 16.4253 17.8099 16.641 17.5733C16.8566 17.3366 16.9838 17.0297 17 16.7065V12.355C17 11.7778 16.5406 11.3104 15.9739 11.3104C15.4078 11.3104 14.9484 11.7778 14.9484 12.355V15.1175C14.9466 15.3245 14.8652 15.5225 14.7218 15.6685C14.5784 15.8146 14.3846 15.8969 14.1824 15.8977H12.8456C12.5743 15.898 12.3141 16.0082 12.1218 16.2042C11.9296 16.4003 11.8209 16.6662 11.8195 16.944V16.9584C11.8229 17.2376 11.9343 17.504 12.1293 17.6993C12.3242 17.8945 12.5869 18.0027 12.8596 18ZM11.0844 14.8101C10.9423 14.8105 10.8016 14.7822 10.6703 14.7269C10.5389 14.6717 10.4195 14.5904 10.3188 14.4879C10.2181 14.3854 10.1381 14.2635 10.0834 14.1293C10.0287 13.9951 10.0004 13.8512 10 13.7058V9.35497C10.0177 9.01674 10.1511 8.69567 10.3767 8.44796C10.6024 8.20025 10.9059 8.04168 11.2342 8H14.2028C14.4904 7.99963 14.7666 8.11479 14.9721 8.32073C15.1776 8.52666 15.2959 8.80694 15.3017 9.10129C15.3047 9.39676 15.1921 9.68148 14.9887 9.89159C14.7846 10.1023 14.5071 10.2211 14.2168 10.2223H12.873C12.4824 10.2223 12.1658 10.5446 12.1658 10.9427V13.7052C12.1658 14.3141 11.6819 14.8083 11.0838 14.8095L11.0844 14.8101Z"
28+
fill="white"
29+
/>
30+
<path
31+
d="M14.0683 6.94927C15.1121 6.94772 16.1139 7.3493 16.8537 8.06581C17.2186 8.41935 17.5079 8.83979 17.7047 9.3028C17.9015 9.76582 18.0019 10.2622 18.0002 10.7633V18.0803C17.9544 18.3283 17.8289 18.5559 17.6419 18.7303C17.455 18.9048 17.216 19.0171 16.9593 19.0513H11.9312C10.8893 19.0523 9.88944 18.652 9.15008 17.9378C8.78547 17.5853 8.49616 17.1661 8.29883 16.7043C8.10149 16.2425 8.00004 15.7473 8.00031 15.2472V8.1326C8 7.81898 8.1269 7.51791 8.35342 7.29478C8.57995 7.07166 8.88781 6.9445 9.21014 6.94092L14.0683 6.94927ZM14.0854 5.00001H9.13399C7.4029 5.00367 6.00107 6.36178 6 8.03607V15.2832C6.00014 16.0353 6.15331 16.78 6.4507 17.4743C6.74808 18.1685 7.18379 18.7987 7.7327 19.3283C8.84531 20.4019 10.3497 21.003 11.9167 21H17.1524C18.6443 20.8836 19.8402 19.7567 20 18.3166V10.7069C19.999 9.95556 19.8452 9.21182 19.5475 8.51855C19.2497 7.82528 18.8139 7.19619 18.2651 6.66753C17.1533 5.59624 15.6508 4.99673 14.086 5.00001H14.0854Z"
32+
fill="white"
33+
/>
34+
</svg>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 width="26" height="26" fill="white" />
18+
<rect x="2.43628" y="2.43652" width="21.1274" height="21.1274" rx="3.54011" fill="#0A0A0B" />
19+
<path
20+
d="M15.2115 7C15.4414 7 15.6205 7.2001 15.589 7.42784C15.0093 11.6268 12.9177 15.3428 9.8813 18.009C9.61275 18.2447 9.26479 18.367 8.90744 18.367H4.77065C4.34503 18.367 4 18.022 4 17.5964V16.8959C4 16.6004 4.17001 16.3328 4.43082 16.1939C7.67955 14.4643 10.0824 11.356 10.8593 7.64962C10.9373 7.27775 11.258 7 11.638 7H15.2115Z"
21+
fill="white"
22+
/>
23+
<path
24+
d="M8.21209 7C8.43165 7 8.60768 7.18357 8.58754 7.40221C8.33531 10.1402 6.78112 12.501 4.54959 13.86C4.30366 14.0098 4 13.8254 4 13.5375V7.77065C4 7.34503 4.34503 7 4.77065 7H8.21209Z"
25+
fill="white"
26+
/>
27+
<path
28+
d="M21.2395 7C21.7086 7 22.0696 7.41575 21.9886 7.87774C21.37 11.4061 20.0981 14.7095 18.3026 17.6591C18.0313 18.1047 17.5424 18.367 17.0207 18.367H12.9318C12.6026 18.367 12.4226 17.9788 12.628 17.7215C14.9314 14.8344 16.5744 11.3972 17.3281 7.63852C17.4019 7.27064 17.7212 7 18.0964 7H21.2395Z"
29+
fill="white"
30+
/>
31+
</svg>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
<g clip-path="url(#clip0_1306_2)">
18+
<g clip-path="url(#clip1_1306_2)">
19+
<path
20+
d="M21.242 24.7088H4.75805C2.84271 24.7088 1.29138 23.1575 1.29138 21.2422V4.75817C1.29138 2.84284 2.84271 1.2915 4.75805 1.2915H21.2507C23.166 1.2915 24.7174 2.84284 24.7174 4.75817V21.2508C24.7087 23.1575 23.1574 24.7088 21.242 24.7088Z"
21+
fill="#2D2D2D"
22+
stroke="white"
23+
stroke-width="0.6317"
24+
stroke-miterlimit="10"
25+
/>
26+
<path
27+
d="M13.4074 6.15369L12.2808 7.75702C12.1074 8.00835 11.8128 8.16435 11.5008 8.16435H5.34742V6.14502C5.33875 6.15369 13.4074 6.15369 13.4074 6.15369Z"
28+
fill="white"
29+
/>
30+
<path d="M21.0601 6.15381L11.3881 19.8558H4.94006L14.6121 6.15381H21.0601Z" fill="white" />
31+
<path
32+
d="M12.5928 19.8558L13.7281 18.2438C13.9014 17.9924 14.1961 17.8364 14.5081 17.8364H20.6528V19.8558H12.5928Z"
33+
fill="white"
34+
/>
35+
</g>
36+
</g>
37+
<defs>
38+
<clipPath id="clip0_1306_2">
39+
<rect width="26" height="26" fill="white" />
40+
</clipPath>
41+
<clipPath id="clip1_1306_2">
42+
<rect width="26" height="26" fill="white" />
43+
</clipPath>
44+
</defs>
45+
</svg>

kit/src/lib/InferenceSnippet/InferenceSnippet.svelte

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
import IconPython from "$lib/IconPython.svelte";
1515
1616
import IconInferenceBlackForest from "./IconInferenceBlackForest.svelte";
17+
import IconInferenceBaseten from "./IconInferenceBaseten.svelte";
1718
import IconInferenceCerebras from "./IconInferenceCerebras.svelte";
19+
import IconInferenceClarifai from "./IconInferenceClarifai.svelte";
1820
import IconInferenceCohere from "./IconInferenceCohere.svelte";
1921
import IconInferenceFal from "./IconInferenceFal.svelte";
2022
import IconInferenceFeatherless from "./IconInferenceFeatherless.svelte";
@@ -26,9 +28,13 @@
2628
import IconInferenceNovita from "./IconInferenceNovita.svelte";
2729
import IconInferenceNscale from "./IconInferenceNscale.svelte";
2830
import IconInferenceOvh from "./IconInferenceOvh.svelte";
31+
import IconInferencePublicAI from "./IconInferencePublicAI.svelte";
2932
import IconInferenceReplicate from "./IconInferenceReplicate.svelte";
3033
import IconInferenceSambaNova from "./IconInferenceSambaNova.svelte";
34+
import IconInferenceScaleway from "./IconInferenceScaleway.svelte";
3135
import IconInferenceTogetherAI from "./IconInferenceTogetherAI.svelte";
36+
import IconInferenceWavespeed from "./IconInferenceWavespeed.svelte";
37+
import IconInferenceZai from "./IconInferenceZai.svelte";
3238
import Dropdown from "$lib/Dropdown.svelte";
3339
import DropdownEntry from "$lib/DropdownEntry.svelte";
3440
import IconSettings from "./IconSettings.svelte";
@@ -104,7 +110,9 @@
104110
> = {
105111
// inference providers
106112
"black-forest-labs": "Black Forest Labs",
113+
baseten: "Baseten",
107114
cerebras: "Cerebras",
115+
clarifai: "Clarifai",
108116
cohere: "Cohere",
109117
"fal-ai": "fal",
110118
"featherless-ai": "Featherless",
@@ -116,9 +124,13 @@
116124
novita: "Novita",
117125
nscale: "Nscale",
118126
ovhcloud: "OVHcloud AI Endpoints",
127+
publicai: "PublicAI",
119128
replicate: "Replicate",
120129
sambanova: "SambaNova",
130+
scaleway: "Scaleway",
121131
together: "Together AI",
132+
wavespeed: "WaveSpeedAI",
133+
"zai-org": "Z.ai",
122134
// languages
123135
sh: "cURL",
124136
python: "Python",
@@ -134,7 +146,9 @@
134146
> = {
135147
// inference providers
136148
"black-forest-labs": IconInferenceBlackForest,
149+
baseten: IconInferenceBaseten,
137150
cerebras: IconInferenceCerebras,
151+
clarifai: IconInferenceClarifai,
138152
cohere: IconInferenceCohere,
139153
"fal-ai": IconInferenceFal,
140154
"featherless-ai": IconInferenceFeatherless,
@@ -145,9 +159,13 @@
145159
novita: IconInferenceNovita,
146160
nscale: IconInferenceNscale,
147161
ovhcloud: IconInferenceOvh,
162+
publicai: IconInferencePublicAI,
148163
replicate: IconInferenceReplicate,
149164
sambanova: IconInferenceSambaNova,
165+
scaleway: IconInferenceScaleway,
150166
together: IconInferenceTogetherAI,
167+
wavespeed: IconInferenceWavespeed,
168+
"zai-org": IconInferenceZai,
151169
"hf-inference": IconInferenceHf,
152170
// languages
153171
sh: IconCurl,

0 commit comments

Comments
 (0)