Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33be44552c | ||
|
|
285ca1a865 | ||
|
|
55b630c1f6 | ||
|
|
20756bbba8 | ||
|
|
9260d4d112 | ||
|
|
022e6350c7 | ||
|
|
2fc28466e8 | ||
|
|
a700d92235 | ||
|
|
95cfda05be | ||
|
|
0f1783dad9 | ||
|
|
7dfc7867f1 | ||
|
|
62ac8db1b8 | ||
|
|
877da3f734 | ||
|
|
62e9bdadb6 | ||
|
|
1dd2250d1e | ||
|
|
5bb15e680d | ||
|
|
caa3521f13 | ||
|
|
d996411611 | ||
|
|
68b75c7e5f | ||
|
|
b780073b8d | ||
|
|
e524b01b9a | ||
|
|
f753ddacdb | ||
|
|
a6538b3644 | ||
|
|
d70426e098 | ||
|
|
a4895edaac | ||
|
|
724ee7c132 | ||
|
|
b9684cc0e8 | ||
|
|
c22a18f293 | ||
|
|
173d5c6add | ||
|
|
d50aa210b7 | ||
|
|
7447979e06 | ||
|
|
189bd4139b | ||
|
|
350704d762 | ||
|
|
75c0d2cad3 | ||
|
|
c525d2a0fe | ||
|
|
0dc4a5f947 | ||
|
|
ad3e1e7d02 | ||
|
|
efc8827451 | ||
|
|
947990c838 | ||
|
|
90a383e04e | ||
|
|
9342481774 | ||
|
|
c7e827b320 | ||
|
|
74dc5f8b46 | ||
|
|
dd74f0c51c | ||
|
|
a7ab4866a2 | ||
|
|
3f0137ae71 | ||
|
|
b3ba5f7727 | ||
|
|
4bbb2c486f | ||
|
|
5fe04aee59 | ||
|
|
3e5716e147 | ||
|
|
c4aac4aea7 | ||
|
|
6c89d5fef7 | ||
|
|
19d26ba611 | ||
|
|
fbaf50d323 |
No files matched your search
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M37.9998 23.021C33.7998 25.2889 29.5698 27.3649 24.8614 28.3069C23.8114 28.5154 22.6474 28.5154 21.5809 28.3714C20.5639 28.2439 20.0554 27.3484 20.4169 26.4064C20.7619 25.5289 21.2209 24.635 21.8119 23.9C23.0899 22.3025 24.5329 20.849 25.8289 19.268C26.6203 18.2991 27.3335 17.2689 27.9618 16.187C28.4208 15.4205 28.2078 14.4935 27.4038 14.111C26.0584 13.4556 24.6154 12.9936 23.1889 12.4986C23.0239 12.4341 22.7779 12.6096 22.4509 12.7221C22.8604 13.0881 23.1559 13.3596 23.5654 13.727C19.3339 14.447 15.3305 15.467 11.4455 16.874C11.4275 16.9535 11.396 17.0165 11.411 17.0495C11.9855 17.927 11.723 18.5975 10.886 19.1405C10.5611 19.3531 10.2732 19.6176 10.034 19.9235C12.593 20.6735 14.873 20.243 17.0539 18.821C16.9234 18.6305 16.7914 18.455 16.6609 18.263C17.4799 18.407 17.9719 18.854 18.0379 19.556C18.0544 19.7165 17.9569 19.8755 17.9074 20.036C17.7919 19.907 17.6449 19.781 17.5474 19.6355C17.4799 19.5395 17.4634 19.4285 17.4154 19.268C14.8235 20.993 12.035 21.425 8.96751 20.531C8.96751 21.137 8.93451 21.6485 8.98401 22.1435C9.01701 22.574 8.83701 22.766 8.44401 22.9895C7.55752 23.5325 6.63803 24.092 5.90003 24.8105C5.01504 25.6879 5.34354 26.7589 6.54053 27.2059C7.90102 27.7159 9.329 27.7309 10.7555 27.5569C12.4445 27.3484 14.1005 27.0769 15.9394 26.8219C13.79 27.8269 11.6735 28.5319 9.4445 28.8169C7.88452 29.0269 6.32753 29.1379 4.78554 28.6909C2.57156 28.0684 1.58607 26.4394 2.16057 24.251C2.70206 22.2065 4.01455 20.5775 5.42454 19.076C10.133 14.078 16.0864 11.5401 22.9744 11.0286C24.5824 10.9176 26.2069 11.1246 27.7143 11.7951C29.8308 12.7536 30.7173 14.78 29.6838 16.826C29.0118 18.1835 28.0758 19.4285 27.1413 20.6585C26.2234 21.872 25.1899 22.9895 24.2224 24.155C23.9434 24.506 23.6809 24.875 23.4679 25.2724C23.0569 26.0224 23.3359 26.5174 24.2059 26.4394C26.0254 26.2624 27.8808 26.1199 29.6358 25.6729C32.2098 25.0174 34.7193 24.092 37.2618 23.2775C37.5243 23.213 37.7703 23.117 37.9998 23.0225V23.021Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M26.9568 9.88184H22.1265L30.7753 31.7848H35.4917L26.9568 9.88184ZM13.028 9.88184L4.4917 31.7848H9.32203L11.2305 27.1793H20.2166L22.0126 31.6724H26.8444L18.0832 9.88184H13.028ZM12.5783 23.1361L15.4987 15.3853L18.5315 23.1361H12.5783Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 355 B |
@@ -0,0 +1,5 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.14882 13.5552C9.58082 13.5552 10.4448 13.5336 11.6544 13.0368C13.0584 12.4536 15.8232 11.4168 17.832 10.3368C19.236 9.5808 19.8408 8.5872 19.8408 7.248C19.8408 5.412 18.3504 3.9 16.4928 3.9H8.71682C6.06002 3.9 3.90002 6.06 3.90002 8.7168C3.90002 11.3736 5.93042 13.5552 9.14882 13.5552Z" fill="currentColor"/>
|
||||
<path d="M10.4664 16.86C10.4664 15.564 11.244 14.376 12.4536 13.8792L14.8944 12.864C17.3784 11.8488 20.1 13.6632 20.1 16.3416C20.1 18.4152 18.4152 20.1 16.3416 20.1H13.6848C11.9136 20.1 10.4664 18.6528 10.4664 16.86Z" fill="currentColor"/>
|
||||
<path d="M6.68642 14.1816C5.15282 14.1816 3.90002 15.4344 3.90002 16.968V17.3352C3.90002 18.8472 5.15282 20.1 6.68642 20.1C8.22003 20.1 9.47283 18.8472 9.47283 17.3136V16.9464C9.45123 15.4344 8.22003 14.1816 6.68642 14.1816Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 913 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M35.6638 9.91965C35.3251 9.75432 35.1785 10.0703 34.9811 10.2316C34.9131 10.2836 34.8558 10.3516 34.7985 10.413C34.3025 10.9423 33.7238 11.289 32.9678 11.2476C31.8625 11.1863 30.9186 11.533 30.0839 12.3783C29.9066 11.3356 29.3173 10.7143 28.4213 10.3143C27.9519 10.1063 27.4773 9.89965 27.148 9.44766C26.9186 9.12633 26.856 8.76767 26.7413 8.41568C26.668 8.20235 26.5946 7.98502 26.3506 7.94902C26.084 7.90769 25.98 8.13035 25.876 8.31702C25.4587 9.07967 25.2973 9.91965 25.3133 10.7703C25.3493 12.6849 26.1573 14.2102 27.764 15.2942C27.9466 15.4182 27.9933 15.5435 27.9359 15.7249C27.8266 16.0982 27.696 16.4609 27.5813 16.8355C27.508 17.0742 27.3986 17.1248 27.1426 17.0222C26.2777 16.6504 25.4919 16.1164 24.828 15.4489C23.6854 14.3449 22.6534 13.1263 21.3654 12.1716C21.067 11.9511 20.7606 11.7416 20.4468 11.5436C19.1335 10.2676 20.6201 9.21967 20.9641 9.09567C21.3241 8.965 21.0881 8.51968 19.9254 8.52501C18.7628 8.53035 17.6988 8.91834 16.3428 9.43699C16.1413 9.51421 15.934 9.57529 15.7229 9.61966C14.4557 9.38091 13.1598 9.33506 11.8789 9.48366C9.36565 9.76365 7.35902 10.953 5.88305 12.9809C4.10975 15.4182 3.69243 18.1888 4.20308 21.0768C4.74041 24.122 6.29504 26.6433 8.683 28.6139C11.1603 30.6579 14.0122 31.6592 17.2668 31.4672C19.2428 31.3539 21.4441 31.0886 23.9254 28.9873C24.552 29.2993 25.208 29.4233 26.2986 29.5166C27.1386 29.5953 27.9466 29.4766 28.5719 29.3459C29.5519 29.1379 29.4839 28.23 29.1306 28.0646C26.2573 26.726 26.888 27.2713 26.3133 26.83C27.7746 25.102 29.9746 23.3074 30.8359 17.4928C30.9026 17.0302 30.8452 16.7395 30.8359 16.3662C30.8306 16.1395 30.8826 16.0502 31.1426 16.0249C31.8639 15.95 32.5637 15.7349 33.2025 15.3915C35.0638 14.3742 35.8158 12.7049 35.9931 10.7023C36.0198 10.3956 35.9878 10.081 35.6638 9.91965ZM19.4414 27.9433C16.6562 25.754 15.3055 25.0327 14.7482 25.0634C14.2256 25.0954 14.3202 25.6913 14.4349 26.0807C14.5549 26.4647 14.7109 26.7286 14.9295 27.066C15.0815 27.2886 15.1855 27.6206 14.7789 27.87C13.8816 28.4246 12.3229 27.6833 12.2496 27.6473C10.435 26.578 8.91632 25.1673 7.84834 23.2381C6.81637 21.3808 6.21638 19.3888 6.11771 17.2622C6.09105 16.7475 6.24171 16.5662 6.7537 16.4729C7.42583 16.3442 8.11451 16.3267 8.79233 16.4209C11.6349 16.8368 14.0536 18.1075 16.0828 20.1194C17.2402 21.2661 18.1161 22.6354 19.0188 23.974C19.9788 25.3953 21.0108 26.75 22.3254 27.8593C22.7894 28.2486 23.1587 28.5446 23.5134 28.7619C22.4441 28.8819 20.6601 28.9086 19.4414 27.9433ZM20.7748 19.3568C20.7745 19.2906 20.7904 19.2253 20.8211 19.1666C20.8517 19.1078 20.8962 19.0575 20.9507 19.0198C21.0052 18.9821 21.068 18.9583 21.1337 18.9503C21.1995 18.9424 21.2662 18.9505 21.3281 18.9741C21.407 19.0024 21.475 19.0546 21.5228 19.1235C21.5706 19.1923 21.5958 19.2743 21.5947 19.3581C21.5949 19.4123 21.5843 19.4659 21.5636 19.5159C21.5428 19.5659 21.5123 19.6113 21.4738 19.6494C21.4354 19.6875 21.3897 19.7176 21.3395 19.7378C21.2893 19.7581 21.2356 19.7682 21.1814 19.7675C21.1277 19.7676 21.0745 19.7571 21.0248 19.7365C20.9752 19.7158 20.9302 19.6855 20.8925 19.6473C20.8548 19.609 20.825 19.5636 20.805 19.5138C20.785 19.4639 20.7739 19.4105 20.7748 19.3568ZM24.9213 21.4848C24.6547 21.5928 24.3893 21.6861 24.1347 21.6981C23.7516 21.7114 23.3756 21.5918 23.0707 21.3594C22.7054 21.0528 22.4441 20.8821 22.3347 20.3488C22.297 20.0881 22.3042 19.823 22.3561 19.5648C22.4494 19.1288 22.3454 18.8488 22.0374 18.5955C21.7881 18.3875 21.4694 18.3302 21.1201 18.3302C21.0005 18.3232 20.8843 18.2875 20.7814 18.2262C20.6348 18.1542 20.5148 17.9728 20.6294 17.7488C20.6668 17.6768 20.8428 17.5008 20.8854 17.4688C21.3601 17.1995 21.9081 17.2875 22.4134 17.4902C22.8827 17.6822 23.2374 18.0342 23.748 18.5328C24.2694 19.1341 24.364 19.3008 24.6613 19.7515C24.896 20.1048 25.1093 20.4674 25.2547 20.8821C25.344 21.1421 25.2293 21.3541 24.9213 21.4848Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M37 20.034C27.8809 20.5837 20.5808 27.8809 20.0326 37H19.966C19.4163 27.8809 12.1177 20.5837 3 20.034V19.9674C12.1191 19.4163 19.4163 12.1191 19.966 3H20.0326C20.5822 12.1191 27.8809 19.4163 37 19.9674V20.034Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 333 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M27.1942 9.03509C24.4881 9.03509 22.3726 11.0731 20.4574 13.6623C17.8258 10.3114 15.6255 9.03509 12.9925 9.03509C7.62404 9.03509 3.51001 16.0234 3.51001 23.4181C3.51001 28.0453 5.74831 30.9649 9.49831 30.9649C12.1971 30.9649 14.1387 29.693 17.5904 23.6594C17.5904 23.6594 19.029 21.1199 20.0173 19.3699C20.3643 19.9293 20.7298 20.5327 21.1138 21.1798L22.7322 23.902C25.8843 29.1769 27.6416 30.9649 30.8229 30.9649C34.4778 30.9649 36.51 28.0058 36.51 23.2822C36.51 15.538 32.3039 9.03509 27.1942 9.03509ZM14.9574 22.0263C12.1606 26.4123 11.1928 27.3962 9.63574 27.3962C8.03194 27.3962 7.07872 25.9883 7.07872 23.4781C7.07872 18.1096 9.75562 12.6199 12.9471 12.6199C14.6752 12.6199 16.1197 13.617 18.3316 16.7836C16.2308 20.0058 14.9574 22.0263 14.9574 22.0263ZM25.5202 21.4751L23.5831 18.2456C23.0969 17.4514 22.5938 16.6676 22.0743 15.8947C23.8185 13.2032 25.2556 11.8611 26.9676 11.8611C30.5202 11.8611 33.3638 17.095 33.3638 23.5219C33.3638 25.9722 32.5612 27.3947 30.8989 27.3947C29.3053 27.3947 28.5451 26.3421 25.5188 21.4737" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.8758 9.20865C17.8758 8.59461 17.3777 8.09634 16.7663 8.09634C16.155 8.09634 15.6567 8.59575 15.6567 9.20865V27.6446C15.6567 29.0714 14.4985 30.2324 13.0755 30.2324C11.6523 30.2324 10.4941 29.0714 10.4941 27.6446V15.8167C10.4941 15.2027 9.99591 14.7044 9.38453 14.7044C8.77316 14.7044 8.275 15.2038 8.275 15.8167V20.8301C8.275 22.2567 7.11678 23.4179 5.69364 23.4179C4.2705 23.4179 3.1123 22.2567 3.1123 20.8301V19.0129C3.1123 18.6054 3.44177 18.2752 3.84822 18.2752C4.25467 18.2752 4.58413 18.6054 4.58413 19.0129V20.8301C4.58413 21.4441 5.08227 21.9424 5.69364 21.9424C6.30502 21.9424 6.80317 21.443 6.80317 20.8301V15.8167C6.80317 14.39 7.96139 13.2289 9.38453 13.2289C10.8077 13.2289 11.9659 14.39 11.9659 15.8167V27.6446C11.9659 28.2587 12.4641 28.7569 13.0755 28.7569C13.6868 28.7569 14.1849 28.2575 14.1849 27.6446V20.4123V9.20865C14.1849 7.78194 15.3431 6.62082 16.7663 6.62082C18.1894 6.62082 19.3476 7.78194 19.3476 9.20865V24.4746C19.3476 24.8821 19.0182 25.2123 18.6117 25.2123C18.2053 25.2123 17.8758 24.8821 17.8758 24.4746V9.20865ZM31.531 13.2289C30.1079 13.2289 28.9496 14.39 28.9496 15.8167V25.6969C28.9496 26.311 28.4515 26.8093 27.8401 26.8093C27.2287 26.8093 26.7306 26.3099 26.7306 25.6969V9.20865C26.7306 7.78194 25.5723 6.62082 24.1492 6.62082C22.7261 6.62082 21.5679 7.78194 21.5679 9.20865V30.1383C21.5679 30.7523 21.0697 31.2506 20.4583 31.2506C19.8469 31.2506 19.3488 30.7511 19.3488 30.1383V27.5471C19.3488 27.1396 19.0194 26.8093 18.6129 26.8093C18.2065 26.8093 17.877 27.1396 17.877 27.5471V30.1383C17.877 31.565 19.0352 32.7261 20.4583 32.7261C21.8815 32.7261 23.0397 31.565 23.0397 30.1383V9.20865C23.0397 8.59461 23.5378 8.09634 24.1492 8.09634C24.7605 8.09634 25.2587 8.59575 25.2587 9.20865V25.6969C25.2587 27.1237 26.417 28.2848 27.8401 28.2848C29.2632 28.2848 30.4215 27.1237 30.4215 25.6969V15.8167C30.4215 15.2027 30.9196 14.7044 31.531 14.7044C32.1424 14.7044 32.6405 15.2038 32.6405 15.8167V24.4746C32.6405 24.8821 32.97 25.2123 33.3764 25.2123C33.7829 25.2123 34.1123 24.8821 34.1123 24.4746V15.8167C34.1123 14.39 32.9541 13.2289 31.531 13.2289Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.92783 8.88101H13.357V13.3088H17.7861V17.738H17.7835H22.2152V13.3088H26.6418V8.88101H31.0722V26.5949H35.5V31.0241H22.2139V26.5962H17.7861V22.1671H13.3557V26.5949L17.7861 26.5962V31.0241H4.5V26.5949H8.92783V8.88101ZM22.2139 26.5962H26.6418V22.1671H22.2152V26.5962H22.2139Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 397 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5.85893 26.3499L18.1801 29.6463C18.1635 30.5223 18.1894 31.3987 18.2576 32.2722L25.9507 34.3298C23.669 35.2716 21.1952 35.6547 18.7355 35.4471L18.503 35.4265L18.4462 35.4213L18.3377 35.4097L18.2163 35.3968C18.1486 35.3886 18.081 35.38 18.0135 35.3709L17.8753 35.3528L17.7332 35.3322C17.5951 35.3121 17.4573 35.2901 17.3198 35.2663L17.2656 35.256L17.1687 35.2392L17.0305 35.2133L16.9401 35.194L16.82 35.1694L16.7231 35.1488L16.6004 35.1229L16.4751 35.0932L16.3537 35.0648L16.2659 35.0428L16.1522 35.0144L16.0359 34.9834L15.9132 34.9511L15.8073 34.9214L15.6665 34.8827L15.5864 34.8568L15.4779 34.8245L15.3578 34.7884L15.2222 34.7445L15.1473 34.7199L15.0439 34.6863L14.9277 34.6463L14.8424 34.6153C14.8235 34.6089 14.8045 34.6025 14.7856 34.5959L14.6978 34.5636L14.5673 34.5158L14.4937 34.4874L14.3904 34.4487L14.278 34.4035L14.1643 34.3583L14.0623 34.3169L13.9396 34.2653L13.8582 34.2291L13.7768 34.1942C13.7591 34.1865 13.7415 34.1788 13.7239 34.171L13.6386 34.1322L13.5056 34.0715L13.4384 34.0405L13.3144 33.9811L13.2343 33.9423L13.1258 33.8907L13.0147 33.8338L12.8946 33.7731L12.8274 33.7383L12.6944 33.6672L12.6208 33.6285L12.5459 33.5871C12.526 33.576 12.5062 33.5648 12.4864 33.5536L12.365 33.4851L12.2875 33.4412L12.2217 33.4024L12.1287 33.3495L12.0227 33.2849L11.9026 33.2126L11.8354 33.1712L11.7269 33.1028L11.6482 33.0524L11.5461 32.9878L11.4557 32.9271L11.3872 32.8819C11.3639 32.8665 11.3407 32.851 11.3175 32.8354L11.2607 32.7966L11.2038 32.7579C11.1866 32.7459 11.1693 32.7338 11.1522 32.7217L11.0785 32.6701L10.9804 32.6003L10.8912 32.5357L10.7957 32.466L10.7233 32.4117L10.6252 32.3381L10.527 32.2619L10.4159 32.1753L10.3578 32.1301L10.2751 32.063L10.1795 31.9855L10.0646 31.8912L10.0052 31.8408L9.94575 31.7904C9.92717 31.7746 9.90866 31.7586 9.8902 31.7426L9.83208 31.691L9.75329 31.6225L9.66287 31.5424L9.57504 31.4649L9.49496 31.39L9.40841 31.3099L9.33996 31.2453L9.22629 31.1368C9.18345 31.0953 9.14082 31.0535 9.09842 31.0116L9.06096 30.9754L9.008 30.9211L8.91887 30.8307L8.85429 30.7648L8.78971 30.6964C8.71592 30.6207 8.64357 30.5436 8.57271 30.4652L8.46938 30.3515L8.38929 30.2611L8.29758 30.1578L8.24333 30.0945L8.17488 30.0144L8.09996 29.9266L8.04054 29.8542C8.02888 29.8401 8.01725 29.8258 8.00567 29.8116L7.94754 29.7406L7.86229 29.6346L7.80934 29.5675L7.74475 29.4848L7.71892 29.4525C6.97985 28.4945 6.3556 27.4532 5.85893 26.3499ZM4.54143 18.8661L19.2057 22.7888C18.9602 23.6439 18.758 24.5109 18.5999 25.3864L32.5718 29.1244C31.8777 30.0748 31.0782 30.9436 30.1887 31.7142L5.34872 25.0673L5.32805 25.0079L5.28284 24.8736C5.26087 24.8078 5.23934 24.742 5.21826 24.676L5.20922 24.6462C5.1098 24.3302 5.02063 24.011 4.94184 23.6891L4.90309 23.5264L4.87984 23.423L4.85272 23.2978L4.82947 23.1931L4.80622 23.0769L4.78426 22.9684L4.76101 22.847C4.72743 22.6648 4.69643 22.4814 4.6693 22.2967L4.64735 22.1443L4.63314 22.0371L4.61635 21.9053C4.6077 21.8361 4.59952 21.7668 4.5918 21.6974L4.58535 21.6367C4.48884 20.7162 4.47414 19.7891 4.54143 18.8661ZM6.59905 12.214L22.0318 16.3421C21.5565 17.1236 21.1212 17.9322 20.7273 18.764L35.3166 22.6674C35.1332 23.7266 34.8413 24.7496 34.4538 25.7222L19.5351 21.731L4.66026 17.7526L4.67964 17.6235L4.68997 17.5602L4.70289 17.4736L4.72226 17.3613L4.74551 17.2347C4.7791 17.0435 4.81785 16.8536 4.85918 16.6638L4.89534 16.5036L4.92118 16.3938L4.95218 16.2685C4.98059 16.1523 5.0103 16.036 5.04259 15.9224L5.07876 15.7906L5.10847 15.6834L5.14722 15.5542L5.17951 15.4483L5.21826 15.3243L5.25184 15.2184L5.29189 15.0957C5.62637 14.0924 6.06355 13.1262 6.59646 12.2127L6.59905 12.214ZM12.3366 6.53068L26.913 10.4289C26.1438 11.1271 25.4158 11.8693 24.7327 12.6519L34.8374 15.3553C35.1823 16.4558 35.4083 17.608 35.5 18.7976L7.22034 11.2336L7.27846 11.1497L7.31334 11.098L7.365 11.027L7.42442 10.943L7.49546 10.8448L7.56521 10.7518L7.64788 10.6407L7.71246 10.5568L7.78609 10.4625L7.85713 10.3721L7.93463 10.2765L8.00567 10.1874L8.08963 10.0879L8.15938 10.0027L8.24463 9.90321L8.31308 9.82571L8.40608 9.71979L8.47454 9.64229L8.56108 9.54671L8.63083 9.47179L8.72512 9.37104L8.80004 9.29354L8.88142 9.207L9.09842 8.98742L9.22758 8.86084L9.30379 8.7885L9.40196 8.69679C10.2922 7.86254 11.2771 7.13554 12.3366 6.53068ZM20.022 4.50018H20.1473L20.2532 4.50147L20.3423 4.50277L20.4121 4.50535L20.4999 4.50793L20.5593 4.50922L20.6575 4.5131L20.7182 4.51568L20.7957 4.51956L20.8655 4.52214L20.9778 4.5286L21.1135 4.53764L21.2995 4.55185L21.4131 4.56089L21.47 4.56606L21.5694 4.57639L21.6753 4.58672L21.736 4.59318L21.8678 4.60868L21.9324 4.61643L22.0719 4.63452L22.1765 4.64743L22.2308 4.65518L22.3147 4.6681L22.5821 4.70943L22.6725 4.72493L22.7565 4.73914L22.9373 4.77272L23.0561 4.79597L23.1982 4.82439L23.2576 4.83731L23.3545 4.85797L23.4075 4.87089L23.4875 4.88768L23.5418 4.9006L23.6257 4.91997L23.689 4.93547L23.7807 4.95743L23.9047 4.98843L24.0494 5.02718L24.1954 5.06593L24.3413 5.10726L24.4059 5.12664L24.4963 5.15247L24.5971 5.18347L24.6914 5.21318L24.756 5.23385L24.8205 5.25451L24.9187 5.28681L25.0466 5.32943L25.1783 5.37593L25Line truncated
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.7 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M16.1801 15.8791V14.0283C16.3472 14.0155 16.5271 14.0026 16.7199 14.0026C21.7966 13.8356 25.1254 18.3596 25.1254 18.3596C25.1254 18.3596 21.5267 23.3463 17.671 23.3463C17.1569 23.3463 16.6557 23.2692 16.1801 23.1021V17.4728C18.1465 17.7298 18.545 18.591 19.7274 20.5702L22.375 18.3468C22.375 18.3468 20.4343 15.8277 17.1955 15.8277C16.8356 15.8277 16.5014 15.8405 16.1801 15.8791ZM16.1801 9.75492V12.5246C16.3472 12.5118 16.5271 12.4989 16.7199 12.4861C23.763 12.2547 28.377 18.2696 28.377 18.2696C28.377 18.2696 23.0819 24.683 17.5939 24.683C17.0798 24.683 16.6171 24.6444 16.1801 24.5545V26.2767C16.5528 26.3152 16.9384 26.341 17.3625 26.341C22.4649 26.341 26.1664 23.7448 29.7523 20.6473C30.3435 21.1229 32.7597 22.2796 33.261 22.7937C29.8679 25.6341 21.9251 27.9346 17.4396 27.9346C17.0155 27.9346 16.5914 27.9089 16.1801 27.8704V30.2866H35.6001V9.75492H16.1801ZM16.1801 23.1021V24.5545C11.4376 23.7191 10.1266 18.7966 10.1266 18.7966C10.1266 18.7966 12.4015 16.2775 16.1801 15.8791V17.4728H16.1673C14.188 17.2414 12.6329 19.0922 12.6329 19.0922C12.6329 19.0922 13.5068 22.2025 16.1801 23.1021ZM7.77464 18.591C7.77464 18.591 10.5765 14.4525 16.1801 14.0283V12.5246C9.9724 13.0259 4.6001 18.2696 4.6001 18.2696C4.6001 18.2696 7.64612 27.0735 16.1801 27.8575V26.2767C9.90814 25.4798 7.77464 18.591 7.77464 18.591Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M32.8377 17.282C33.2127 16.25 33.3072 15.218 33.2127 14.1875C33.1197 13.1571 32.7447 12.1251 32.2752 11.1876C31.4322 9.78209 30.2127 8.6571 28.8072 8.0001C27.3072 7.34461 25.7127 7.15711 24.1197 7.53211C23.3698 6.78212 22.5253 6.12512 21.5878 5.65713C20.6503 5.18913 19.5253 5.00013 18.4948 5.00013C16.8851 4.99074 15.3125 5.48246 13.9948 6.40712C12.6824 7.34311 11.7449 8.6571 11.2754 10.1571C10.1504 10.4376 9.21289 10.9071 8.27539 11.4696C7.4324 12.1251 6.77541 12.9696 6.21291 13.8126C5.36992 15.2195 5.08792 16.8125 5.27542 18.407C5.46399 19.9968 6.11605 21.496 7.1504 22.718C6.79608 23.7086 6.66795 24.7659 6.77541 25.8124C6.86991 26.8444 7.2449 27.8749 7.7129 28.8124C8.55739 30.2194 9.77538 31.3444 11.1824 31.9999C12.6824 32.6569 14.2753 32.8444 15.8698 32.4694C16.6198 33.2194 17.4628 33.8749 18.4003 34.3444C19.3378 34.8139 20.4628 34.9999 21.4948 34.9999C23.1043 35.0097 24.6769 34.5185 25.9947 33.5944C27.3072 32.6569 28.2447 31.3444 28.7127 29.8444C29.7719 29.6432 30.7682 29.1934 31.6197 28.5319C32.4627 27.8749 33.2127 27.1249 33.6822 26.1874C34.5251 24.7819 34.8071 23.1875 34.6196 21.5945C34.4322 20 33.8697 18.5015 32.8377 17.282ZM21.5878 33.0304C20.0878 33.0304 18.9628 32.5609 17.9323 31.7179C17.9323 31.7179 18.0253 31.6234 18.1198 31.6234L24.1197 28.1554C24.2862 28.0803 24.4196 27.9469 24.4947 27.7804C24.5698 27.636 24.6021 27.4731 24.5877 27.3109V18.875L27.1197 20.375V27.3124C27.1455 28.0547 27.0215 28.7945 26.755 29.4878C26.4885 30.181 26.085 30.8134 25.5687 31.3473C25.0523 31.8811 24.4337 32.3054 23.7497 32.5949C23.0658 32.8843 22.3305 33.0314 21.5878 33.0304ZM9.49488 27.8749C8.83789 26.7499 8.55739 25.4374 8.83789 24.125C8.83789 24.125 8.93239 24.2195 9.02539 24.2195L15.0253 27.6874C15.1693 27.7638 15.3325 27.7966 15.4948 27.7819C15.6823 27.7819 15.8698 27.7819 15.9628 27.6874L23.2753 23.4695V26.3749L17.1823 29.9374C16.5506 30.3042 15.8527 30.5427 15.1287 30.6393C14.4046 30.7358 13.6686 30.6884 12.9629 30.4999C11.4629 30.1249 10.2449 29.1874 9.49488 27.8749ZM7.9004 14.8445C8.56239 13.7234 9.58826 12.8627 10.8074 12.4056V19.532C10.8074 19.718 10.8074 19.907 10.9004 20C10.9755 20.1665 11.1089 20.2998 11.2754 20.375L18.5878 24.5944L16.0573 26.0944L10.0574 22.625C9.41842 22.2639 8.85742 21.7797 8.40684 21.2004C7.95627 20.6211 7.62506 19.9582 7.4324 19.25C7.05741 17.8445 7.1504 16.157 7.9004 14.8445ZM28.6197 19.625L21.3073 15.407L23.8377 13.9071L29.8377 17.375C30.7752 17.9375 31.5252 18.6875 31.9947 19.625C32.4642 20.5625 32.7447 21.5945 32.6502 22.7195C32.5603 23.7755 32.1699 24.7837 31.5252 25.6249C30.8697 26.4694 30.0252 27.1249 28.9947 27.4999V20.375C28.9947 20.1875 28.9947 20 28.9002 19.907C28.9002 19.907 28.8072 19.718 28.6197 19.625ZM31.1502 15.875C31.1502 15.875 31.0572 15.782 30.9627 15.782L24.9627 12.3126C24.7752 12.2196 24.6822 12.2196 24.4947 12.2196C24.3072 12.2196 24.1197 12.2196 24.0252 12.3126L16.7128 16.532V13.6251L22.8073 10.0626C23.7448 9.50009 24.7752 9.31259 25.9002 9.31259C26.9322 9.31259 27.9627 9.68759 28.9002 10.3446C29.7447 11.0001 30.4947 11.8446 30.8697 12.7821C31.2447 13.7196 31.3377 14.8445 31.1502 15.875ZM15.4003 21.125L12.8699 19.625V12.5946C12.8699 11.5626 13.1503 10.4376 13.7128 9.59459C14.2753 8.6571 15.1198 8.0001 16.0573 7.53211C17.0127 7.05249 18.0956 6.88812 19.1503 7.06261C20.1823 7.15711 21.2128 7.62511 22.0573 8.2821C22.0573 8.2821 21.9628 8.3751 21.8698 8.3751L15.8698 11.8446C15.7033 11.9197 15.57 12.0531 15.4948 12.2196C15.4003 12.4071 15.4003 12.5001 15.4003 12.6876V21.125ZM16.7128 18.125L19.9948 16.25L23.2753 18.125V21.875L19.9948 23.75L16.7128 21.875V18.125Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.2642 2.8689L12.042 8.0961M17.2642 2.8689V8.0961H12.042M17.2642 2.8689V4.30027M12.042 8.0961L6.81809 2.8689V8.0961H12.042ZM12.042 8.0961L17.2642 13.3225V20.8159L12.042 15.5887M12.042 8.0961V15.5887M12.042 8.0961L6.81892 13.3225M12.0296 2.1V21.9M12.042 15.5887L6.81892 20.8159V13.3225M6.81892 13.3225L6.81809 15.559H4.57739V8.09527H12.0412L6.81892 13.3225ZM11.9859 8.09527L17.2081 13.3225V15.559H19.4497V8.09527H11.9859Z" stroke="currentColor" stroke-width="0.825" stroke-miterlimit="10"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 604 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.0835 25.1541C19.5821 26.7684 21.1466 28.1292 22.6694 29.2117L21.5103 30.8416C19.8992 29.6963 18.2543 28.2675 16.6802 26.5808C17.1455 26.1486 17.6143 25.6722 18.0835 25.1541ZM9.99365 2.74979C11.7639 1.73255 13.8054 2.24897 15.6479 3.32304C17.52 4.41448 19.4573 6.22477 21.2603 8.33866L19.7378 9.63651C18.0045 7.60434 16.238 5.98161 14.6411 5.05058C13.0147 4.10247 11.8203 4.00682 10.9897 4.48417C10.0366 5.03255 9.41678 6.47496 9.78271 9.17167C9.86549 9.78127 9.99965 10.4345 10.1812 11.1277C11.6144 10.9497 13.0985 10.8513 14.6167 10.8543C17.7104 10.8604 20.4741 11.1506 22.7944 11.6805L22.7964 11.6814C23.2 11.7609 23.5914 11.858 23.9702 11.9656C23.9685 11.9703 23.9661 11.9746 23.9644 11.9793C24.661 12.1766 25.3101 12.3961 25.9067 12.6404C28.6066 13.7462 30.6077 15.4947 30.603 17.8855C30.599 19.9274 29.1314 21.4372 27.2798 22.4959C25.3986 23.5714 22.8625 24.344 20.1304 24.8484L19.7671 22.8807C22.3935 22.3957 24.6819 21.677 26.2866 20.7596C27.9209 19.8251 28.6011 18.8396 28.603 17.8816C28.6051 16.7818 27.6669 15.5237 25.1479 14.492C24.5672 14.2542 23.9208 14.0387 23.2134 13.8465C22.6517 15.1437 22.0035 16.4444 21.2612 17.7244C18.9392 21.7281 16.437 24.776 14.0688 26.6082C11.7614 28.3932 9.24631 29.2529 7.17822 28.0535C5.41209 27.0291 4.83828 25.0026 4.84717 22.8699C4.85632 20.7032 5.45524 18.1208 6.38428 15.5027L8.27002 16.1717C7.37685 18.6887 6.85497 21.0304 6.84717 22.8787C6.83939 24.7607 7.35367 25.8424 8.18213 26.323C9.13349 26.8747 10.6925 26.6915 12.8452 25.0262C13.3191 24.6595 13.8045 24.2295 14.3003 23.742C13.4493 22.6129 12.6395 21.4021 11.897 20.1101C9.59084 16.0976 8.20303 12.4071 7.80029 9.44022C7.40803 6.54936 7.92116 3.94134 9.99365 2.74979ZM14.6128 12.8543C13.3044 12.8518 12.0235 12.9291 10.7827 13.0701C11.4353 14.9013 12.3808 16.9381 13.6313 19.1141C14.2698 20.2249 14.9606 21.2715 15.6841 22.2537C16.9553 20.7654 18.2592 18.9138 19.5308 16.7215C20.1679 15.623 20.7315 14.5102 21.2271 13.4012C19.3246 13.0558 17.1033 12.8592 14.6128 12.8543ZM6.23193 11.8416C6.39799 12.459 6.59817 13.0982 6.83154 13.7566C4.8717 14.2207 3.07218 14.836 1.49854 15.5398L0.682129 13.7137C2.33167 12.9759 4.20224 12.3309 6.23193 11.8416ZM24.8901 3.62675L25.8853 3.70976C25.7206 5.68459 25.2981 7.84221 24.6128 10.0701C24.1572 9.9381 23.6801 9.8164 23.1831 9.71854C23.0101 9.6845 22.8337 9.6559 22.6567 9.62577C23.3278 7.47916 23.7373 5.41176 23.8931 3.54276L24.8901 3.62675Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.4579 15.6036L26.1529 35H20.0656L6.37059 15.6036H12.4579ZM12.4524 26.3764L15.4974 30.6909L12.4551 35H6.36377L12.4524 26.3764ZM33.6365 7.15727V35H28.647V14.2236L33.6365 7.15727ZM33.6365 5L20.0656 24.2205L17.0206 19.9073L27.5451 5H33.6365Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 364 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.3598 5.03522C13.6378 5.20577 11.3905 5.78765 9.47432 7.07179C8.10992 7.97471 7.10668 9.14849 6.38435 10.6935C5.59179 12.389 5.24066 14.255 5.09017 17.7262C4.90959 21.6087 5.17043 25.4812 5.75231 27.5378C6.27399 29.4039 7.10668 30.8285 8.38079 32.0223C9.95588 33.487 11.7216 34.2595 14.4604 34.6709C16.9685 35.0421 22.7773 35.0621 25.3154 34.711C28.4054 34.2896 30.3718 33.4168 31.987 31.7414C32.7896 30.9187 33.1608 30.377 33.6824 29.2835C34.4951 27.5679 34.8261 25.7922 34.9867 22.2407C35.107 19.7026 34.9867 16.0909 34.7358 14.4055C34.1439 10.4527 32.4585 7.88441 29.519 6.39962C27.964 5.62713 25.6766 5.17567 22.4963 5.02519C20.0986 4.91483 19.7776 4.91483 17.3598 5.03522ZM21.0617 14.3854C22.386 14.6964 23.0281 15.1378 23.4494 16.0407C23.8808 16.9637 23.951 17.7262 23.951 21.8896V25.8022L22.5264 25.7721L21.0918 25.742L21.0417 21.9297C20.9915 17.7663 20.9714 17.6359 20.3895 17.1844C19.8679 16.7731 19.4264 16.7229 16.5772 16.7129H13.8685L13.8183 21.2275L13.7682 25.742H10.9591L10.929 20.0336C10.909 15.5291 10.939 14.2951 11.0293 14.2349C11.0996 14.1847 13.2365 14.1647 15.7747 14.1847C19.4967 14.2249 20.52 14.265 21.0617 14.3854ZM28.9472 14.3252C29.0174 14.4657 29.0475 25.3708 28.9773 25.722C28.9773 25.7621 28.3252 25.7822 27.5426 25.7721L26.108 25.742L26.0779 20.0838C26.0679 15.9906 26.0879 14.3854 26.1682 14.2951C26.2585 14.1847 26.6096 14.1546 27.5727 14.1546C28.6964 14.1546 28.8669 14.1747 28.9472 14.3252ZM18.9349 22.2307V25.8022L17.4601 25.7721L15.9753 25.742L15.9452 22.331C15.9352 20.455 15.9452 18.8598 15.9753 18.7996C16.0054 18.6993 16.3967 18.6692 17.4802 18.6692H18.9349V22.2307Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M20.1312 7.50002L17.4088 11.1913H5.81625L8.5375 7.50002H20.1325H20.1312ZM34.0675 28.81L31.3475 32.5H19.795L22.5125 28.81H34.0675ZM35 7.50002L16.58 32.5H5L23.42 7.50002H35Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 295 B |
@@ -0,0 +1,18 @@
|
||||
name = "Gemini 2.5 Flash TTS"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-12-10"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["audio"]
|
||||
@@ -0,0 +1,18 @@
|
||||
name = "Nano Banana Pro"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-11-20"
|
||||
last_updated = "2025-11-20"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 65_536
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text", "image"]
|
||||
@@ -1,13 +1,15 @@
|
||||
# Mistral's live API currently maps this alias to Mistral Medium 3.1,
|
||||
# even though Mistral Medium 3.5 is newer and exposed as mistral-medium-2604.
|
||||
name = "Mistral Medium (latest)"
|
||||
family = "mistral-medium"
|
||||
release_date = "2026-04-29"
|
||||
last_updated = "2026-04-29"
|
||||
release_date = "2025-08-12"
|
||||
last_updated = "2025-08-12"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2025-05"
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Llama 3.1 Nemotron 70B Instruct"
|
||||
family = "nemotron"
|
||||
release_date = "2025-04-15"
|
||||
last_updated = "2025-04-15"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Llama 3.1 Nemotron Safety Guard 8B v3"
|
||||
family = "nemotron"
|
||||
release_date = "2025-10-28"
|
||||
last_updated = "2025-10-28"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = false
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_096
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Llama 3.1 Nemotron Ultra 253B"
|
||||
family = "nemotron"
|
||||
release_date = "2025-04-07"
|
||||
last_updated = "2025-04-07"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Llama 3.3 Nemotron Super 49B v1.5"
|
||||
family = "nemotron"
|
||||
release_date = "2025-07-25"
|
||||
last_updated = "2025-07-25"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Llama 3.3 Nemotron Super 49B v1"
|
||||
family = "nemotron"
|
||||
release_date = "2025-04-07"
|
||||
last_updated = "2025-04-07"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Llama Nemotron Embed VL 1B v2"
|
||||
family = "nemotron"
|
||||
release_date = "2026-02-10"
|
||||
last_updated = "2026-02-10"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = false
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
output = 2_048
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Llama Nemotron Rerank VL 1B v2"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-31"
|
||||
last_updated = "2026-03-31"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = false
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_096
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Mistral Nemotron"
|
||||
family = "nemotron"
|
||||
release_date = "2025-06-11"
|
||||
last_updated = "2025-06-12"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron 3 Content Safety"
|
||||
family = "nemotron"
|
||||
release_date = "2026-04-16"
|
||||
last_updated = "2026-04-16"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = false
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_096
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron 3 Nano 30B A3B"
|
||||
family = "nemotron"
|
||||
release_date = "2025-12-15"
|
||||
last_updated = "2025-12-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron 3 Nano Omni 30B A3B Reasoning"
|
||||
family = "nemotron"
|
||||
release_date = "2026-04-28"
|
||||
last_updated = "2026-04-28"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron 3 Super 120B A12B"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-03-11"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron 3 Ultra 550B A55B"
|
||||
family = "nemotron"
|
||||
release_date = "2026-06-04"
|
||||
last_updated = "2026-06-04"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron 3.5 Content Safety"
|
||||
family = "nemotron"
|
||||
release_date = "2026-06-04"
|
||||
last_updated = "2026-06-04"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron Cascade 2 30B A3B"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-24"
|
||||
last_updated = "2026-04-09"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron Content Safety Reasoning 4B"
|
||||
family = "nemotron"
|
||||
release_date = "2026-01-22"
|
||||
last_updated = "2026-01-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_096
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron Mini 4B Instruct"
|
||||
family = "nemotron"
|
||||
release_date = "2024-08-21"
|
||||
last_updated = "2024-08-26"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron Nano 12B v2 VL"
|
||||
family = "nemotron"
|
||||
release_date = "2025-10-28"
|
||||
last_updated = "2025-10-28"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron Nano 9B v2"
|
||||
family = "nemotron"
|
||||
release_date = "2025-08-18"
|
||||
last_updated = "2025-08-18"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Nemotron VoiceChat"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-16"
|
||||
last_updated = "2026-03-16"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio"]
|
||||
output = ["text"]
|
||||
@@ -23,7 +23,7 @@
|
||||
"databricks:generate": "bun ./packages/core/script/generate-databricks.ts",
|
||||
"helicone:generate": "bun ./packages/core/script/generate-helicone.ts",
|
||||
"venice:generate": "bun ./packages/core/script/generate-venice.ts",
|
||||
"vercel:generate": "bun ./packages/core/script/generate-vercel.ts",
|
||||
"vercel:generate": "bun ./packages/core/script/sync-models.ts vercel",
|
||||
"wandb:generate": "bun ./packages/core/script/generate-wandb.ts",
|
||||
"digitalocean:generate": "bun ./packages/core/script/generate-digitalocean.ts",
|
||||
"ambient:generate": "bun ./packages/core/script/generate-ambient.ts",
|
||||
|
||||
@@ -71,6 +71,7 @@ try {
|
||||
if (!match) continue;
|
||||
|
||||
const [, providerID, modelID] = match;
|
||||
if (providerID === undefined || modelID === undefined) continue;
|
||||
const beforeModel = before[providerID]?.models[modelID];
|
||||
const afterModel = after[providerID]?.models[modelID];
|
||||
const beforeJson = sortedJson(beforeModel);
|
||||
@@ -263,6 +264,9 @@ async function generateLegacyExtends(directory: string) {
|
||||
for (const pendingModel of pendingModels) {
|
||||
const [providerID, ...modelParts] = pendingModel.model.extends.from.split("/");
|
||||
const modelID = modelParts.join("/");
|
||||
if (providerID === undefined) {
|
||||
throw new Error(`Invalid legacy extends.from: ${pendingModel.model.extends.from}`);
|
||||
}
|
||||
const baseModel = result[providerID]?.models[modelID];
|
||||
if (baseModel === undefined) {
|
||||
throw new Error(`Unable to resolve legacy extends.from: ${pendingModel.model.extends.from}`, {
|
||||
@@ -363,7 +367,8 @@ function applyOmit(target: Record<string, unknown>, paths: string[]) {
|
||||
|
||||
for (let index = parents.length - 1; index >= 0; index--) {
|
||||
const parent = parents[index];
|
||||
const value = parent?.value[parent.key];
|
||||
if (parent === undefined) continue;
|
||||
const value = parent.value[parent.key];
|
||||
if (
|
||||
value === null ||
|
||||
value === undefined ||
|
||||
|
||||
@@ -26,7 +26,7 @@ const CHUTES_ORG_TO_MODEL_PROVIDER: Record<string, string | undefined> = {
|
||||
"google": "google",
|
||||
"moonshotai": "moonshotai",
|
||||
"openai": "openai",
|
||||
"zai-org": "zai",
|
||||
"zai-org": "zhipuai",
|
||||
};
|
||||
|
||||
const BASE_MODEL_ALIASES: Record<string, string | undefined> = {
|
||||
@@ -158,7 +158,7 @@ function formatNumber(n: number): string {
|
||||
*/
|
||||
function humanizeModelName(modelId: string): string {
|
||||
const parts = modelId.split("/");
|
||||
const modelPart = parts[parts.length - 1];
|
||||
const modelPart = parts.at(-1) ?? modelId;
|
||||
return modelPart.replace(/-/g, " ");
|
||||
}
|
||||
|
||||
|
||||
@@ -509,10 +509,10 @@ async function main() {
|
||||
const apiKeyArgIndex = args.findIndex((arg) => arg.startsWith("--api-key"));
|
||||
if (apiKeyArgIndex !== -1) {
|
||||
const arg = args[apiKeyArgIndex];
|
||||
if (arg.includes("=")) {
|
||||
apiKey = arg.split("=")[1];
|
||||
if (arg?.includes("=")) {
|
||||
apiKey = arg.split("=")[1] ?? null;
|
||||
} else if (args[apiKeyArgIndex + 1]) {
|
||||
apiKey = args[apiKeyArgIndex + 1];
|
||||
apiKey = args[apiKeyArgIndex + 1] ?? null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,589 +0,0 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
/**
|
||||
* Generates Vercel model TOML files from the AI Gateway API.
|
||||
*
|
||||
* Flags:
|
||||
* --dry-run: Preview changes without writing files
|
||||
* --new-only: Only create new models, skip updating existing ones
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import path from "node:path";
|
||||
import { mkdir } from "node:fs/promises";
|
||||
import { ModelFamilyValues } from "../src/family.js";
|
||||
|
||||
const API_ENDPOINT = "https://ai-gateway.vercel.sh/v1/models";
|
||||
|
||||
enum ModelType {
|
||||
Language = "language",
|
||||
Embedding = "embedding",
|
||||
Image = "image",
|
||||
Video = "video",
|
||||
Reranking = "reranking",
|
||||
}
|
||||
|
||||
enum SkipZeroFields {
|
||||
LimitContext = "limit.context",
|
||||
LimitInput = "limit.input",
|
||||
LimitOutput = "limit.output",
|
||||
}
|
||||
|
||||
const PricingTier = z.object({
|
||||
cost: z.string(),
|
||||
min: z.number(),
|
||||
max: z.number().optional(),
|
||||
});
|
||||
|
||||
const Pricing = z.object({
|
||||
input: z.string().optional(),
|
||||
output: z.string().optional(),
|
||||
input_cache_read: z.string().optional(),
|
||||
input_cache_write: z.string().optional(),
|
||||
input_tiers: z.array(PricingTier).optional(),
|
||||
output_tiers: z.array(PricingTier).optional(),
|
||||
input_cache_read_tiers: z.array(PricingTier).optional(),
|
||||
input_cache_write_tiers: z.array(PricingTier).optional(),
|
||||
}).passthrough();
|
||||
|
||||
const VercelModel = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
created: z.number(),
|
||||
released: z.number().optional(),
|
||||
context_window: z.number(),
|
||||
max_tokens: z.number(),
|
||||
type: z.nativeEnum(ModelType),
|
||||
tags: z.array(z.string()).optional().default([]),
|
||||
pricing: Pricing.optional(),
|
||||
}).passthrough();
|
||||
|
||||
const VercelResponse = z.object({
|
||||
data: z.array(VercelModel),
|
||||
}).passthrough();
|
||||
|
||||
interface ExistingModel {
|
||||
name?: string;
|
||||
family?: string;
|
||||
attachment?: boolean;
|
||||
reasoning?: boolean;
|
||||
tool_call?: boolean;
|
||||
structured_output?: boolean;
|
||||
temperature?: boolean;
|
||||
knowledge?: string;
|
||||
release_date?: string;
|
||||
last_updated?: string;
|
||||
open_weights?: boolean;
|
||||
interleaved?: boolean | { field: string };
|
||||
status?: string;
|
||||
cost?: {
|
||||
input?: number;
|
||||
output?: number;
|
||||
cache_read?: number;
|
||||
cache_write?: number;
|
||||
};
|
||||
limit?: {
|
||||
context?: number;
|
||||
input?: number;
|
||||
output?: number;
|
||||
};
|
||||
modalities?: {
|
||||
input?: string[];
|
||||
output?: string[];
|
||||
};
|
||||
}
|
||||
|
||||
interface MergedModel {
|
||||
name: string;
|
||||
family?: string;
|
||||
attachment: boolean;
|
||||
reasoning: boolean;
|
||||
tool_call: boolean;
|
||||
structured_output?: boolean;
|
||||
temperature: boolean;
|
||||
knowledge?: string;
|
||||
release_date: string;
|
||||
last_updated: string;
|
||||
open_weights: boolean;
|
||||
interleaved?: boolean | { field: string };
|
||||
status?: string;
|
||||
cost?: {
|
||||
input: number;
|
||||
output: number;
|
||||
cache_read?: number;
|
||||
cache_write?: number;
|
||||
};
|
||||
limit: {
|
||||
context: number;
|
||||
input?: number;
|
||||
output: number;
|
||||
};
|
||||
modalities: {
|
||||
input: string[];
|
||||
output: string[];
|
||||
};
|
||||
}
|
||||
|
||||
interface Changes {
|
||||
field: string;
|
||||
oldValue: string;
|
||||
newValue: string;
|
||||
}
|
||||
|
||||
function timestampToDate(timestamp: number): string {
|
||||
const date = new Date(timestamp * 1000);
|
||||
return date.toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
function getTodayDate(): string {
|
||||
return new Date().toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
// Number utilities
|
||||
function formatNumber(n: number): string {
|
||||
if (n >= 1000) {
|
||||
return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "_");
|
||||
}
|
||||
return n.toString();
|
||||
}
|
||||
|
||||
function isSubstring(target: string, family: string): boolean {
|
||||
return target.toLowerCase().includes(family.toLowerCase());
|
||||
}
|
||||
|
||||
function matchesFamily(target: string, family: string): boolean {
|
||||
const targetLower = target.toLowerCase();
|
||||
const familyLower = family.toLowerCase();
|
||||
let familyIdx = 0;
|
||||
|
||||
for (let i = 0; i < targetLower.length && familyIdx < familyLower.length; i++) {
|
||||
if (targetLower[i] === familyLower[familyIdx]) {
|
||||
familyIdx++;
|
||||
}
|
||||
}
|
||||
|
||||
return familyIdx === familyLower.length;
|
||||
}
|
||||
|
||||
function inferFamily(modelId: string, modelName: string): string | undefined {
|
||||
const sortedFamilies = [...ModelFamilyValues].sort((a, b) => b.length - a.length);
|
||||
|
||||
// First pass: try exact substring matches
|
||||
for (const family of sortedFamilies) {
|
||||
if (isSubstring(modelId, family)) {
|
||||
return family;
|
||||
}
|
||||
}
|
||||
|
||||
for (const family of sortedFamilies) {
|
||||
if (isSubstring(modelName, family)) {
|
||||
return family;
|
||||
}
|
||||
}
|
||||
|
||||
// Second pass: fall back to subsequence matching
|
||||
for (const family of sortedFamilies) {
|
||||
if (matchesFamily(modelId, family)) {
|
||||
return family;
|
||||
}
|
||||
}
|
||||
|
||||
for (const family of sortedFamilies) {
|
||||
if (matchesFamily(modelName, family)) {
|
||||
return family;
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function buildInputModalities(tags: string[]): string[] {
|
||||
const mods: string[] = ["text"];
|
||||
const tagSet = new Set(tags);
|
||||
|
||||
if (tagSet.has("vision")) mods.push("image");
|
||||
if (tagSet.has("file-input")) mods.push("pdf");
|
||||
|
||||
return mods;
|
||||
}
|
||||
|
||||
function buildOutputModalities(modelType: ModelType, tags: string[]): string[] {
|
||||
const mods: string[] = ["text"];
|
||||
const tagSet = new Set(tags);
|
||||
|
||||
if (modelType === ModelType.Image || tagSet.has("image-generation")) {
|
||||
mods.push("image");
|
||||
} else if (modelType === ModelType.Video) {
|
||||
mods.push("video");
|
||||
}
|
||||
|
||||
return mods;
|
||||
}
|
||||
|
||||
async function loadExistingModel(filePath: string): Promise<ExistingModel | null> {
|
||||
try {
|
||||
const file = Bun.file(filePath);
|
||||
if (!(await file.exists())) {
|
||||
return null;
|
||||
}
|
||||
const toml = await import(filePath, { with: { type: "toml" } }).then(
|
||||
(mod) => mod.default,
|
||||
);
|
||||
return toml as ExistingModel;
|
||||
} catch (e) {
|
||||
console.warn(`Warning: Failed to parse existing file ${filePath}:`, e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function isOpenAIModel(modelId: string): boolean {
|
||||
return modelId.startsWith("openai/");
|
||||
}
|
||||
|
||||
function mergeModel(
|
||||
apiModel: z.infer<typeof VercelModel>,
|
||||
existing: ExistingModel | null,
|
||||
): MergedModel {
|
||||
const tagSet = new Set(apiModel.tags);
|
||||
const inputModalities = buildInputModalities(apiModel.tags);
|
||||
const outputModalities = buildOutputModalities(apiModel.type, apiModel.tags);
|
||||
|
||||
// Preserve existing values when available (previously manually specified)
|
||||
const name = existing?.name ?? apiModel.name;
|
||||
const attachment = existing?.attachment ?? (tagSet.has("vision") || tagSet.has("file-input"));
|
||||
const reasoning = existing?.reasoning ?? tagSet.has("reasoning");
|
||||
const toolCall = existing?.tool_call ?? tagSet.has("tool-use");
|
||||
const openWeights = existing?.open_weights ?? false;
|
||||
const family = existing?.family ?? inferFamily(apiModel.id, apiModel.name);
|
||||
const structuredOutput = existing?.structured_output;
|
||||
const knowledge = existing?.knowledge;
|
||||
const interleaved = existing?.interleaved;
|
||||
const status = existing?.status;
|
||||
|
||||
// Release date: use API, fallback to existing, then today
|
||||
const releaseDate = apiModel.released
|
||||
? timestampToDate(apiModel.released)
|
||||
: (existing?.release_date ?? getTodayDate());
|
||||
|
||||
// Preserve existing limits if API returns 0 (indicates missing/invalid data)
|
||||
const contextLimit = apiModel.context_window > 0
|
||||
? apiModel.context_window
|
||||
: (existing?.limit?.context ?? 0);
|
||||
const outputLimit = apiModel.max_tokens > 0
|
||||
? apiModel.max_tokens
|
||||
: (existing?.limit?.output ?? 0);
|
||||
|
||||
const merged: MergedModel = {
|
||||
name,
|
||||
family,
|
||||
attachment,
|
||||
reasoning,
|
||||
tool_call: toolCall,
|
||||
temperature: true,
|
||||
release_date: releaseDate,
|
||||
last_updated: getTodayDate(),
|
||||
open_weights: openWeights,
|
||||
...(structuredOutput !== undefined && { structured_output: structuredOutput }),
|
||||
...(knowledge && { knowledge }),
|
||||
...(interleaved !== undefined && { interleaved }),
|
||||
...(status && { status }),
|
||||
limit: {
|
||||
context: contextLimit,
|
||||
...(isOpenAIModel(apiModel.id) && contextLimit > outputLimit && { input: contextLimit - outputLimit }),
|
||||
output: outputLimit,
|
||||
},
|
||||
modalities: {
|
||||
input: inputModalities,
|
||||
output: outputModalities,
|
||||
},
|
||||
};
|
||||
|
||||
if (apiModel.pricing) {
|
||||
const inputPrice = apiModel.pricing.input_tiers?.[0]?.cost ?? apiModel.pricing.input;
|
||||
const outputPrice = apiModel.pricing.output_tiers?.[0]?.cost ?? apiModel.pricing.output;
|
||||
const cacheReadPrice = apiModel.pricing.input_cache_read_tiers?.[0]?.cost ?? apiModel.pricing.input_cache_read;
|
||||
const cacheWritePrice = apiModel.pricing.input_cache_write_tiers?.[0]?.cost ?? apiModel.pricing.input_cache_write;
|
||||
|
||||
if (inputPrice && outputPrice) {
|
||||
merged.cost = {
|
||||
input: parseFloat(inputPrice) * 1_000_000,
|
||||
output: parseFloat(outputPrice) * 1_000_000,
|
||||
...(cacheReadPrice && {
|
||||
cache_read: parseFloat(cacheReadPrice) * 1_000_000,
|
||||
}),
|
||||
...(cacheWritePrice && {
|
||||
cache_write: parseFloat(cacheWritePrice) * 1_000_000,
|
||||
}),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return merged;
|
||||
}
|
||||
|
||||
function formatToml(model: MergedModel): string {
|
||||
const lines: string[] = [];
|
||||
|
||||
lines.push(`name = "${model.name.replace(/"/g, '\\"')}"`);
|
||||
if (model.family) {
|
||||
lines.push(`family = "${model.family}"`);
|
||||
}
|
||||
lines.push(`attachment = ${model.attachment}`);
|
||||
lines.push(`reasoning = ${model.reasoning}`);
|
||||
lines.push(`tool_call = ${model.tool_call}`);
|
||||
if (model.structured_output !== undefined) {
|
||||
lines.push(`structured_output = ${model.structured_output}`);
|
||||
}
|
||||
lines.push(`temperature = ${model.temperature}`);
|
||||
if (model.knowledge) {
|
||||
lines.push(`knowledge = "${model.knowledge}"`);
|
||||
}
|
||||
lines.push(`release_date = "${model.release_date}"`);
|
||||
lines.push(`last_updated = "${model.last_updated}"`);
|
||||
lines.push(`open_weights = ${model.open_weights}`);
|
||||
if (model.status) {
|
||||
lines.push(`status = "${model.status}"`);
|
||||
}
|
||||
|
||||
if (model.interleaved !== undefined) {
|
||||
lines.push("");
|
||||
if (model.interleaved === true) {
|
||||
lines.push(`interleaved = true`);
|
||||
} else if (typeof model.interleaved === "object") {
|
||||
lines.push(`[interleaved]`);
|
||||
lines.push(`field = "${model.interleaved.field}"`);
|
||||
}
|
||||
}
|
||||
|
||||
if (model.cost) {
|
||||
lines.push("");
|
||||
lines.push(`[cost]`);
|
||||
lines.push(`input = ${model.cost.input}`);
|
||||
lines.push(`output = ${model.cost.output}`);
|
||||
if (model.cost.cache_read !== undefined) {
|
||||
lines.push(`cache_read = ${model.cost.cache_read}`);
|
||||
}
|
||||
if (model.cost.cache_write !== undefined) {
|
||||
lines.push(`cache_write = ${model.cost.cache_write}`);
|
||||
}
|
||||
}
|
||||
|
||||
lines.push("");
|
||||
lines.push(`[limit]`);
|
||||
lines.push(`context = ${formatNumber(model.limit.context)}`);
|
||||
if (model.limit.input !== undefined) {
|
||||
lines.push(`input = ${formatNumber(model.limit.input)}`);
|
||||
}
|
||||
lines.push(`output = ${formatNumber(model.limit.output)}`);
|
||||
|
||||
lines.push("");
|
||||
lines.push(`[modalities]`);
|
||||
lines.push(`input = [${model.modalities.input.map((m) => `"${m}"`).join(", ")}]`);
|
||||
lines.push(`output = [${model.modalities.output.map((m) => `"${m}"`).join(", ")}]`);
|
||||
|
||||
return lines.join("\n") + "\n";
|
||||
}
|
||||
|
||||
function detectChanges(
|
||||
existing: ExistingModel | null,
|
||||
merged: MergedModel,
|
||||
): Changes[] {
|
||||
if (!existing) return [];
|
||||
|
||||
const changes: Changes[] = [];
|
||||
const EPSILON = 0.001; // price diff to ignore (per million tokens)
|
||||
|
||||
const shouldSkipZero = (field: string, oldVal: unknown, newVal: unknown): boolean => {
|
||||
if (!Object.values(SkipZeroFields).includes(field as SkipZeroFields)) {
|
||||
return false;
|
||||
}
|
||||
return (typeof oldVal === "number" && oldVal === 0) || (typeof newVal === "number" && newVal === 0);
|
||||
};
|
||||
|
||||
const formatValue = (val: unknown): string => {
|
||||
if (typeof val === "number") return formatNumber(val);
|
||||
if (Array.isArray(val)) return `[${val.join(", ")}]`;
|
||||
if (val === undefined) return "(none)";
|
||||
return String(val);
|
||||
};
|
||||
|
||||
const isMaterialPriceDiff = (oldPrice: unknown, newPrice: unknown): boolean => {
|
||||
// 0 → undefined is not material (cost removed)
|
||||
if (oldPrice === 0 && newPrice === undefined) return false;
|
||||
|
||||
if (oldPrice !== undefined && newPrice !== undefined) {
|
||||
return Math.abs((oldPrice as number) - (newPrice as number)) > EPSILON;
|
||||
}
|
||||
|
||||
return oldPrice !== newPrice;
|
||||
};
|
||||
|
||||
const compare = (field: string, oldVal: unknown, newVal: unknown) => {
|
||||
if (shouldSkipZero(field, oldVal, newVal)) return;
|
||||
|
||||
const isDiff = field.startsWith("cost.")
|
||||
? isMaterialPriceDiff(oldVal, newVal)
|
||||
: JSON.stringify(oldVal) !== JSON.stringify(newVal);
|
||||
|
||||
if (isDiff) {
|
||||
changes.push({
|
||||
field,
|
||||
oldValue: formatValue(oldVal),
|
||||
newValue: formatValue(newVal),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
compare("name", existing.name, merged.name);
|
||||
compare("family", existing.family, merged.family);
|
||||
compare("attachment", existing.attachment, merged.attachment);
|
||||
compare("reasoning", existing.reasoning, merged.reasoning);
|
||||
compare("tool_call", existing.tool_call, merged.tool_call);
|
||||
compare("structured_output", existing.structured_output, merged.structured_output);
|
||||
compare("open_weights", existing.open_weights, merged.open_weights);
|
||||
compare("release_date", existing.release_date, merged.release_date);
|
||||
compare("cost.input", existing.cost?.input, merged.cost?.input);
|
||||
compare("cost.output", existing.cost?.output, merged.cost?.output);
|
||||
compare("cost.cache_read", existing.cost?.cache_read, merged.cost?.cache_read);
|
||||
compare("cost.cache_write", existing.cost?.cache_write, merged.cost?.cache_write);
|
||||
compare("limit.context", existing.limit?.context, merged.limit.context);
|
||||
compare("limit.input", existing.limit?.input, merged.limit.input);
|
||||
compare("limit.output", existing.limit?.output, merged.limit.output);
|
||||
compare("modalities.input", existing.modalities?.input, merged.modalities.input);
|
||||
|
||||
return changes;
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const args = process.argv.slice(2);
|
||||
const dryRun = args.includes("--dry-run");
|
||||
const newOnly = args.includes("--new-only");
|
||||
|
||||
const modelsDir = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"vercel",
|
||||
"models",
|
||||
);
|
||||
|
||||
console.log(`${dryRun ? "[DRY RUN] " : ""}${newOnly ? "[NEW ONLY] " : ""}Fetching Vercel models from API...`);
|
||||
|
||||
const res = await fetch(API_ENDPOINT);
|
||||
if (!res.ok) {
|
||||
console.error(`Failed to fetch API: ${res.status} ${res.statusText}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const json = await res.json();
|
||||
const parsed = VercelResponse.safeParse(json);
|
||||
if (!parsed.success) {
|
||||
console.error("Invalid API response:", parsed.error.errors);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const apiModels = parsed.data.data;
|
||||
|
||||
const existingFiles = new Set<string>();
|
||||
try {
|
||||
for await (const file of new Bun.Glob("**/*.toml").scan({
|
||||
cwd: modelsDir,
|
||||
absolute: false,
|
||||
})) {
|
||||
existingFiles.add(file);
|
||||
}
|
||||
} catch {
|
||||
}
|
||||
|
||||
console.log(`Found ${apiModels.length} models in API, ${existingFiles.size} existing files\n`);
|
||||
|
||||
const apiModelIds = new Set<string>();
|
||||
|
||||
let created = 0;
|
||||
let updated = 0;
|
||||
let unchanged = 0;
|
||||
|
||||
for (const apiModel of apiModels) {
|
||||
// Skip these since OpenCode does not support image / video / reranking yet
|
||||
if (
|
||||
apiModel.type === ModelType.Image ||
|
||||
apiModel.type === ModelType.Video ||
|
||||
apiModel.type === ModelType.Reranking
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const relativePath = `${apiModel.id}.toml`;
|
||||
const filePath = path.join(modelsDir, relativePath);
|
||||
const dirPath = path.dirname(filePath);
|
||||
|
||||
apiModelIds.add(relativePath);
|
||||
|
||||
const existing = await loadExistingModel(filePath);
|
||||
const merged = mergeModel(apiModel, existing);
|
||||
const tomlContent = formatToml(merged);
|
||||
|
||||
if (existing === null) {
|
||||
created++;
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Would create: ${relativePath}`);
|
||||
console.log(` name = "${merged.name}"`);
|
||||
if (merged.family) {
|
||||
console.log(` family = "${merged.family}" (inferred)`);
|
||||
}
|
||||
console.log("");
|
||||
} else {
|
||||
await mkdir(dirPath, { recursive: true });
|
||||
await Bun.write(filePath, tomlContent);
|
||||
console.log(`Created: ${relativePath}`);
|
||||
}
|
||||
} else {
|
||||
if (newOnly) {
|
||||
unchanged++;
|
||||
continue;
|
||||
}
|
||||
|
||||
const changes = detectChanges(existing, merged);
|
||||
|
||||
if (changes.length > 0) {
|
||||
updated++;
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Would update: ${relativePath}`);
|
||||
} else {
|
||||
await mkdir(dirPath, { recursive: true });
|
||||
await Bun.write(filePath, tomlContent);
|
||||
console.log(`Updated: ${relativePath}`);
|
||||
}
|
||||
for (const change of changes) {
|
||||
console.log(` ${change.field}: ${change.oldValue} → ${change.newValue}`);
|
||||
}
|
||||
console.log("");
|
||||
} else {
|
||||
unchanged++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const orphaned: string[] = [];
|
||||
for (const file of existingFiles) {
|
||||
if (!apiModelIds.has(file)) {
|
||||
orphaned.push(file);
|
||||
console.log(`Warning: Orphaned file (not in API): ${file}`);
|
||||
}
|
||||
}
|
||||
|
||||
console.log("");
|
||||
if (dryRun) {
|
||||
console.log(
|
||||
`Summary: ${created} would be created, ${updated} would be updated, ${unchanged} unchanged, ${orphaned.length} orphaned`,
|
||||
);
|
||||
} else {
|
||||
console.log(
|
||||
`Summary: ${created} created, ${updated} updated, ${unchanged} unchanged, ${orphaned.length} orphaned`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
await main();
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import { mkdir, readdir, rm } from "node:fs/promises";
|
||||
import { lstat, mkdir, readdir, rm } from "node:fs/promises";
|
||||
import { mergeDeep } from "remeda";
|
||||
import { z } from "zod";
|
||||
|
||||
@@ -8,6 +8,7 @@ import { cloudflareWorkersAi } from "./providers/cloudflare-workers-ai.js";
|
||||
import { google } from "./providers/google.js";
|
||||
import { openrouter } from "./providers/openrouter.js";
|
||||
import { ovhcloud } from "./providers/ovhcloud.js";
|
||||
import { vercel } from "./providers/vercel.js";
|
||||
import { xai } from "./providers/xai.js";
|
||||
|
||||
const ExistingModelType = AuthoredModelShape.partial()
|
||||
@@ -44,6 +45,10 @@ export interface SyncProvider<SourceModel> {
|
||||
name: string;
|
||||
modelsDir: string;
|
||||
skipCreates?: boolean;
|
||||
deleteMissing?: boolean;
|
||||
preserveSymlinks?: boolean;
|
||||
sameModel?(current: ExistingModel, desired: SyncedModel): boolean;
|
||||
missingNotice?(paths: string[]): string[];
|
||||
sourceID?(model: SourceModel): string;
|
||||
skippedNotice?(ids: string[]): string[];
|
||||
fetchModels(): Promise<unknown>;
|
||||
@@ -71,17 +76,19 @@ export const providers: {
|
||||
google: SyncProvider<any>;
|
||||
openrouter: SyncProvider<any>;
|
||||
ovhcloud: SyncProvider<any>;
|
||||
vercel: SyncProvider<any>;
|
||||
xai: SyncProvider<any>;
|
||||
} = {
|
||||
"cloudflare-workers-ai": cloudflareWorkersAi,
|
||||
google,
|
||||
openrouter,
|
||||
ovhcloud,
|
||||
vercel,
|
||||
xai,
|
||||
};
|
||||
|
||||
export const groups = {
|
||||
aggregators: ["openrouter"],
|
||||
aggregators: ["openrouter", "vercel"],
|
||||
cloudflare: ["cloudflare-workers-ai"],
|
||||
direct: ["google", "ovhcloud", "xai"],
|
||||
} as const;
|
||||
@@ -103,7 +110,7 @@ export async function syncProvider<SourceModel>(
|
||||
): Promise<SyncResult> {
|
||||
console.log(`\nSyncing ${provider.name}...`);
|
||||
|
||||
const existing = await readExisting(provider.modelsDir);
|
||||
const { models: existing, brokenSymlinks } = await readExisting(provider.modelsDir);
|
||||
const sourceModels = provider.parseModels(await provider.fetchModels());
|
||||
const desired = new Map<string, { model: z.infer<typeof SyncedAuthoredModel>; content: string }>();
|
||||
const skippedRemote: string[] = [];
|
||||
@@ -131,7 +138,7 @@ export async function syncProvider<SourceModel>(
|
||||
|
||||
const parsed = SyncedAuthoredModel.safeParse(stripUndefined({
|
||||
id: translated.id,
|
||||
...translated.model,
|
||||
...preserveBaseModel(translated.model, existing.get(relativePath)?.authored),
|
||||
}));
|
||||
if (!parsed.success) {
|
||||
parsed.error.cause = { provider: provider.id, path: relativePath };
|
||||
@@ -157,12 +164,18 @@ export async function syncProvider<SourceModel>(
|
||||
console.log(`Would create ${relativePath}`);
|
||||
} else {
|
||||
await mkdir(path.dirname(filePath), { recursive: true });
|
||||
if (await isSymlink(filePath)) await rm(filePath, { force: true });
|
||||
await Bun.write(filePath, file.content);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!sameModel(relativePath, current.authored, file.model)) {
|
||||
if (current.symlink && provider.preserveSymlinks) {
|
||||
unchanged++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(provider.sameModel?.(current.authored, file.model) ?? sameModel(relativePath, current.authored, file.model))) {
|
||||
if (options.newOnly) {
|
||||
unchanged++;
|
||||
continue;
|
||||
@@ -180,8 +193,15 @@ export async function syncProvider<SourceModel>(
|
||||
}
|
||||
}
|
||||
|
||||
for (const relativePath of existing.keys()) {
|
||||
const missingLocal: string[] = [];
|
||||
for (const relativePath of new Set([...existing.keys(), ...brokenSymlinks])) {
|
||||
if (desired.has(relativePath)) continue;
|
||||
if (provider.deleteMissing === false) {
|
||||
missingLocal.push(relativePath);
|
||||
console.log(`Retaining model missing from source: ${relativePath}`);
|
||||
unchanged++;
|
||||
continue;
|
||||
}
|
||||
if (options.newOnly) {
|
||||
console.log(`Skipping removal in new-only mode: ${relativePath}`);
|
||||
unchanged++;
|
||||
@@ -197,13 +217,31 @@ export async function syncProvider<SourceModel>(
|
||||
}
|
||||
}
|
||||
|
||||
const result = summarize(provider, files, unchanged, provider.skippedNotice?.(skippedRemote) ?? []);
|
||||
const result = summarize(provider, files, unchanged, [
|
||||
...provider.skippedNotice?.(skippedRemote) ?? [],
|
||||
...provider.missingNotice?.(missingLocal) ?? [],
|
||||
]);
|
||||
console.log(
|
||||
`${options.dryRun ? "Dry run: " : ""}${result.created} created, ${result.updated} updated, ${result.deleted} removed, ${result.unchanged} unchanged`,
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
export function preserveBaseModel(model: SyncedModel, existing: ExistingModel | undefined): SyncedModel {
|
||||
if (existing?.base_model === undefined) return model;
|
||||
const translatedBase = "base_model" in model ? model.base_model : undefined;
|
||||
if (translatedBase !== undefined) {
|
||||
const translatedOmit = "base_model_omit" in model ? model.base_model_omit : undefined;
|
||||
if (translatedBase !== existing.base_model || translatedOmit !== undefined) return model;
|
||||
return { ...model, base_model_omit: existing.base_model_omit };
|
||||
}
|
||||
return {
|
||||
...model,
|
||||
base_model: existing.base_model,
|
||||
base_model_omit: existing.base_model_omit,
|
||||
};
|
||||
}
|
||||
|
||||
export async function syncTargets(target: string, options: SyncOptions = {}) {
|
||||
const ids = target in groups
|
||||
? groups[target as keyof typeof groups]
|
||||
@@ -237,13 +275,24 @@ async function readExisting(modelsDir: string) {
|
||||
toml: ExistingModel;
|
||||
symlink: boolean;
|
||||
}>();
|
||||
const brokenSymlinks = new Set<string>();
|
||||
let modelMetadata: Record<string, Record<string, unknown>> | undefined;
|
||||
|
||||
for (const { file, symlink } of await tomlFiles(modelsDir)) {
|
||||
const text = await Bun.file(path.join(modelsDir, file)).text();
|
||||
const filePath = path.join(modelsDir, file);
|
||||
let text: string;
|
||||
try {
|
||||
text = await Bun.file(filePath).text();
|
||||
} catch (error) {
|
||||
if (symlink && error instanceof Error && "code" in error && error.code === "ENOENT") {
|
||||
brokenSymlinks.add(file);
|
||||
continue;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
const parsed = ExistingModel.safeParse(Bun.TOML.parse(text));
|
||||
if (!parsed.success) {
|
||||
parsed.error.cause = { path: path.join(modelsDir, file) };
|
||||
parsed.error.cause = { path: filePath };
|
||||
throw parsed.error;
|
||||
}
|
||||
|
||||
@@ -253,12 +302,21 @@ async function readExisting(modelsDir: string) {
|
||||
}
|
||||
const toml = authored.base_model === undefined
|
||||
? authored
|
||||
: resolveBaseModel(authored, modelMetadata ?? {}, path.join(modelsDir, file));
|
||||
: resolveBaseModel(authored, modelMetadata ?? {}, filePath);
|
||||
|
||||
existing.set(file, { authored, toml, symlink });
|
||||
}
|
||||
|
||||
return existing;
|
||||
return { models: existing, brokenSymlinks };
|
||||
}
|
||||
|
||||
async function isSymlink(filePath: string) {
|
||||
try {
|
||||
return (await lstat(filePath)).isSymbolicLink();
|
||||
} catch (error) {
|
||||
if (error instanceof Error && "code" in error && error.code === "ENOENT") return false;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async function readModelMetadata(modelsDir: string) {
|
||||
@@ -571,7 +629,7 @@ function formatToml(model: z.infer<typeof SyncedAuthoredModel>) {
|
||||
|
||||
for (const tier of model.cost.tiers ?? []) {
|
||||
lines.push("", "[[cost.tiers]]");
|
||||
lines.push(`tier = { type = ${quote(tier.tier.type)}, size = ${formatInteger(tier.tier.size)} }`);
|
||||
lines.push(`tier = { type = ${quote(tier.tier.type ?? "context")}, size = ${formatInteger(tier.tier.size)} }`);
|
||||
lines.push(`input = ${formatNumber(tier.input)}`);
|
||||
lines.push(`output = ${formatNumber(tier.output)}`);
|
||||
if (tier.reasoning !== undefined) lines.push(`reasoning = ${formatNumber(tier.reasoning)}`);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { z } from "zod";
|
||||
import { readdirSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import type { ExistingModel, SyncProvider } from "../index.js";
|
||||
import type { ExistingModel, SyncedModel, SyncProvider } from "../index.js";
|
||||
import {
|
||||
buildOpenRouterModel,
|
||||
OpenRouterModel,
|
||||
@@ -8,6 +10,19 @@ import {
|
||||
} from "./openrouter.js";
|
||||
|
||||
const API_BASE = "https://api.cloudflare.com/client/v4/accounts";
|
||||
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
|
||||
const metadataFilesByPublisher = new Map<string, string[]>();
|
||||
const METADATA_PUBLISHERS: Record<string, string> = {
|
||||
"deepseek-ai": "deepseek",
|
||||
google: "google",
|
||||
meta: "meta",
|
||||
mistralai: "mistral",
|
||||
moonshotai: "moonshotai",
|
||||
nvidia: "nvidia",
|
||||
openai: "openai",
|
||||
qwen: "alibaba",
|
||||
"zai-org": "zhipuai",
|
||||
};
|
||||
|
||||
const CloudflareOpenRouterResponse = z.object({
|
||||
result: z.union([OpenRouterResponse, z.array(OpenRouterModel)]).optional(),
|
||||
@@ -81,8 +96,24 @@ export const cloudflareWorkersAi = {
|
||||
},
|
||||
} satisfies SyncProvider<CloudflareModel>;
|
||||
|
||||
function buildWorkersAiModel(model: z.infer<typeof OpenRouterModel>, existing: ExistingModel | undefined) {
|
||||
const synced = buildOpenRouterModel(model, existing);
|
||||
function buildWorkersAiModel(
|
||||
model: z.infer<typeof OpenRouterModel>,
|
||||
existing: ExistingModel | undefined,
|
||||
): SyncedModel {
|
||||
const source = {
|
||||
...model,
|
||||
name: existing?.name ?? model.name,
|
||||
top_provider: {
|
||||
...model.top_provider,
|
||||
max_completion_tokens: existing?.limit?.output ?? model.top_provider.max_completion_tokens,
|
||||
},
|
||||
};
|
||||
const synced = buildOpenRouterModel(
|
||||
source,
|
||||
existing,
|
||||
existing?.base_model ?? resolveCloudflareBaseModel(model),
|
||||
);
|
||||
if ("base_model" in synced) return synced;
|
||||
return {
|
||||
...synced,
|
||||
name: existing?.name ?? synced.name,
|
||||
@@ -95,6 +126,34 @@ function buildWorkersAiModel(model: z.infer<typeof OpenRouterModel>, existing: E
|
||||
};
|
||||
}
|
||||
|
||||
export function resolveCloudflareBaseModel(model: z.infer<typeof OpenRouterModel>) {
|
||||
const [, publisher] = model.id.replace(/^workers-ai\//, "").split("/");
|
||||
if (publisher === undefined) return undefined;
|
||||
|
||||
const metadataPublisher = METADATA_PUBLISHERS[publisher];
|
||||
if (metadataPublisher === undefined) return undefined;
|
||||
|
||||
let files = metadataFilesByPublisher.get(metadataPublisher);
|
||||
if (files === undefined) {
|
||||
try {
|
||||
files = readdirSync(path.join(MODELS_DIR, metadataPublisher))
|
||||
.filter((file) => file.endsWith(".toml"))
|
||||
.map((file) => file.slice(0, -5));
|
||||
} catch {
|
||||
files = [];
|
||||
}
|
||||
metadataFilesByPublisher.set(metadataPublisher, files);
|
||||
}
|
||||
|
||||
const identity = new Set(identityTokens(`${model.id} ${model.name}`));
|
||||
const matches = files.filter((file) => identityTokens(file).every((token) => identity.has(token)));
|
||||
return matches.length === 1 ? `${metadataPublisher}/${matches[0]}` : undefined;
|
||||
}
|
||||
|
||||
function identityTokens(value: string) {
|
||||
return value.toLowerCase().match(/[a-z]+|\d+(?:\.\d+)?/g) ?? [];
|
||||
}
|
||||
|
||||
async function fetchPage(accountID: string, token: string, page: number) {
|
||||
const url = new URL(`${API_BASE}/${accountID}/ai/models/search`);
|
||||
url.searchParams.set("format", "openrouter");
|
||||
@@ -112,18 +171,19 @@ async function fetchPage(accountID: string, token: string, page: number) {
|
||||
return response.json();
|
||||
}
|
||||
|
||||
function parseCloudflareModels(raw: unknown) {
|
||||
function parseCloudflareModels(raw: unknown): CloudflareModel[] {
|
||||
const cloudflare = CloudflareResponse.safeParse(raw);
|
||||
if (cloudflare.success) return cloudflare.data.data;
|
||||
|
||||
const direct = OpenRouterResponse.safeParse(raw);
|
||||
if (direct.success) return direct.data.data;
|
||||
if (direct.success) return direct.data.data.map((model) => CloudflareModel.parse(model));
|
||||
|
||||
const wrapped = CloudflareOpenRouterResponse.parse(raw);
|
||||
if (wrapped.result === undefined) {
|
||||
throw new Error("Cloudflare Workers AI response did not include model data");
|
||||
}
|
||||
return Array.isArray(wrapped.result) ? wrapped.result : wrapped.result.data;
|
||||
const models = Array.isArray(wrapped.result) ? wrapped.result : wrapped.result.data;
|
||||
return models.map((model) => CloudflareModel.parse(model));
|
||||
}
|
||||
|
||||
function normalizeModel(model: CloudflareModel) {
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { z } from "zod";
|
||||
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
||||
import { readFileSync, readdirSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import { ModelFamilyValues } from "../../family.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
|
||||
const API_ENDPOINT = "https://openrouter.ai/api/v1/models";
|
||||
const PROVIDERS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "providers");
|
||||
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
|
||||
const modelFilesByProvider = new Map<string, Set<string>>();
|
||||
const modelMetadataByID = new Map<string, Record<string, unknown>>();
|
||||
const modelMetadataFilesByProvider = new Map<string, Set<string>>();
|
||||
|
||||
const CANONICAL_PROVIDER_PREFIXES = {
|
||||
alibaba: { provider: "alibaba", metadata: "alibaba" },
|
||||
anthropic: { provider: "anthropic", metadata: "anthropic" },
|
||||
cohere: { provider: "cohere", metadata: "cohere" },
|
||||
deepseek: { provider: "deepseek", metadata: "deepseek" },
|
||||
@@ -22,6 +22,10 @@ const CANONICAL_PROVIDER_PREFIXES = {
|
||||
mistralai: { provider: "mistral", metadata: "mistral" },
|
||||
moonshotai: { provider: "moonshotai", metadata: "moonshotai" },
|
||||
openai: { provider: "openai", metadata: "openai" },
|
||||
nvidia: { provider: "nvidia", metadata: "nvidia" },
|
||||
qwen: { provider: "alibaba", metadata: "alibaba" },
|
||||
stepfun: { provider: "stepfun", metadata: "stepfun" },
|
||||
tencent: { provider: "tencent", metadata: "tencent" },
|
||||
"x-ai": { provider: "xai", metadata: "xai" },
|
||||
xai: { provider: "xai", metadata: "xai" },
|
||||
xiaomi: { provider: "xiaomi", metadata: "xiaomi" },
|
||||
@@ -121,7 +125,11 @@ function inferFamily(model: OpenRouterModel, name: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export function buildOpenRouterModel(model: OpenRouterModel, existing: ExistingModel | undefined): SyncedModel {
|
||||
export function buildOpenRouterModel(
|
||||
model: OpenRouterModel,
|
||||
existing: ExistingModel | undefined,
|
||||
baseModel?: string,
|
||||
): SyncedModel {
|
||||
const params = new Set(model.supported_parameters);
|
||||
const name = model.name.replace(/^[^:]+:\s+/, "");
|
||||
const input = modalities(model.architecture.input_modalities, ["text"]);
|
||||
@@ -155,14 +163,13 @@ export function buildOpenRouterModel(model: OpenRouterModel, existing: ExistingM
|
||||
input: existing?.limit?.input,
|
||||
output: model.top_provider.max_completion_tokens ?? existing?.limit?.output ?? context,
|
||||
};
|
||||
const canonical = resolveCanonicalModel(model.id);
|
||||
const canonical = existing?.base_model ?? baseModel ?? resolveCanonicalBaseModel(model.id);
|
||||
|
||||
if (canonical !== undefined) {
|
||||
return {
|
||||
base_model: canonical.from,
|
||||
base_model_omit: baseModelOmit(canonical.from, limit),
|
||||
...baseModelOverrides(canonical.from, {
|
||||
name: model.id.endsWith(":free") ? name : undefined,
|
||||
return factorBaseModel(
|
||||
canonical,
|
||||
{
|
||||
name: baseModel !== undefined || model.id.endsWith(":free") ? name : undefined,
|
||||
attachment,
|
||||
reasoning,
|
||||
temperature: params.has("temperature"),
|
||||
@@ -172,9 +179,11 @@ export function buildOpenRouterModel(model: OpenRouterModel, existing: ExistingM
|
||||
interleaved: existing?.interleaved,
|
||||
limit,
|
||||
modalities: { input, output },
|
||||
}),
|
||||
cost,
|
||||
};
|
||||
cost,
|
||||
},
|
||||
limit,
|
||||
existing?.base_model === canonical ? existing.base_model_omit : undefined,
|
||||
);
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -197,7 +206,7 @@ export function buildOpenRouterModel(model: OpenRouterModel, existing: ExistingM
|
||||
} satisfies SyncedFullModel;
|
||||
}
|
||||
|
||||
function resolveCanonicalModel(openrouterID: string) {
|
||||
export function resolveCanonicalBaseModel(openrouterID: string) {
|
||||
const [prefix, ...modelParts] = openrouterID.split("/");
|
||||
if (prefix === undefined || modelParts.length === 0) return undefined;
|
||||
if (openrouterID.startsWith("~/") || prefix.startsWith("~")) return undefined;
|
||||
@@ -208,34 +217,36 @@ function resolveCanonicalModel(openrouterID: string) {
|
||||
const modelID = modelParts.join("/").replace(/:free$/, "");
|
||||
const candidates = canonicalCandidates(canonical.provider, modelID);
|
||||
const match = candidates.find((candidate) => {
|
||||
return canonicalModelExists(canonical.provider, candidate) &&
|
||||
modelMetadataExists(canonical.metadata, candidate);
|
||||
return modelMetadataExists(canonical.metadata, candidate);
|
||||
});
|
||||
|
||||
return match === undefined
|
||||
? undefined
|
||||
: {
|
||||
from: `${canonical.metadata}/${match}`,
|
||||
provider: canonical.provider,
|
||||
modelID: match,
|
||||
};
|
||||
return match === undefined ? undefined : `${canonical.metadata}/${match}`;
|
||||
}
|
||||
|
||||
function canonicalModelExists(provider: string, modelID: string) {
|
||||
let files = modelFilesByProvider.get(provider);
|
||||
function modelMetadataExists(provider: string, modelID: string) {
|
||||
let files = modelMetadataFilesByProvider.get(provider);
|
||||
if (files === undefined) {
|
||||
try {
|
||||
files = new Set(readdirSync(path.join(PROVIDERS_DIR, provider, "models")));
|
||||
files = new Set(readdirSync(path.join(MODELS_DIR, provider)));
|
||||
} catch {
|
||||
files = new Set();
|
||||
}
|
||||
modelFilesByProvider.set(provider, files);
|
||||
modelMetadataFilesByProvider.set(provider, files);
|
||||
}
|
||||
return files.has(`${modelID}.toml`);
|
||||
}
|
||||
|
||||
function modelMetadataExists(provider: string, modelID: string) {
|
||||
return existsSync(path.join(MODELS_DIR, provider, `${modelID}.toml`));
|
||||
export function factorBaseModel(
|
||||
modelID: string,
|
||||
values: Partial<SyncedFullModel>,
|
||||
limit: SyncedFullModel["limit"],
|
||||
existingOmit?: string[],
|
||||
): SyncedModel {
|
||||
return {
|
||||
base_model: modelID,
|
||||
base_model_omit: existingOmit ?? baseModelOmit(modelID, limit),
|
||||
...baseModelOverrides(modelID, values),
|
||||
};
|
||||
}
|
||||
|
||||
function baseModelOmit(
|
||||
@@ -246,12 +257,10 @@ function baseModelOmit(
|
||||
const omit: string[] = [];
|
||||
const baseLimit = metadata.limit;
|
||||
if (
|
||||
baseLimit !== undefined &&
|
||||
baseLimit !== null &&
|
||||
typeof baseLimit === "object" &&
|
||||
!Array.isArray(baseLimit) &&
|
||||
(baseLimit as Record<string, unknown>).input !== undefined &&
|
||||
limit.input === undefined
|
||||
isPlainObject(baseLimit) &&
|
||||
baseLimit.input !== undefined &&
|
||||
limit.input === undefined &&
|
||||
baseLimit.context !== limit.context
|
||||
) {
|
||||
omit.push("limit.input");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { ModelFamilyValues } from "../../family.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://ai-gateway.vercel.sh/v1/models";
|
||||
|
||||
const ModelType = z.enum(["language", "embedding", "image", "video", "reranking"]);
|
||||
|
||||
const PricingTier = z.object({
|
||||
cost: z.string(),
|
||||
min: z.number(),
|
||||
max: z.number().optional(),
|
||||
});
|
||||
|
||||
const Pricing = z.object({
|
||||
input: z.string().optional(),
|
||||
output: z.string().optional(),
|
||||
input_cache_read: z.string().optional(),
|
||||
input_cache_write: z.string().optional(),
|
||||
input_tiers: z.array(PricingTier).optional(),
|
||||
output_tiers: z.array(PricingTier).optional(),
|
||||
input_cache_read_tiers: z.array(PricingTier).optional(),
|
||||
input_cache_write_tiers: z.array(PricingTier).optional(),
|
||||
}).passthrough();
|
||||
|
||||
export const VercelModel = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
created: z.number(),
|
||||
released: z.number().optional(),
|
||||
context_window: z.number(),
|
||||
max_tokens: z.number(),
|
||||
type: ModelType,
|
||||
tags: z.array(z.string()).optional().default([]),
|
||||
pricing: Pricing.optional(),
|
||||
}).passthrough();
|
||||
|
||||
const VercelResponse = z.object({
|
||||
data: z.array(VercelModel),
|
||||
}).passthrough();
|
||||
|
||||
export type VercelModel = z.infer<typeof VercelModel>;
|
||||
|
||||
export const vercel = {
|
||||
id: "vercel",
|
||||
name: "Vercel AI Gateway",
|
||||
modelsDir: "providers/vercel/models",
|
||||
deleteMissing: false,
|
||||
preserveSymlinks: true,
|
||||
missingNotice(paths) {
|
||||
return paths.map((model) => `Vercel model is no longer returned by the API: ${model}`);
|
||||
},
|
||||
async fetchModels() {
|
||||
const response = await fetch(API_ENDPOINT);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Vercel AI Gateway request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
return VercelResponse.parse(raw).data;
|
||||
},
|
||||
translateModel(model, context) {
|
||||
if (model.type === "image" || model.type === "video" || model.type === "reranking") {
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
id: model.id,
|
||||
model: buildVercelModel(model, context.existing(model.id)),
|
||||
};
|
||||
},
|
||||
sameModel(current, desired) {
|
||||
return sameVercelModel(current, desired);
|
||||
},
|
||||
} satisfies SyncProvider<VercelModel>;
|
||||
|
||||
export function buildVercelModel(model: VercelModel, existing: ExistingModel | undefined): SyncedModel {
|
||||
const tags = new Set(model.tags);
|
||||
const releaseDate = model.released
|
||||
? dateFromTimestamp(model.released)
|
||||
: existing?.release_date ?? new Date().toISOString().slice(0, 10);
|
||||
const context = model.context_window > 0
|
||||
? model.context_window
|
||||
: existing?.limit?.context ?? 0;
|
||||
const output = model.max_tokens > 0
|
||||
? model.max_tokens
|
||||
: existing?.limit?.output ?? 0;
|
||||
const input = model.id.startsWith("openai/") && context > output
|
||||
? context - output
|
||||
: undefined;
|
||||
const cost = buildCost(model.pricing, existing?.cost);
|
||||
|
||||
const synced: SyncedFullModel = {
|
||||
name: existing?.name ?? model.name,
|
||||
family: existing?.family ?? inferFamily(model.id, model.name),
|
||||
release_date: releaseDate,
|
||||
last_updated: existing?.last_updated ?? releaseDate,
|
||||
attachment: existing?.attachment ?? (tags.has("vision") || tags.has("file-input")),
|
||||
reasoning: existing?.reasoning ?? tags.has("reasoning"),
|
||||
reasoning_options: existing?.reasoning_options,
|
||||
temperature: true,
|
||||
tool_call: existing?.tool_call ?? tags.has("tool-use"),
|
||||
structured_output: existing?.structured_output,
|
||||
knowledge: existing?.knowledge,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
status: existing?.status,
|
||||
interleaved: existing?.interleaved,
|
||||
experimental: existing?.experimental,
|
||||
provider: existing?.provider,
|
||||
cost,
|
||||
limit: { context, input, output },
|
||||
modalities: {
|
||||
input: ["text", tags.has("vision") ? "image" : undefined, tags.has("file-input") ? "pdf" : undefined]
|
||||
.filter((value): value is "text" | "image" | "pdf" => value !== undefined),
|
||||
output: tags.has("image-generation") ? ["text", "image"] : ["text"],
|
||||
},
|
||||
};
|
||||
|
||||
const baseModel = existing?.base_model ?? resolveCanonicalBaseModel(model.id);
|
||||
if (baseModel === undefined) return synced;
|
||||
|
||||
const { last_updated: _lastUpdated, ...overrides } = synced;
|
||||
return factorBaseModel(baseModel, overrides, synced.limit, existing?.base_model_omit);
|
||||
}
|
||||
|
||||
function dateFromTimestamp(timestamp: number) {
|
||||
return new Date(timestamp * 1000).toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
function price(value: string | undefined) {
|
||||
if (value === undefined) return undefined;
|
||||
const number = Number(value);
|
||||
return Number.isFinite(number) && number >= 0
|
||||
? Math.round(number * 1_000_000_000_000) / 1_000_000
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function buildCost(pricing: VercelModel["pricing"], existing?: ExistingModel["cost"]) {
|
||||
const input = price(pricing?.input_tiers?.[0]?.cost ?? pricing?.input);
|
||||
const output = price(pricing?.output_tiers?.[0]?.cost ?? pricing?.output);
|
||||
if (input === undefined || output === undefined) return undefined;
|
||||
return {
|
||||
input,
|
||||
output,
|
||||
reasoning: existing?.reasoning,
|
||||
cache_read: price(pricing?.input_cache_read_tiers?.[0]?.cost ?? pricing?.input_cache_read),
|
||||
cache_write: price(pricing?.input_cache_write_tiers?.[0]?.cost ?? pricing?.input_cache_write),
|
||||
tiers: existing?.tiers,
|
||||
};
|
||||
}
|
||||
|
||||
function inferFamily(modelID: string, name: string) {
|
||||
const targets = [modelID, name].map((value) => value.toLowerCase());
|
||||
const families = [...ModelFamilyValues].sort((a, b) => b.length - a.length);
|
||||
return families.find((family) => targets.some((target) => target.includes(family.toLowerCase())))
|
||||
?? families.find((family) => targets.some((target) => isSubsequence(target, family.toLowerCase())));
|
||||
}
|
||||
|
||||
function isSubsequence(target: string, value: string) {
|
||||
let index = 0;
|
||||
for (const character of target) {
|
||||
if (character === value[index]) index++;
|
||||
}
|
||||
return index === value.length;
|
||||
}
|
||||
|
||||
function sameVercelModel(current: ExistingModel, desired: SyncedModel) {
|
||||
const desiredModel = desired as ExistingModel;
|
||||
const fields: Array<[unknown, unknown, boolean?]> = [
|
||||
[current.base_model, desiredModel.base_model],
|
||||
[current.base_model_omit, desiredModel.base_model_omit],
|
||||
[current.name, desiredModel.name],
|
||||
[current.family, desiredModel.family],
|
||||
[current.attachment, desiredModel.attachment],
|
||||
[current.reasoning, desiredModel.reasoning],
|
||||
[current.tool_call, desiredModel.tool_call],
|
||||
[current.structured_output, desiredModel.structured_output],
|
||||
[current.open_weights, desiredModel.open_weights],
|
||||
[current.release_date, desiredModel.release_date],
|
||||
[current.cost?.input, desiredModel.cost?.input, true],
|
||||
[current.cost?.output, desiredModel.cost?.output, true],
|
||||
[current.cost?.cache_read, desiredModel.cost?.cache_read, true],
|
||||
[current.cost?.cache_write, desiredModel.cost?.cache_write, true],
|
||||
[current.limit?.context, desiredModel.limit?.context],
|
||||
[current.limit?.input, desiredModel.limit?.input],
|
||||
[current.limit?.output, desiredModel.limit?.output],
|
||||
[current.modalities?.input, desiredModel.modalities?.input],
|
||||
];
|
||||
|
||||
return fields.every(([currentValue, desiredValue, cost]) => {
|
||||
if (cost && currentValue === 0 && desiredValue === undefined) return true;
|
||||
if (cost && typeof currentValue === "number" && typeof desiredValue === "number") {
|
||||
return Math.abs(currentValue - desiredValue) <= 0.001;
|
||||
}
|
||||
if (
|
||||
(currentValue === 0 || desiredValue === 0)
|
||||
&& (typeof currentValue === "number" || typeof desiredValue === "number")
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return JSON.stringify(currentValue) === JSON.stringify(desiredValue);
|
||||
});
|
||||
}
|
||||
@@ -222,6 +222,7 @@ input = ["text"]
|
||||
"llama",
|
||||
"opencode",
|
||||
"tencent-tokenhub",
|
||||
"zai",
|
||||
];
|
||||
const namespaceDirs = providerNamespaces.filter((namespace) =>
|
||||
existsSync(path.join(root, "models", namespace))
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
import { expect, test } from "bun:test";
|
||||
|
||||
import { preserveBaseModel } from "../src/sync/index.js";
|
||||
import { resolveCloudflareBaseModel } from "../src/sync/providers/cloudflare-workers-ai.js";
|
||||
import { buildOpenRouterModel, type OpenRouterModel } from "../src/sync/providers/openrouter.js";
|
||||
|
||||
test("OpenRouter z-ai models inherit from zhipuai metadata", () => {
|
||||
const model: OpenRouterModel = {
|
||||
id: "z-ai/glm-5.1",
|
||||
name: "Z.AI: GLM-5.1",
|
||||
created: 1_777_680_000,
|
||||
hugging_face_id: "zai-org/GLM-5.1",
|
||||
knowledge_cutoff: null,
|
||||
context_length: 200_000,
|
||||
architecture: {
|
||||
input_modalities: ["text"],
|
||||
output_modalities: ["text"],
|
||||
},
|
||||
pricing: {
|
||||
prompt: "0.0000014",
|
||||
completion: "0.0000044",
|
||||
},
|
||||
top_provider: {
|
||||
context_length: 200_000,
|
||||
max_completion_tokens: 131_072,
|
||||
},
|
||||
supported_parameters: ["tools", "tool_choice", "temperature", "structured_outputs"],
|
||||
};
|
||||
|
||||
const synced = buildOpenRouterModel(model, undefined);
|
||||
|
||||
expect("base_model" in synced ? synced.base_model : undefined).toBe("zhipuai/glm-5.1");
|
||||
});
|
||||
|
||||
test("OpenRouter-derived syncs preserve existing base model links", () => {
|
||||
const model: OpenRouterModel = {
|
||||
id: "@cf/nvidia/nemotron-3-120b-a12b",
|
||||
name: "Nemotron 3 Super 120B",
|
||||
created: 1_773_187_200,
|
||||
hugging_face_id: "nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16",
|
||||
knowledge_cutoff: null,
|
||||
context_length: 256_000,
|
||||
architecture: {
|
||||
input_modalities: ["text"],
|
||||
output_modalities: ["text"],
|
||||
},
|
||||
pricing: {
|
||||
prompt: "0.0000005",
|
||||
completion: "0.0000015",
|
||||
},
|
||||
top_provider: {
|
||||
context_length: 256_000,
|
||||
max_completion_tokens: 256_000,
|
||||
},
|
||||
supported_parameters: ["reasoning", "tools", "temperature", "structured_outputs"],
|
||||
};
|
||||
|
||||
const synced = preserveBaseModel(buildOpenRouterModel(model, undefined), {
|
||||
base_model: "nvidia/nemotron-3-super-120b-a12b",
|
||||
base_model_omit: ["limit.input"],
|
||||
});
|
||||
|
||||
expect("base_model" in synced ? synced.base_model : undefined)
|
||||
.toBe("nvidia/nemotron-3-super-120b-a12b");
|
||||
expect("base_model_omit" in synced ? synced.base_model_omit : undefined)
|
||||
.toEqual(["limit.input"]);
|
||||
});
|
||||
|
||||
test("newly detected base models do not replace existing links", () => {
|
||||
const model: OpenRouterModel = {
|
||||
id: "z-ai/glm-5.1",
|
||||
name: "Z.AI: GLM-5.1",
|
||||
created: 1_777_680_000,
|
||||
hugging_face_id: null,
|
||||
knowledge_cutoff: null,
|
||||
context_length: 200_000,
|
||||
architecture: { input_modalities: ["text"], output_modalities: ["text"] },
|
||||
pricing: { prompt: "0.0000014", completion: "0.0000044" },
|
||||
top_provider: { context_length: 200_000, max_completion_tokens: 131_072 },
|
||||
supported_parameters: ["tools"],
|
||||
};
|
||||
const synced = buildOpenRouterModel(model, {
|
||||
base_model: "zhipuai/glm-5",
|
||||
});
|
||||
|
||||
expect("base_model" in synced ? synced.base_model : undefined).toBe("zhipuai/glm-5");
|
||||
});
|
||||
|
||||
test("undefined translated links preserve existing base model fields", () => {
|
||||
const synced = preserveBaseModel({
|
||||
base_model: undefined,
|
||||
} as never, {
|
||||
base_model: "nvidia/nemotron-3-super-120b-a12b",
|
||||
base_model_omit: ["limit.input"],
|
||||
});
|
||||
|
||||
expect("base_model" in synced ? synced.base_model : undefined)
|
||||
.toBe("nvidia/nemotron-3-super-120b-a12b");
|
||||
expect("base_model_omit" in synced ? synced.base_model_omit : undefined)
|
||||
.toEqual(["limit.input"]);
|
||||
});
|
||||
|
||||
test("new Cloudflare models discover a unique metadata base model", () => {
|
||||
const model: OpenRouterModel = {
|
||||
id: "@cf/nvidia/nemotron-3-120b-a12b",
|
||||
name: "Nemotron 3 Super 120B",
|
||||
created: 1_773_187_200,
|
||||
hugging_face_id: null,
|
||||
knowledge_cutoff: null,
|
||||
context_length: 256_000,
|
||||
architecture: { input_modalities: ["text"], output_modalities: ["text"] },
|
||||
pricing: { prompt: "0.0000005", completion: "0.0000015" },
|
||||
top_provider: { context_length: 256_000, max_completion_tokens: 256_000 },
|
||||
supported_parameters: ["reasoning"],
|
||||
};
|
||||
|
||||
expect(resolveCloudflareBaseModel(model)).toBe("nvidia/nemotron-3-super-120b-a12b");
|
||||
const synced = buildOpenRouterModel(model, undefined, resolveCloudflareBaseModel(model));
|
||||
expect("base_model" in synced ? synced.base_model : undefined)
|
||||
.toBe("nvidia/nemotron-3-super-120b-a12b");
|
||||
});
|
||||
@@ -0,0 +1,99 @@
|
||||
import { expect, test } from "bun:test";
|
||||
import path from "node:path";
|
||||
import { mkdtemp, mkdir, readlink, symlink } from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
|
||||
import { syncProvider, type SyncProvider, type SyncedFullModel } from "../src/sync/index.js";
|
||||
|
||||
const model: SyncedFullModel = {
|
||||
name: "Test model",
|
||||
release_date: "2026-01-01",
|
||||
last_updated: "2026-01-01",
|
||||
attachment: false,
|
||||
reasoning: false,
|
||||
tool_call: false,
|
||||
open_weights: false,
|
||||
cost: { input: 1, output: 2 },
|
||||
limit: { context: 1_000, output: 100 },
|
||||
modalities: { input: ["text"], output: ["text"] },
|
||||
};
|
||||
|
||||
async function fixture() {
|
||||
const root = await mkdtemp(path.join(os.tmpdir(), "models-dev-sync-"));
|
||||
const modelsDir = path.join(root, "providers", "test", "models");
|
||||
await mkdir(modelsDir, { recursive: true });
|
||||
return { root, modelsDir };
|
||||
}
|
||||
|
||||
function provider(
|
||||
modelsDir: string,
|
||||
ids: string[],
|
||||
deleteMissing = true,
|
||||
preserveSymlinks = false,
|
||||
): SyncProvider<string> {
|
||||
return {
|
||||
id: "test",
|
||||
name: "Test",
|
||||
modelsDir,
|
||||
deleteMissing,
|
||||
preserveSymlinks,
|
||||
missingNotice: (paths) => paths.map((item) => `missing: ${item}`),
|
||||
async fetchModels() {
|
||||
return ids;
|
||||
},
|
||||
parseModels(raw) {
|
||||
return raw as string[];
|
||||
},
|
||||
translateModel(id) {
|
||||
return { id, model };
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
test("sync repairs a broken symlink returned by the source", async () => {
|
||||
const { modelsDir } = await fixture();
|
||||
const filePath = path.join(modelsDir, "model.toml");
|
||||
await symlink("missing.toml", filePath);
|
||||
|
||||
const result = await syncProvider(provider(modelsDir, ["model"]));
|
||||
|
||||
expect(result.created).toBe(1);
|
||||
expect(await Bun.file(filePath).text()).toContain('name = "Test model"');
|
||||
expect(readlink(filePath)).rejects.toThrow();
|
||||
});
|
||||
|
||||
test("sync preserves valid symlink aliases when configured", async () => {
|
||||
const { root, modelsDir } = await fixture();
|
||||
const targetPath = path.join(root, "target.toml");
|
||||
const filePath = path.join(modelsDir, "model.toml");
|
||||
await Bun.write(targetPath, `name = "Alias target"\n`);
|
||||
await symlink(targetPath, filePath);
|
||||
|
||||
const result = await syncProvider(provider(modelsDir, ["model"], true, true));
|
||||
|
||||
expect(result.updated).toBe(0);
|
||||
expect(await readlink(filePath)).toBe(targetPath);
|
||||
});
|
||||
|
||||
test("sync removes a broken symlink absent from the source", async () => {
|
||||
const { modelsDir } = await fixture();
|
||||
const filePath = path.join(modelsDir, "model.toml");
|
||||
await symlink("missing.toml", filePath);
|
||||
|
||||
const result = await syncProvider(provider(modelsDir, []));
|
||||
|
||||
expect(result.deleted).toBe(1);
|
||||
expect(await Bun.file(filePath).exists()).toBe(false);
|
||||
});
|
||||
|
||||
test("non-deleting sync reports missing broken symlinks", async () => {
|
||||
const { modelsDir } = await fixture();
|
||||
const filePath = path.join(modelsDir, "model.toml");
|
||||
await symlink("missing.toml", filePath);
|
||||
|
||||
const result = await syncProvider(provider(modelsDir, [], false));
|
||||
|
||||
expect(result.deleted).toBe(0);
|
||||
expect(result.notices).toEqual(["missing: model.toml"]);
|
||||
expect(await readlink(filePath)).toBe("missing.toml");
|
||||
});
|
||||
@@ -0,0 +1,77 @@
|
||||
import { expect, test } from "bun:test";
|
||||
|
||||
import { buildVercelModel, type VercelModel } from "../src/sync/providers/vercel.js";
|
||||
|
||||
const model: VercelModel = {
|
||||
id: "openai/gpt-test",
|
||||
name: "GPT Test",
|
||||
created: 1_700_000_000,
|
||||
released: 1_710_000_000,
|
||||
context_window: 128_000,
|
||||
max_tokens: 32_000,
|
||||
type: "language",
|
||||
tags: ["reasoning", "tool-use", "vision", "file-input"],
|
||||
pricing: {
|
||||
input: "0.000001",
|
||||
output: "0.000004",
|
||||
input_cache_read: "0.0000001",
|
||||
},
|
||||
};
|
||||
|
||||
test("Vercel models translate gateway metadata", () => {
|
||||
const synced = buildVercelModel(model, undefined);
|
||||
|
||||
expect(synced).toMatchObject({
|
||||
name: "GPT Test",
|
||||
release_date: "2024-03-09",
|
||||
last_updated: "2024-03-09",
|
||||
attachment: true,
|
||||
reasoning: true,
|
||||
tool_call: true,
|
||||
open_weights: false,
|
||||
cost: { input: 1, output: 4, cache_read: 0.1 },
|
||||
limit: { context: 128_000, input: 96_000, output: 32_000 },
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
});
|
||||
});
|
||||
|
||||
test("Vercel models preserve curated metadata and missing limits", () => {
|
||||
const synced = buildVercelModel({
|
||||
...model,
|
||||
context_window: 0,
|
||||
max_tokens: 0,
|
||||
}, {
|
||||
name: "Curated name",
|
||||
release_date: "2024-01-01",
|
||||
last_updated: "2025-01-01",
|
||||
reasoning_options: [{ type: "effort", values: ["low", "high"] }],
|
||||
cost: {
|
||||
input: 2,
|
||||
output: 8,
|
||||
tiers: [{
|
||||
tier: { type: "context", size: 200_000 },
|
||||
input: 3,
|
||||
output: 12,
|
||||
}],
|
||||
},
|
||||
limit: { context: 64_000, input: 48_000, output: 16_000 },
|
||||
});
|
||||
|
||||
expect(synced.name).toBe("Curated name");
|
||||
expect(synced.last_updated).toBe("2025-01-01");
|
||||
expect(synced.reasoning_options).toEqual([{ type: "effort", values: ["low", "high"] }]);
|
||||
expect(synced.cost?.tiers).toHaveLength(1);
|
||||
expect(synced.limit).toEqual({ context: 64_000, input: 48_000, output: 16_000 });
|
||||
});
|
||||
|
||||
test("Vercel models use canonical metadata when available", () => {
|
||||
const synced = buildVercelModel({
|
||||
...model,
|
||||
id: "nvidia/nemotron-3-ultra-550b-a55b",
|
||||
name: "Nemotron 3 Ultra",
|
||||
}, undefined);
|
||||
|
||||
expect("base_model" in synced ? synced.base_model : undefined)
|
||||
.toBe("nvidia/nemotron-3-ultra-550b-a55b");
|
||||
expect("last_updated" in synced ? synced.last_updated : undefined).toBeUndefined();
|
||||
});
|
||||
@@ -1,5 +1,7 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "@tsconfig/bun/tsconfig.json",
|
||||
"compilerOptions": {}
|
||||
"compilerOptions": {
|
||||
"types": ["bun", "node"]
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,29 @@ for (const entry of entries) {
|
||||
}
|
||||
}
|
||||
|
||||
// Copy lab logos to dist/logos/labs/
|
||||
await fs.mkdir("./dist/logos/labs", { recursive: true });
|
||||
|
||||
const labsDir = "../../labs";
|
||||
try {
|
||||
const labEntries = await fs.readdir(labsDir, { withFileTypes: true });
|
||||
for (const entry of labEntries) {
|
||||
if (entry.isDirectory()) {
|
||||
const lab = entry.name;
|
||||
const logoPath = path.join(labsDir, lab, "logo.svg");
|
||||
const logoFile = Bun.file(logoPath);
|
||||
|
||||
if (await logoFile.exists()) {
|
||||
await Bun.write(`./dist/logos/labs/${lab}.svg`, logoFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if ((error as NodeJS.ErrnoException).code !== "ENOENT") {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
const template = await Bun.file("./dist/index.html").text();
|
||||
|
||||
for (const [route, rendered] of RenderedPages) {
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
--color-text-invert: #FFF;
|
||||
--color-text-secondary: #666;
|
||||
--color-text-tertiary: #999;
|
||||
--logo-image-filter: none;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@@ -34,6 +35,7 @@
|
||||
--color-text-invert: #333;
|
||||
--color-text-secondary: #AAA;
|
||||
--color-text-tertiary: #666;
|
||||
--logo-image-filter: invert(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,6 +58,18 @@ button {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-text);
|
||||
text-decoration: underline;
|
||||
@@ -166,32 +180,48 @@ header a.github svg {
|
||||
|
||||
header .search-container {
|
||||
position: relative;
|
||||
flex: 1 1 auto;
|
||||
min-width: 12.5rem;
|
||||
flex: 0 0 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
header input {
|
||||
width: 100%;
|
||||
header .search-trigger {
|
||||
display: inline-flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
width: 10.5rem;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.1;
|
||||
padding: 0.5rem 2.5rem 0.5rem 0.625rem;
|
||||
padding: 0.5rem 0.5rem 0.5rem 0.625rem;
|
||||
border-radius: 0.25rem;
|
||||
border: 1px solid var(--color-border);
|
||||
height: 2rem;
|
||||
background: none;
|
||||
color: var(--color-text);
|
||||
background-color: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
header input:focus {
|
||||
header .search-trigger:hover,
|
||||
header .search-trigger:focus {
|
||||
border-color: var(--color-brand);
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-surface);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
header .search-trigger-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
header .search-trigger-label svg {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
header .search-shortcut {
|
||||
position: absolute;
|
||||
right: 0.5rem;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
font-size: 0.75rem;
|
||||
color: var(--color-text-tertiary);
|
||||
pointer-events: none;
|
||||
@@ -211,6 +241,28 @@ header button {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
header .mobile-menu-trigger {
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
padding: 0;
|
||||
color: var(--color-text);
|
||||
background-color: transparent;
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
header .mobile-menu-trigger:hover,
|
||||
header .mobile-menu-trigger:focus {
|
||||
border-color: var(--color-brand);
|
||||
background-color: var(--color-surface);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
header .mobile-menu-trigger svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page-scroll {
|
||||
height: calc(100svh - var(--header-height));
|
||||
margin-top: var(--header-height);
|
||||
@@ -453,13 +505,15 @@ tbody tr:last-child td {
|
||||
margin-top: 0.125rem;
|
||||
}
|
||||
|
||||
.provider-link {
|
||||
.provider-link,
|
||||
.lab-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.provider-logo {
|
||||
.provider-logo,
|
||||
.lab-logo {
|
||||
flex: 0 0 auto;
|
||||
display: block;
|
||||
width: 1rem;
|
||||
@@ -467,7 +521,8 @@ tbody tr:last-child td {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.provider-logo svg {
|
||||
.provider-logo svg,
|
||||
.lab-logo svg {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -734,6 +789,240 @@ dialog .footer a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mobile-menu {
|
||||
width: min(18rem, calc(100vw - 1.5rem));
|
||||
max-width: calc(100vw - 1.5rem);
|
||||
max-height: calc(100svh - var(--header-height) - 1rem);
|
||||
margin: calc(var(--header-height) + 0.5rem) 0.75rem auto auto;
|
||||
}
|
||||
|
||||
.mobile-menu .header {
|
||||
padding: 0.875rem calc(0.875rem - 0.25rem) calc(0.875rem - 4px) 0.875rem;
|
||||
}
|
||||
|
||||
.mobile-menu-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
padding: 0.5rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.mobile-menu-list a,
|
||||
.mobile-menu-list button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-height: 2.5rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
border: 0;
|
||||
border-radius: 0.375rem;
|
||||
background-color: transparent;
|
||||
color: var(--color-text);
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.2;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mobile-menu-list a:hover,
|
||||
.mobile-menu-list a:focus,
|
||||
.mobile-menu-list button:hover,
|
||||
.mobile-menu-list button:focus,
|
||||
.mobile-menu-list a.active {
|
||||
background-color: var(--color-surface);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.mobile-menu-list a.active {
|
||||
color: var(--color-brand);
|
||||
}
|
||||
|
||||
.search-modal {
|
||||
margin-top: 10svh;
|
||||
width: calc(100vw - 1.5rem);
|
||||
max-width: 48rem;
|
||||
max-height: min(44rem, calc(100svh - 1.5rem));
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.search-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.875rem 1rem;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.search-field-icon {
|
||||
flex: 0 0 auto;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.search-field input {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
font-size: 1rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.search-field input::placeholder {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.search-escape {
|
||||
flex: 0 0 auto;
|
||||
color: var(--color-text-tertiary);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 0.25rem;
|
||||
padding: 0.1875rem 0.375rem;
|
||||
font-size: 0.6875rem;
|
||||
line-height: 1;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
||||
}
|
||||
|
||||
.search-count {
|
||||
flex: 0 0 auto;
|
||||
padding: 0.625rem 1rem 0.375rem;
|
||||
color: var(--color-text-tertiary);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.search-results {
|
||||
flex: 1 1 auto;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
padding: 0.25rem 0.5rem 0.5rem;
|
||||
}
|
||||
|
||||
.search-result {
|
||||
display: grid;
|
||||
grid-template-columns: 2rem minmax(0, 1fr);
|
||||
gap: 0.75rem;
|
||||
align-items: start;
|
||||
padding: 0.625rem;
|
||||
border-radius: 0.375rem;
|
||||
text-decoration: none;
|
||||
color: var(--color-text);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-result:hover,
|
||||
.search-result.is-active {
|
||||
background-color: var(--color-surface);
|
||||
}
|
||||
|
||||
.search-result-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 0.375rem;
|
||||
color: var(--color-text-secondary);
|
||||
background-color: var(--color-background);
|
||||
}
|
||||
|
||||
.search-result-icon img {
|
||||
display: block;
|
||||
width: 1.125rem;
|
||||
height: 1.125rem;
|
||||
object-fit: contain;
|
||||
filter: var(--logo-image-filter);
|
||||
}
|
||||
|
||||
.search-result-body {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.search-result-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.search-result-title {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 0.9375rem;
|
||||
line-height: 1.25;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.search-result-title mark,
|
||||
.search-result-subtitle mark {
|
||||
color: inherit;
|
||||
background-color: color-mix(in srgb, var(--color-brand) 24%, transparent);
|
||||
border-radius: 0.125rem;
|
||||
}
|
||||
|
||||
.search-result-kind {
|
||||
flex: 0 0 auto;
|
||||
padding: 0.1875rem 0.3125rem;
|
||||
border-radius: 0.25rem;
|
||||
border: 1px solid var(--color-border);
|
||||
color: var(--color-text-tertiary);
|
||||
font-size: 0.625rem;
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.search-result-subtitle {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.search-result-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.25rem;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.search-result-meta span {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding: 0.1875rem 0.375rem;
|
||||
border-radius: 0.25rem;
|
||||
background-color: var(--color-background);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.search-empty {
|
||||
flex: 0 0 auto;
|
||||
padding: 0.75rem 1rem 1rem;
|
||||
color: var(--color-text-tertiary);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.search-empty[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 68rem) {
|
||||
.overview {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -758,11 +1047,19 @@ dialog .footer a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header .github,
|
||||
header .search-container {
|
||||
header .github {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header .search-container,
|
||||
header > div.right > #help {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header .mobile-menu-trigger {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.overview h2,
|
||||
.detail-header h2 {
|
||||
font-size: 2rem;
|
||||
@@ -789,6 +1086,10 @@ dialog .footer a {
|
||||
padding-right: 0.625rem;
|
||||
}
|
||||
|
||||
header .mobile-menu-trigger {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.overview,
|
||||
.detail-header {
|
||||
padding-top: 1.5rem;
|
||||
|
||||
@@ -1,117 +1,538 @@
|
||||
type SortDirection = "asc" | "desc";
|
||||
|
||||
const modal = document.getElementById("modal") as HTMLDialogElement | null;
|
||||
interface SearchIndexItem {
|
||||
type: "model" | "provider" | "lab";
|
||||
title: string;
|
||||
id: string;
|
||||
href: string;
|
||||
logo: string;
|
||||
tokens: string[];
|
||||
lab?: string;
|
||||
modelCount?: number;
|
||||
providerCount?: number;
|
||||
context?: number;
|
||||
releaseDate?: string;
|
||||
inputCost?: number;
|
||||
outputCost?: number;
|
||||
npm?: string;
|
||||
api?: string;
|
||||
updated?: string;
|
||||
}
|
||||
|
||||
interface SearchResult {
|
||||
item: SearchIndexItem;
|
||||
score: number;
|
||||
}
|
||||
|
||||
const helpModal = document.getElementById("modal") as HTMLDialogElement | null;
|
||||
const modalClose = document.getElementById("close");
|
||||
const help = document.getElementById("help");
|
||||
const search = document.getElementById("search") as HTMLInputElement | null;
|
||||
const mobileMenu = document.getElementById(
|
||||
"mobile-menu",
|
||||
) as HTMLDialogElement | null;
|
||||
const mobileMenuTrigger = document.getElementById("mobile-menu-trigger");
|
||||
const mobileMenuClose = document.getElementById("mobile-menu-close");
|
||||
const mobileSearchTrigger = document.getElementById("mobile-search-trigger");
|
||||
const mobileHelpTrigger = document.getElementById("mobile-help-trigger");
|
||||
const searchModal = document.getElementById(
|
||||
"search-modal",
|
||||
) as HTMLDialogElement | null;
|
||||
const searchTrigger = document.getElementById("search-trigger");
|
||||
const searchInput = document.getElementById(
|
||||
"search-input",
|
||||
) as HTMLInputElement | null;
|
||||
const searchResults = document.getElementById("search-results");
|
||||
const searchCount = document.getElementById("search-count");
|
||||
const searchEmpty = document.getElementById("search-empty");
|
||||
const tables = Array.from(
|
||||
document.querySelectorAll<HTMLTableElement>("table[data-enhanced-table]"),
|
||||
);
|
||||
|
||||
let scrollYBeforeModal = 0;
|
||||
let lastFocusedElement: HTMLElement | null = null;
|
||||
let activeSearchIndex = 0;
|
||||
let rankedSearchResults: SearchResult[] = [];
|
||||
|
||||
/////////////////////////
|
||||
// URL State Management
|
||||
/////////////////////////
|
||||
function getQueryParams() {
|
||||
return new URLSearchParams(window.location.search);
|
||||
}
|
||||
|
||||
function updateQueryParams(updates: Record<string, string | null>) {
|
||||
const params = getQueryParams();
|
||||
for (const [key, value] of Object.entries(updates)) {
|
||||
if (value) {
|
||||
params.set(key, value);
|
||||
} else {
|
||||
params.delete(key);
|
||||
}
|
||||
}
|
||||
const newPath = params.toString()
|
||||
? `${window.location.pathname}?${params.toString()}`
|
||||
: window.location.pathname;
|
||||
window.history.pushState({}, "", newPath);
|
||||
}
|
||||
const searchItems = parseSearchIndex();
|
||||
const compactNumberFormatter = new Intl.NumberFormat(undefined, {
|
||||
notation: "compact",
|
||||
maximumFractionDigits: 1,
|
||||
});
|
||||
|
||||
/////////////////////////
|
||||
// Help Dialog
|
||||
/////////////////////////
|
||||
help?.addEventListener("click", () => {
|
||||
if (!modal) return;
|
||||
function openHelpDialog() {
|
||||
if (!helpModal) return;
|
||||
if (searchModal?.open) closeSearchModal();
|
||||
if (mobileMenu?.open) closeMobileMenu(false);
|
||||
|
||||
scrollYBeforeModal = window.scrollY;
|
||||
document.body.style.position = "fixed";
|
||||
document.body.style.top = `-${scrollYBeforeModal}px`;
|
||||
modal.showModal();
|
||||
});
|
||||
helpModal.showModal();
|
||||
}
|
||||
|
||||
help?.addEventListener("click", openHelpDialog);
|
||||
|
||||
function closeDialog() {
|
||||
if (!modal) return;
|
||||
modal.close();
|
||||
if (!helpModal) return;
|
||||
helpModal.close();
|
||||
document.body.style.position = "";
|
||||
document.body.style.top = "";
|
||||
window.scrollTo(0, scrollYBeforeModal);
|
||||
}
|
||||
|
||||
modalClose?.addEventListener("click", closeDialog);
|
||||
modal?.addEventListener("cancel", closeDialog);
|
||||
modal?.addEventListener("click", (event) => {
|
||||
if (event.target === modal) closeDialog();
|
||||
helpModal?.addEventListener("cancel", closeDialog);
|
||||
helpModal?.addEventListener("click", (event) => {
|
||||
if (event.target === helpModal) closeDialog();
|
||||
});
|
||||
|
||||
////////////////////
|
||||
// Search
|
||||
////////////////////
|
||||
function filterRows() {
|
||||
if (!search) return;
|
||||
function parseSearchIndex() {
|
||||
const index = document.getElementById("search-index")?.textContent;
|
||||
if (!index) return [];
|
||||
|
||||
const terms = search.value
|
||||
.toLowerCase()
|
||||
.split(",")
|
||||
.map((term) => term.trim())
|
||||
.filter(Boolean);
|
||||
|
||||
for (const table of tables) {
|
||||
const rows = Array.from(table.tBodies[0]?.rows ?? []);
|
||||
let visibleCount = 0;
|
||||
|
||||
for (const row of rows) {
|
||||
if (row.classList.contains("empty-row")) continue;
|
||||
|
||||
const searchText =
|
||||
row.getAttribute("data-search")?.toLowerCase() ??
|
||||
row.textContent?.toLowerCase() ??
|
||||
"";
|
||||
const visible =
|
||||
terms.length === 0 ||
|
||||
terms.some((term) => searchText.includes(term));
|
||||
|
||||
row.hidden = !visible;
|
||||
if (visible) visibleCount++;
|
||||
}
|
||||
|
||||
table
|
||||
.closest(".table-section")
|
||||
?.toggleAttribute("data-empty", visibleCount === 0);
|
||||
try {
|
||||
const parsed = JSON.parse(index);
|
||||
return Array.isArray(parsed) ? (parsed as SearchIndexItem[]) : [];
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
search?.addEventListener("input", () => {
|
||||
updateQueryParams({ search: search.value || null });
|
||||
filterRows();
|
||||
function normalizeSearchText(value: string) {
|
||||
return value.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
|
||||
}
|
||||
|
||||
function searchFields(item: SearchIndexItem) {
|
||||
return [item.title, item.id, ...item.tokens].filter(Boolean);
|
||||
}
|
||||
|
||||
function fuzzySequenceScore(haystack: string, needle: string) {
|
||||
let score = 0;
|
||||
let previousIndex = -1;
|
||||
let searchFrom = 0;
|
||||
|
||||
for (const character of needle) {
|
||||
const index = haystack.indexOf(character, searchFrom);
|
||||
if (index === -1) return 0;
|
||||
|
||||
if (index === 0 || haystack[index - 1] === " ") {
|
||||
score += 8;
|
||||
} else if (index === previousIndex + 1) {
|
||||
score += 6;
|
||||
} else {
|
||||
score += 2;
|
||||
}
|
||||
|
||||
previousIndex = index;
|
||||
searchFrom = index + 1;
|
||||
}
|
||||
|
||||
return score + Math.max(0, 12 - haystack.length / 8);
|
||||
}
|
||||
|
||||
function scoreTerm(field: string, term: string) {
|
||||
const normalized = normalizeSearchText(field);
|
||||
if (!normalized) return 0;
|
||||
if (normalized === term) return 120;
|
||||
if (normalized.startsWith(term)) return 100;
|
||||
if (normalized.split(" ").some((word) => word.startsWith(term))) return 82;
|
||||
|
||||
const index = normalized.indexOf(term);
|
||||
if (index !== -1) return 64 - Math.min(index, 24);
|
||||
|
||||
return fuzzySequenceScore(normalized, term);
|
||||
}
|
||||
|
||||
function scoreSearchItem(item: SearchIndexItem, query: string) {
|
||||
const terms = normalizeSearchText(query).split(/\s+/).filter(Boolean);
|
||||
if (terms.length === 0) return 1;
|
||||
|
||||
let score = 0;
|
||||
for (const term of terms) {
|
||||
let best = 0;
|
||||
for (const field of searchFields(item)) {
|
||||
best = Math.max(best, scoreTerm(field, term));
|
||||
}
|
||||
if (best <= 0) return 0;
|
||||
score += best;
|
||||
}
|
||||
|
||||
const normalizedTitle = normalizeSearchText(item.title);
|
||||
const normalizedId = normalizeSearchText(item.id);
|
||||
const normalizedQuery = normalizeSearchText(query);
|
||||
if (normalizedTitle === normalizedQuery || normalizedId === normalizedQuery) {
|
||||
score += 120;
|
||||
} else if (normalizedTitle.startsWith(normalizedQuery)) {
|
||||
score += 44;
|
||||
} else if (normalizedId.startsWith(normalizedQuery)) {
|
||||
score += 36;
|
||||
}
|
||||
|
||||
if (item.type === "model") score += 8;
|
||||
return score;
|
||||
}
|
||||
|
||||
function rankSearchItems(query: string) {
|
||||
const normalizedQuery = normalizeSearchText(query);
|
||||
const results = searchItems
|
||||
.map((item) => ({ item, score: scoreSearchItem(item, normalizedQuery) }))
|
||||
.filter((result) => result.score > 0)
|
||||
.sort((a, b) => {
|
||||
if (b.score !== a.score) return b.score - a.score;
|
||||
const dateComparison = compareSearchDates(
|
||||
searchSortDate(a.item),
|
||||
searchSortDate(b.item),
|
||||
);
|
||||
if (dateComparison !== 0) return dateComparison;
|
||||
return a.item.title.localeCompare(b.item.title, undefined, {
|
||||
numeric: true,
|
||||
sensitivity: "base",
|
||||
});
|
||||
});
|
||||
|
||||
return normalizedQuery ? results.slice(0, 40) : results.slice(0, 18);
|
||||
}
|
||||
|
||||
function compareSearchDates(a?: string, b?: string) {
|
||||
if (a === undefined && b === undefined) return 0;
|
||||
if (a === undefined) return 1;
|
||||
if (b === undefined) return -1;
|
||||
return b.localeCompare(a);
|
||||
}
|
||||
|
||||
function searchSortDate(item: SearchIndexItem) {
|
||||
return item.releaseDate ?? item.updated;
|
||||
}
|
||||
|
||||
function formatCompactNumber(value?: number) {
|
||||
if (value === undefined) return undefined;
|
||||
return compactNumberFormatter.format(value);
|
||||
}
|
||||
|
||||
function formatCost(input?: number, output?: number) {
|
||||
if (input === undefined && output === undefined) return undefined;
|
||||
const inputText = input === undefined ? "-" : `$${input.toFixed(2)}`;
|
||||
const outputText = output === undefined ? "-" : `$${output.toFixed(2)}`;
|
||||
return `${inputText} / ${outputText}`;
|
||||
}
|
||||
|
||||
function appendHighlightedText(
|
||||
element: HTMLElement,
|
||||
text: string,
|
||||
query: string,
|
||||
) {
|
||||
const terms = normalizeSearchText(query).split(/\s+/).filter(Boolean);
|
||||
if (terms.length === 0) {
|
||||
element.textContent = text;
|
||||
return;
|
||||
}
|
||||
|
||||
const lowerText = text.toLowerCase();
|
||||
const ranges = terms
|
||||
.map((term) => {
|
||||
const index = lowerText.indexOf(term);
|
||||
return index === -1 ? undefined : [index, index + term.length] as const;
|
||||
})
|
||||
.filter((range): range is readonly [number, number] => range !== undefined)
|
||||
.sort((a, b) => a[0] - b[0]);
|
||||
|
||||
if (ranges.length === 0) {
|
||||
element.textContent = text;
|
||||
return;
|
||||
}
|
||||
|
||||
let cursor = 0;
|
||||
for (const [start, end] of ranges) {
|
||||
if (start < cursor) continue;
|
||||
if (start > cursor) {
|
||||
element.append(document.createTextNode(text.slice(cursor, start)));
|
||||
}
|
||||
const mark = document.createElement("mark");
|
||||
mark.textContent = text.slice(start, end);
|
||||
element.append(mark);
|
||||
cursor = end;
|
||||
}
|
||||
if (cursor < text.length) {
|
||||
element.append(document.createTextNode(text.slice(cursor)));
|
||||
}
|
||||
}
|
||||
|
||||
function resultMeta(item: SearchIndexItem) {
|
||||
if (item.type === "model") {
|
||||
return [
|
||||
item.lab,
|
||||
item.providerCount === undefined
|
||||
? undefined
|
||||
: `${item.providerCount} providers`,
|
||||
item.context === undefined
|
||||
? undefined
|
||||
: `${formatCompactNumber(item.context)} context`,
|
||||
formatCost(item.inputCost, item.outputCost),
|
||||
item.updated,
|
||||
].filter((value): value is string => Boolean(value));
|
||||
}
|
||||
|
||||
if (item.type === "provider") {
|
||||
return [
|
||||
item.modelCount === undefined ? undefined : `${item.modelCount} models`,
|
||||
item.npm,
|
||||
item.api,
|
||||
].filter((value): value is string => Boolean(value));
|
||||
}
|
||||
|
||||
return [
|
||||
item.modelCount === undefined ? undefined : `${item.modelCount} models`,
|
||||
item.providerCount === undefined
|
||||
? undefined
|
||||
: `${item.providerCount} providers`,
|
||||
item.updated,
|
||||
].filter((value): value is string => Boolean(value));
|
||||
}
|
||||
|
||||
function resultSubtitle(item: SearchIndexItem) {
|
||||
if (item.type === "model") return item.id;
|
||||
if (item.type === "provider") return item.id;
|
||||
return item.id;
|
||||
}
|
||||
|
||||
function createSearchResult(result: SearchResult, index: number, query: string) {
|
||||
const { item } = result;
|
||||
const link = document.createElement("a");
|
||||
link.className = `search-result search-result-${item.type}`;
|
||||
link.href = item.href;
|
||||
link.id = `search-result-${index}`;
|
||||
link.setAttribute("role", "option");
|
||||
link.setAttribute("aria-selected", index === activeSearchIndex ? "true" : "false");
|
||||
link.dataset.searchIndex = String(index);
|
||||
if (index === activeSearchIndex) link.classList.add("is-active");
|
||||
|
||||
const icon = document.createElement("span");
|
||||
icon.className = "search-result-icon";
|
||||
const logo = document.createElement("img");
|
||||
logo.src = item.logo;
|
||||
logo.alt = "";
|
||||
logo.loading = "lazy";
|
||||
icon.append(logo);
|
||||
link.append(icon);
|
||||
|
||||
const body = document.createElement("span");
|
||||
body.className = "search-result-body";
|
||||
|
||||
const top = document.createElement("span");
|
||||
top.className = "search-result-top";
|
||||
|
||||
const title = document.createElement("span");
|
||||
title.className = "search-result-title";
|
||||
appendHighlightedText(title, item.title, query);
|
||||
top.append(title);
|
||||
|
||||
const kind = document.createElement("span");
|
||||
kind.className = "search-result-kind";
|
||||
kind.textContent = item.type;
|
||||
top.append(kind);
|
||||
body.append(top);
|
||||
|
||||
const subtitle = document.createElement("span");
|
||||
subtitle.className = "search-result-subtitle mono";
|
||||
appendHighlightedText(subtitle, resultSubtitle(item), query);
|
||||
body.append(subtitle);
|
||||
|
||||
const meta = document.createElement("span");
|
||||
meta.className = "search-result-meta";
|
||||
for (const value of resultMeta(item)) {
|
||||
const chip = document.createElement("span");
|
||||
chip.textContent = value;
|
||||
meta.append(chip);
|
||||
}
|
||||
body.append(meta);
|
||||
|
||||
link.append(body);
|
||||
return link;
|
||||
}
|
||||
|
||||
function updateActiveSearchResult() {
|
||||
if (!searchResults || !searchInput) return;
|
||||
|
||||
const resultNodes = Array.from(
|
||||
searchResults.querySelectorAll<HTMLElement>(".search-result"),
|
||||
);
|
||||
|
||||
for (const [index, result] of resultNodes.entries()) {
|
||||
const active = index === activeSearchIndex;
|
||||
result.classList.toggle("is-active", active);
|
||||
result.setAttribute("aria-selected", active ? "true" : "false");
|
||||
if (active) {
|
||||
searchInput.setAttribute("aria-activedescendant", result.id);
|
||||
result.scrollIntoView({ block: "nearest" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setActiveSearchIndex(index: number) {
|
||||
if (rankedSearchResults.length === 0) return;
|
||||
activeSearchIndex =
|
||||
(index + rankedSearchResults.length) % rankedSearchResults.length;
|
||||
updateActiveSearchResult();
|
||||
}
|
||||
|
||||
function renderSearchResults() {
|
||||
if (!searchInput || !searchResults || !searchCount || !searchEmpty) return;
|
||||
|
||||
const query = searchInput.value;
|
||||
rankedSearchResults = rankSearchItems(query);
|
||||
activeSearchIndex = rankedSearchResults.length > 0 ? 0 : -1;
|
||||
searchResults.replaceChildren();
|
||||
|
||||
const fragment = document.createDocumentFragment();
|
||||
rankedSearchResults.forEach((result, index) => {
|
||||
fragment.append(createSearchResult(result, index, query));
|
||||
});
|
||||
searchResults.append(fragment);
|
||||
|
||||
const normalizedQuery = normalizeSearchText(query);
|
||||
searchCount.textContent = normalizedQuery
|
||||
? `${rankedSearchResults.length} result${rankedSearchResults.length === 1 ? "" : "s"}`
|
||||
: "Recently updated models, providers, and labs";
|
||||
searchEmpty.hidden = rankedSearchResults.length > 0;
|
||||
|
||||
if (rankedSearchResults.length > 0) {
|
||||
searchInput.setAttribute("aria-activedescendant", "search-result-0");
|
||||
} else {
|
||||
searchInput.removeAttribute("aria-activedescendant");
|
||||
}
|
||||
}
|
||||
|
||||
function openSearchModal() {
|
||||
if (!searchModal || !searchInput) return;
|
||||
if (helpModal?.open) closeDialog();
|
||||
if (mobileMenu?.open) closeMobileMenu(false);
|
||||
|
||||
lastFocusedElement =
|
||||
document.activeElement instanceof HTMLElement
|
||||
? document.activeElement
|
||||
: null;
|
||||
|
||||
if (!searchModal.open) searchModal.showModal();
|
||||
renderSearchResults();
|
||||
requestAnimationFrame(() => {
|
||||
searchInput.focus();
|
||||
searchInput.select();
|
||||
});
|
||||
}
|
||||
|
||||
function closeSearchModal() {
|
||||
if (!searchModal) return;
|
||||
if (searchModal.open) searchModal.close();
|
||||
searchInput?.removeAttribute("aria-activedescendant");
|
||||
lastFocusedElement?.focus();
|
||||
}
|
||||
|
||||
function closestSearchResult(target: EventTarget | null) {
|
||||
if (!(target instanceof Element)) return null;
|
||||
return target.closest<HTMLElement>(".search-result[data-search-index]");
|
||||
}
|
||||
|
||||
searchTrigger?.addEventListener("click", openSearchModal);
|
||||
mobileSearchTrigger?.addEventListener("click", openSearchModal);
|
||||
|
||||
/////////////////////
|
||||
// Mobile Menu
|
||||
/////////////////////
|
||||
function openMobileMenu() {
|
||||
if (!mobileMenu || !mobileMenuTrigger) return;
|
||||
if (searchModal?.open) closeSearchModal();
|
||||
if (helpModal?.open) closeDialog();
|
||||
|
||||
mobileMenu.showModal();
|
||||
mobileMenuTrigger.setAttribute("aria-expanded", "true");
|
||||
requestAnimationFrame(() => {
|
||||
mobileMenu
|
||||
.querySelector<HTMLElement>(".mobile-menu-list a, .mobile-menu-list button")
|
||||
?.focus();
|
||||
});
|
||||
}
|
||||
|
||||
function closeMobileMenu(restoreFocus = true) {
|
||||
if (!mobileMenu || !mobileMenuTrigger) return;
|
||||
if (mobileMenu.open) mobileMenu.close();
|
||||
mobileMenuTrigger.setAttribute("aria-expanded", "false");
|
||||
if (restoreFocus) mobileMenuTrigger.focus();
|
||||
}
|
||||
|
||||
mobileMenuTrigger?.addEventListener("click", openMobileMenu);
|
||||
mobileMenuClose?.addEventListener("click", () => closeMobileMenu());
|
||||
mobileHelpTrigger?.addEventListener("click", openHelpDialog);
|
||||
|
||||
mobileMenu?.addEventListener("cancel", (event) => {
|
||||
event.preventDefault();
|
||||
closeMobileMenu();
|
||||
});
|
||||
|
||||
mobileMenu?.addEventListener("click", (event) => {
|
||||
if (event.target === mobileMenu) closeMobileMenu();
|
||||
});
|
||||
|
||||
searchModal?.addEventListener("cancel", (event) => {
|
||||
event.preventDefault();
|
||||
closeSearchModal();
|
||||
});
|
||||
|
||||
searchModal?.addEventListener("click", (event) => {
|
||||
if (event.target === searchModal) closeSearchModal();
|
||||
});
|
||||
|
||||
searchResults?.addEventListener("mousemove", (event) => {
|
||||
const result = closestSearchResult(event.target);
|
||||
if (!result?.dataset.searchIndex) return;
|
||||
setActiveSearchIndex(Number(result.dataset.searchIndex));
|
||||
});
|
||||
|
||||
searchResults?.addEventListener("click", (event) => {
|
||||
if (closestSearchResult(event.target)) {
|
||||
searchInput?.removeAttribute("aria-activedescendant");
|
||||
}
|
||||
});
|
||||
|
||||
searchInput?.addEventListener("input", renderSearchResults);
|
||||
|
||||
searchInput?.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Escape") {
|
||||
event.preventDefault();
|
||||
closeSearchModal();
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.key === "ArrowDown") {
|
||||
event.preventDefault();
|
||||
setActiveSearchIndex(activeSearchIndex + 1);
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.key === "ArrowUp") {
|
||||
event.preventDefault();
|
||||
setActiveSearchIndex(activeSearchIndex - 1);
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.key === "Enter") {
|
||||
const result = rankedSearchResults[activeSearchIndex];
|
||||
if (!result) return;
|
||||
event.preventDefault();
|
||||
window.location.href = result.item.href;
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener("keydown", (event) => {
|
||||
const key = event.key.toLowerCase();
|
||||
if ((event.metaKey || event.ctrlKey) && (key === "k" || key === "f")) {
|
||||
event.preventDefault();
|
||||
search?.focus();
|
||||
search?.select();
|
||||
}
|
||||
});
|
||||
|
||||
search?.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Escape") {
|
||||
search.value = "";
|
||||
search.dispatchEvent(new Event("input"));
|
||||
openSearchModal();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -339,12 +760,3 @@ document.addEventListener("keydown", (event) => {
|
||||
event.preventDefault();
|
||||
void copyValue(copy.button, copy.value);
|
||||
});
|
||||
|
||||
function initializeFromURL() {
|
||||
if (!search) return;
|
||||
search.value = getQueryParams().get("search") ?? "";
|
||||
filterRows();
|
||||
}
|
||||
|
||||
initializeFromURL();
|
||||
window.addEventListener("popstate", initializeFromURL);
|
||||
@@ -28,6 +28,7 @@ export const Providers = Catalog.providers;
|
||||
|
||||
const BaseModelRefs = await loadProviderBaseModelRefs(root);
|
||||
const ProviderLogoSvgs = new Map<string, string>();
|
||||
const LabLogoSvgs = new Map<string, string>();
|
||||
|
||||
type CatalogModel = ModelMetadata;
|
||||
type CatalogProvider = Provider;
|
||||
@@ -58,9 +59,29 @@ interface LabEntry {
|
||||
models: ModelEntry[];
|
||||
providerCount: number;
|
||||
families: string[];
|
||||
lastReleased?: string;
|
||||
lastUpdated?: string;
|
||||
}
|
||||
|
||||
interface SearchIndexItem {
|
||||
type: "model" | "provider" | "lab";
|
||||
title: string;
|
||||
id: string;
|
||||
href: string;
|
||||
logo: string;
|
||||
tokens: string[];
|
||||
lab?: string;
|
||||
modelCount?: number;
|
||||
providerCount?: number;
|
||||
context?: number;
|
||||
releaseDate?: string;
|
||||
inputCost?: number;
|
||||
outputCost?: number;
|
||||
npm?: string;
|
||||
api?: string;
|
||||
updated?: string;
|
||||
}
|
||||
|
||||
const LAB_NAME_OVERRIDES: Record<string, string> = {
|
||||
alibaba: "Alibaba",
|
||||
meta: "Meta",
|
||||
@@ -77,6 +98,11 @@ const ModelEntries = buildModelEntries();
|
||||
const ProviderModelEntries = buildProviderModelEntries(ModelEntries);
|
||||
connectProviderEntries(ModelEntries, ProviderModelEntries);
|
||||
const LabEntries = buildLabEntries(ModelEntries);
|
||||
const SearchItems = buildSearchItems(
|
||||
sortModels([...ModelEntries.values()]),
|
||||
Object.entries(Providers).sort(([, a], [, b]) => a.name.localeCompare(b.name)),
|
||||
LabEntries,
|
||||
);
|
||||
|
||||
export const RenderedPages = buildPages();
|
||||
export const Rendered = RenderedPages.get("/")!;
|
||||
@@ -207,11 +233,18 @@ function buildLabEntries(models: Map<string, ModelEntry>) {
|
||||
.map(([id, modelEntries]) => {
|
||||
const providers = new Set<string>();
|
||||
const families = new Set<string>();
|
||||
let lastReleased: string | undefined;
|
||||
let lastUpdated: string | undefined;
|
||||
|
||||
for (const model of modelEntries) {
|
||||
for (const provider of model.providers) providers.add(provider.providerId);
|
||||
if (model.metadata.family) families.add(model.metadata.family);
|
||||
if (
|
||||
model.metadata.release_date &&
|
||||
(!lastReleased || model.metadata.release_date > lastReleased)
|
||||
) {
|
||||
lastReleased = model.metadata.release_date;
|
||||
}
|
||||
if (
|
||||
model.metadata.last_updated &&
|
||||
(!lastUpdated || model.metadata.last_updated > lastUpdated)
|
||||
@@ -226,12 +259,107 @@ function buildLabEntries(models: Map<string, ModelEntry>) {
|
||||
models: sortModels(modelEntries),
|
||||
providerCount: providers.size,
|
||||
families: [...families].sort(),
|
||||
lastReleased,
|
||||
lastUpdated,
|
||||
};
|
||||
})
|
||||
.sort((a, b) => a.name.localeCompare(b.name));
|
||||
}
|
||||
|
||||
function buildSearchItems(
|
||||
models: ModelEntry[],
|
||||
providers: Array<[string, CatalogProvider]>,
|
||||
labs: LabEntry[],
|
||||
): SearchIndexItem[] {
|
||||
const items: SearchIndexItem[] = [];
|
||||
|
||||
for (const model of models) {
|
||||
const metadata = model.metadata;
|
||||
items.push({
|
||||
type: "model",
|
||||
title: metadata.name,
|
||||
id: model.id,
|
||||
href: modelHref(model.id),
|
||||
logo: labLogoHref(model.labId),
|
||||
lab: model.labName,
|
||||
providerCount: model.providers.length,
|
||||
context: metadata.limit?.context,
|
||||
releaseDate: metadata.release_date,
|
||||
inputCost: model.minInputCost,
|
||||
outputCost: model.minOutputCost,
|
||||
updated: metadata.last_updated,
|
||||
tokens: [
|
||||
metadata.name,
|
||||
model.id,
|
||||
model.labName,
|
||||
model.labId,
|
||||
metadata.family,
|
||||
metadata.release_date,
|
||||
metadata.last_updated,
|
||||
...model.providers.flatMap((provider) => [
|
||||
displayModelName(provider),
|
||||
provider.modelId,
|
||||
provider.provider.name,
|
||||
provider.providerId,
|
||||
]),
|
||||
...(metadata.modalities?.input ?? []),
|
||||
...(metadata.modalities?.output ?? []),
|
||||
].filter((token): token is string => Boolean(token)),
|
||||
});
|
||||
}
|
||||
|
||||
for (const [providerId, provider] of providers) {
|
||||
const providerModels = ProviderModelEntries.filter(
|
||||
(entry) => entry.providerId === providerId,
|
||||
);
|
||||
const providerLastReleased = maxModelDate(providerModels, "release_date");
|
||||
const providerLastUpdated = maxModelDate(providerModels, "last_updated");
|
||||
|
||||
items.push({
|
||||
type: "provider",
|
||||
title: provider.name,
|
||||
id: providerId,
|
||||
href: providerHref(providerId),
|
||||
logo: logoHref(providerId),
|
||||
modelCount: providerModels.length,
|
||||
npm: provider.npm,
|
||||
api: provider.api,
|
||||
releaseDate: providerLastReleased,
|
||||
updated: providerLastUpdated,
|
||||
tokens: [
|
||||
provider.name,
|
||||
providerId,
|
||||
provider.npm,
|
||||
provider.api,
|
||||
provider.doc,
|
||||
].filter((token): token is string => Boolean(token)),
|
||||
});
|
||||
}
|
||||
|
||||
for (const lab of labs) {
|
||||
items.push({
|
||||
type: "lab",
|
||||
title: lab.name,
|
||||
id: lab.id,
|
||||
href: labHref(lab.id),
|
||||
logo: labLogoHref(lab.id),
|
||||
modelCount: lab.models.length,
|
||||
providerCount: lab.providerCount,
|
||||
releaseDate: lab.lastReleased,
|
||||
updated: lab.lastUpdated,
|
||||
tokens: [
|
||||
lab.name,
|
||||
lab.id,
|
||||
lab.lastUpdated,
|
||||
...lab.families,
|
||||
...lab.models.slice(0, 20).map((model) => model.metadata.name),
|
||||
].filter((token): token is string => Boolean(token)),
|
||||
});
|
||||
}
|
||||
|
||||
return items;
|
||||
}
|
||||
|
||||
function resolveCanonicalModelId(
|
||||
models: Map<string, ModelEntry>,
|
||||
providerId: string,
|
||||
@@ -298,6 +426,8 @@ function renderPage(active: "models" | "providers" | "labs", content: unknown) {
|
||||
<Fragment>
|
||||
<Header active={active} />
|
||||
<main class="page-scroll">{content}</main>
|
||||
<MobileMenu active={active} />
|
||||
<SearchDialog items={SearchItems} />
|
||||
<HelpDialog />
|
||||
</Fragment>,
|
||||
);
|
||||
@@ -348,10 +478,60 @@ function Header(props: { active: "models" | "providers" | "labs" }) {
|
||||
</svg>
|
||||
</a>
|
||||
<div class="search-container">
|
||||
<input type="text" id="search" placeholder="Search this page" />
|
||||
<span class="search-shortcut">⌘K</span>
|
||||
<button
|
||||
type="button"
|
||||
id="search-trigger"
|
||||
class="search-trigger"
|
||||
aria-label="Search"
|
||||
aria-keyshortcuts="Control+F Meta+F Control+K Meta+K"
|
||||
aria-haspopup="dialog"
|
||||
aria-controls="search-modal"
|
||||
>
|
||||
<span class="search-trigger-label">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="14"
|
||||
height="14"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="11" cy="11" r="8"></circle>
|
||||
<path d="m21 21-4.35-4.35"></path>
|
||||
</svg>
|
||||
<span>Search</span>
|
||||
</span>
|
||||
<span class="search-shortcut">Ctrl F</span>
|
||||
</button>
|
||||
</div>
|
||||
<button id="help">How to use</button>
|
||||
<button
|
||||
type="button"
|
||||
id="mobile-menu-trigger"
|
||||
class="mobile-menu-trigger"
|
||||
aria-label="Open menu"
|
||||
aria-haspopup="dialog"
|
||||
aria-controls="mobile-menu"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="18"
|
||||
height="18"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
>
|
||||
<line x1="4" y1="6" x2="20" y2="6"></line>
|
||||
<line x1="4" y1="12" x2="20" y2="12"></line>
|
||||
<line x1="4" y1="18" x2="20" y2="18"></line>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
@@ -434,7 +614,7 @@ function LabsPage(props: { labs: LabEntry[] }) {
|
||||
{props.labs.map((lab) => (
|
||||
<tr data-search={`${lab.name} ${lab.id} ${lab.families.join(" ")}`}>
|
||||
<td data-sort={lab.name}>
|
||||
<a href={labHref(lab.id)}>{lab.name}</a>
|
||||
<LabLink labId={lab.id} labName={lab.name} />
|
||||
<span class="subtle mono">{lab.id}</span>
|
||||
</td>
|
||||
<td data-sort={String(lab.models.length)}>{lab.models.length}</td>
|
||||
@@ -469,7 +649,7 @@ function ModelPage(props: { model: ModelEntry }) {
|
||||
/>
|
||||
<Facts
|
||||
items={[
|
||||
["Lab", <a href={labHref(model.labId)}>{model.labName}</a>],
|
||||
["Lab", <LabLink labId={model.labId} labName={model.labName} />],
|
||||
["Family", metadata.family ?? "-"],
|
||||
["Providers", model.providers.length],
|
||||
["Context", formatNumber(metadata.limit?.context)],
|
||||
@@ -675,7 +855,7 @@ function ModelTable(props: {
|
||||
</td>
|
||||
{showLab && (
|
||||
<td data-sort={model.labName}>
|
||||
<a href={labHref(model.labId)}>{model.labName}</a>
|
||||
<LabLink labId={model.labId} labName={model.labName} />
|
||||
</td>
|
||||
)}
|
||||
<td data-sort={String(model.providers.length)}>
|
||||
@@ -794,7 +974,7 @@ function ProviderModelsTable(props: {
|
||||
)}
|
||||
{showLab && (
|
||||
<td data-sort={lab?.name ?? ""}>
|
||||
{lab ? <a href={labHref(lab.id)}>{lab.name}</a> : "-"}
|
||||
{lab ? <LabLink labId={lab.id} labName={lab.name} /> : "-"}
|
||||
</td>
|
||||
)}
|
||||
<td class="mono" data-sort={entry.modelId}>
|
||||
@@ -917,6 +1097,18 @@ function ProviderLink(props: {
|
||||
);
|
||||
}
|
||||
|
||||
function LabLink(props: { labId: string; labName: string }) {
|
||||
return (
|
||||
<a class="lab-link" href={labHref(props.labId)}>
|
||||
<span
|
||||
class="lab-logo"
|
||||
dangerouslySetInnerHTML={{ __html: labLogoSvg(props.labId) }}
|
||||
/>
|
||||
<span>{props.labName}</span>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
function CopyButton(props: { value: string; label: string }) {
|
||||
return (
|
||||
<button
|
||||
@@ -960,6 +1152,123 @@ function CopyButton(props: { value: string; label: string }) {
|
||||
);
|
||||
}
|
||||
|
||||
function MobileMenu(props: { active: "models" | "providers" | "labs" }) {
|
||||
return (
|
||||
<dialog
|
||||
id="mobile-menu"
|
||||
class="mobile-menu"
|
||||
aria-labelledby="mobile-menu-title"
|
||||
>
|
||||
<div class="header">
|
||||
<h2 id="mobile-menu-title">Menu</h2>
|
||||
<button type="button" id="mobile-menu-close" aria-label="Close menu">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<line
|
||||
x1="18"
|
||||
y1="6"
|
||||
x2="6"
|
||||
y2="18"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
/>
|
||||
<line
|
||||
x1="6"
|
||||
y1="6"
|
||||
x2="18"
|
||||
y2="18"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<nav class="mobile-menu-list" aria-label="Mobile">
|
||||
<a class={props.active === "models" ? "active" : ""} href="/models">
|
||||
Models
|
||||
</a>
|
||||
<a
|
||||
class={props.active === "providers" ? "active" : ""}
|
||||
href="/providers"
|
||||
>
|
||||
Providers
|
||||
</a>
|
||||
<a class={props.active === "labs" ? "active" : ""} href="/labs">
|
||||
Labs
|
||||
</a>
|
||||
<button type="button" id="mobile-search-trigger">
|
||||
Search
|
||||
</button>
|
||||
<a
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
href="https://github.com/sst/models.dev"
|
||||
>
|
||||
GitHub
|
||||
</a>
|
||||
<button type="button" id="mobile-help-trigger">
|
||||
How to use
|
||||
</button>
|
||||
</nav>
|
||||
</dialog>
|
||||
);
|
||||
}
|
||||
|
||||
function SearchDialog(props: { items: SearchIndexItem[] }) {
|
||||
const json = JSON.stringify(props.items).replace(/</g, "\\u003c");
|
||||
|
||||
return (
|
||||
<dialog
|
||||
id="search-modal"
|
||||
class="search-modal"
|
||||
aria-labelledby="search-modal-title"
|
||||
>
|
||||
<div class="search-field">
|
||||
<svg
|
||||
class="search-field-icon"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="18"
|
||||
height="18"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<circle cx="11" cy="11" r="8"></circle>
|
||||
<path d="m21 21-4.35-4.35"></path>
|
||||
</svg>
|
||||
<input
|
||||
id="search-input"
|
||||
type="text"
|
||||
placeholder="Search models, providers, and labs"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
role="combobox"
|
||||
aria-expanded="true"
|
||||
aria-controls="search-results"
|
||||
aria-autocomplete="list"
|
||||
/>
|
||||
<span class="search-escape">Esc</span>
|
||||
</div>
|
||||
<h2 id="search-modal-title" class="sr-only">
|
||||
Search
|
||||
</h2>
|
||||
<div id="search-count" class="search-count"></div>
|
||||
<div id="search-results" class="search-results" role="listbox"></div>
|
||||
<p id="search-empty" class="search-empty">No matching results.</p>
|
||||
<script
|
||||
id="search-index"
|
||||
type="application/json"
|
||||
dangerouslySetInnerHTML={{ __html: json }}
|
||||
/>
|
||||
</dialog>
|
||||
);
|
||||
}
|
||||
|
||||
function HelpDialog() {
|
||||
return (
|
||||
<dialog id="modal">
|
||||
@@ -1022,7 +1331,8 @@ function HelpDialog() {
|
||||
<h2>Logos</h2>
|
||||
<p>
|
||||
Provider logos are available at <code>/logos/{`{provider}`}.svg</code>{" "}
|
||||
where <code>{`{provider}`}</code> is the provider ID.
|
||||
where <code>{`{provider}`}</code> is the provider ID. Lab logos are
|
||||
available at <code>/logos/labs/{`{lab}`}.svg</code>.
|
||||
</p>
|
||||
<div class="code-block">
|
||||
<code>
|
||||
@@ -1081,6 +1391,18 @@ function displayModelName(entry: ProviderModelEntry) {
|
||||
return entry.canonical?.metadata.name ?? entry.model.name;
|
||||
}
|
||||
|
||||
function maxModelDate(
|
||||
entries: ProviderModelEntry[],
|
||||
field: "last_updated" | "release_date",
|
||||
) {
|
||||
let result: string | undefined;
|
||||
for (const entry of entries) {
|
||||
const value = entry.canonical?.metadata[field];
|
||||
if (value && (result === undefined || value > result)) result = value;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function countLinkedProviderEntries() {
|
||||
return ProviderModelEntries.filter(
|
||||
(entry) => entry.canonicalModelId !== undefined,
|
||||
@@ -1129,6 +1451,10 @@ function logoHref(providerId: string) {
|
||||
return `/logos/${encodeURIComponent(providerId)}.svg`;
|
||||
}
|
||||
|
||||
function labLogoHref(labId: string) {
|
||||
return `/logos/labs/${encodeURIComponent(labId)}.svg`;
|
||||
}
|
||||
|
||||
function providerLogoSvg(providerId: string) {
|
||||
const cached = ProviderLogoSvgs.get(providerId);
|
||||
if (cached) return cached;
|
||||
@@ -1150,3 +1476,25 @@ function providerLogoSvg(providerId: string) {
|
||||
ProviderLogoSvgs.set(providerId, svg);
|
||||
return svg;
|
||||
}
|
||||
|
||||
function labLogoSvg(labId: string) {
|
||||
const cached = LabLogoSvgs.get(labId);
|
||||
if (cached) return cached;
|
||||
|
||||
const logoPath = path.join(root, "labs", labId, "logo.svg");
|
||||
const defaultLogoPath = path.join(root, "providers", "logo.svg");
|
||||
const rawSvg = readFileSync(
|
||||
existsSync(logoPath) ? logoPath : defaultLogoPath,
|
||||
"utf8",
|
||||
);
|
||||
const svg = rawSvg
|
||||
.replace(/<svg\b([^>]*)>/i, (_, attributes: string) => {
|
||||
const cleaned = attributes.replace(/\s(width|height)="[^"]*"/gi, "");
|
||||
return `<svg${cleaned} aria-hidden="true" focusable="false">`;
|
||||
})
|
||||
.replace(/\sfill="(?!none)[^"]*"/gi, ' fill="currentColor"')
|
||||
.replace(/\sstroke="(?!none)[^"]*"/gi, ' stroke="currentColor"');
|
||||
|
||||
LabLogoSvgs.set(labId, svg);
|
||||
return svg;
|
||||
}
|
||||
@@ -33,6 +33,39 @@ Bun.serve({
|
||||
);
|
||||
return new Response(file);
|
||||
},
|
||||
"/logos/labs/*": async (req) => {
|
||||
const url = new URL(req.url);
|
||||
const lab = url.pathname.split("/")[3].replace(".svg", "");
|
||||
const logoPath = path.join(
|
||||
import.meta.dir,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"labs",
|
||||
lab,
|
||||
"logo.svg"
|
||||
);
|
||||
const defaultLogoPath = path.join(
|
||||
import.meta.dir,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"logo.svg"
|
||||
);
|
||||
|
||||
let file = Bun.file(logoPath);
|
||||
if (!(await file.exists())) {
|
||||
file = Bun.file(defaultLogoPath);
|
||||
}
|
||||
|
||||
return new Response(file, {
|
||||
headers: {
|
||||
"Content-Type": "image/svg+xml",
|
||||
"Cache-Control": "public, max-age=3600",
|
||||
},
|
||||
});
|
||||
},
|
||||
"/logos/*": async (req) => {
|
||||
const url = new URL(req.url);
|
||||
const provider = url.pathname.split("/")[2].replace(".svg", "");
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA Nemotron Nano 12B v2 VL BF16"
|
||||
base_model = "nvidia/nemotron-nano-12b-v2-vl"
|
||||
family = "nemotron"
|
||||
release_date = "2024-12-01"
|
||||
last_updated = "2024-12-01"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA Nemotron Nano 3 30B"
|
||||
base_model = "nvidia/nemotron-3-nano-30b-a3b"
|
||||
family = "nemotron"
|
||||
release_date = "2025-12-23"
|
||||
last_updated = "2025-12-23"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA Nemotron Nano 9B v2"
|
||||
base_model = "nvidia/nemotron-nano-9b-v2"
|
||||
family = "nemotron"
|
||||
release_date = "2024-12-01"
|
||||
last_updated = "2024-12-01"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA Nemotron 3 Super 120B A12B"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-03-11"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
base_model = "openai/gpt-5.4"
|
||||
base_model_omit = ["cost.tiers", "cost.context_over_200k", "experimental.modes.fast", "limit.input"]
|
||||
last_updated = "2026-06-01"
|
||||
|
||||
[cost]
|
||||
input = 2.75
|
||||
output = 16.50
|
||||
cache_read = 0.275
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
output = 128_000
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/amazon-bedrock/mantle"
|
||||
api = "https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1"
|
||||
shape = "responses"
|
||||
@@ -0,0 +1,17 @@
|
||||
base_model = "openai/gpt-5.5"
|
||||
base_model_omit = ["cost.tiers", "cost.context_over_200k", "experimental.modes.fast", "limit.input"]
|
||||
last_updated = "2026-06-01"
|
||||
|
||||
[cost]
|
||||
input = 5.50
|
||||
output = 33.00
|
||||
cache_read = 0.55
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
output = 128_000
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/amazon-bedrock/mantle"
|
||||
api = "https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1"
|
||||
shape = "responses"
|
||||
@@ -0,0 +1,27 @@
|
||||
name = "gpt-oss-120b"
|
||||
family = "gpt-oss"
|
||||
release_date = "2025-08-05"
|
||||
last_updated = "2025-08-05"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.15
|
||||
output = 0.60
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/amazon-bedrock/mantle"
|
||||
api = "https://bedrock-mantle.${AWS_REGION}.api.aws/v1"
|
||||
shape = "responses"
|
||||
@@ -0,0 +1,27 @@
|
||||
name = "gpt-oss-20b"
|
||||
family = "gpt-oss"
|
||||
release_date = "2025-08-05"
|
||||
last_updated = "2025-08-05"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.07
|
||||
output = 0.30
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/amazon-bedrock/mantle"
|
||||
api = "https://bedrock-mantle.${AWS_REGION}.api.aws/v1"
|
||||
shape = "responses"
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M21.68 7.58398L11.296 29.68L4 29.6L12.144 15.584L21.68 7.58398ZM22.8 9.32798L36 32.416H11.584L26.464 29.76L18.672 20.496L22.8 9.32798Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 258 B |
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron 3 Super"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-03-11"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron 3 Super 120B"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-03-11"
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
base_model = "deepseek/deepseek-r1"
|
||||
name = "Deepseek R1 Distill Qwen 32B"
|
||||
family = "deepseek"
|
||||
release_date = "2025-01-22"
|
||||
last_updated = "2025-01-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
structured_output = false
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.497
|
||||
@@ -16,7 +10,3 @@ output = 4.881
|
||||
[limit]
|
||||
context = 80_000
|
||||
output = 80_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,13 +1,4 @@
|
||||
name = "Gemma 4 26B A4B IT"
|
||||
family = "gemma"
|
||||
release_date = "2025-12-15"
|
||||
last_updated = "2025-12-15"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
base_model = "google/gemma-4-26b-a4b-it"
|
||||
|
||||
[cost]
|
||||
input = 0.1
|
||||
@@ -16,7 +7,3 @@ output = 0.3
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,13 +1,7 @@
|
||||
base_model = "meta/llama-3.3-70b-instruct"
|
||||
name = "Llama 3.3 70B Instruct fp8 Fast"
|
||||
family = "llama"
|
||||
release_date = "2024-12-06"
|
||||
last_updated = "2024-12-06"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.293
|
||||
@@ -16,7 +10,3 @@ output = 2.253
|
||||
[limit]
|
||||
context = 24_000
|
||||
output = 24_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,13 +1,6 @@
|
||||
base_model = "meta/llama-4-scout-17b-instruct"
|
||||
name = "Llama 4 Scout 17B 16E Instruct"
|
||||
family = "llama"
|
||||
release_date = "2025-04-16"
|
||||
last_updated = "2025-04-16"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.27
|
||||
@@ -16,7 +9,3 @@ output = 0.85
|
||||
[limit]
|
||||
context = 131_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,14 +1,4 @@
|
||||
name = "Kimi K2.6"
|
||||
family = "kimi"
|
||||
release_date = "2026-04-20"
|
||||
last_updated = "2026-04-20"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = true
|
||||
base_model = "moonshotai/kimi-k2.6"
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron 3 Super 120B"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-03-11"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron 3 Super 120B A12B"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-03-11"
|
||||
knowledge = "2025-12"
|
||||
|
||||
@@ -12,7 +12,7 @@ open_weights = true
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.28
|
||||
cache_read = 0.028
|
||||
cache_read = 0.0028
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
|
||||
@@ -15,7 +15,7 @@ field = "reasoning_content"
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.28
|
||||
cache_read = 0.028
|
||||
cache_read = 0.0028
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron 3 Nano 30B A3B"
|
||||
base_model = "nvidia/nemotron-3-nano-30b-a3b"
|
||||
family = "nemotron"
|
||||
release_date = "2025-04-14"
|
||||
last_updated = "2025-04-14"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron Nano 3 Omni"
|
||||
base_model = "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning"
|
||||
family = "nemotron"
|
||||
release_date = "2026-04-28"
|
||||
last_updated = "2026-04-30"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron Nano 12B v2 VL"
|
||||
base_model = "nvidia/nemotron-nano-12b-v2-vl"
|
||||
family = "nemotron"
|
||||
release_date = "2025-12-01"
|
||||
last_updated = "2026-04-30"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Nemotron-3-Super-120B"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
family = "nemotron"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-04-16"
|
||||
|
||||
@@ -13,7 +13,7 @@ output = 0.12
|
||||
|
||||
[limit]
|
||||
context = 40_960
|
||||
output = 40_960
|
||||
output = 4_096
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
name = "Kimi K2.6 Fast"
|
||||
family = "kimi-thinking"
|
||||
release_date = "2026-04-17"
|
||||
last_updated = "2026-06-05"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
cache_read = 0.30
|
||||
input = 2.00
|
||||
output = 8.00
|
||||
|
||||
[limit]
|
||||
context = 262_000
|
||||
output = 262_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
@@ -4,7 +4,3 @@ base_model = "openai/gpt-5.4-mini"
|
||||
input = 0.75
|
||||
output = 4.5
|
||||
cache_read = 0.075
|
||||
|
||||
[experimental.modes.fast]
|
||||
cost = { input = 1.5, output = 9, cache_read = 0.15 }
|
||||
provider = { body = { service_tier = "priority" } }
|
||||
@@ -14,7 +14,3 @@ cache_read = 0.5
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
|
||||
[experimental.modes.fast]
|
||||
cost = { input = 5, output = 30, cache_read = 0.5 }
|
||||
provider = { body = { service_tier = "priority" } }
|
||||
@@ -14,7 +14,3 @@ cache_read = 1
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
|
||||
[experimental.modes.fast]
|
||||
cost = { input = 12.5, output = 75, cache_read = 1.25 }
|
||||
provider = { body = { service_tier = "priority" } }
|
||||
@@ -0,0 +1,10 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M11.9959 18.3671C11.6069 18.3671 11.2339 18.5216 10.9589 18.7966C10.6838 19.0716 10.5293 19.4447 10.5293 19.8336C10.5293 20.2226 10.6838 20.5956 10.9589 20.8707C11.2339 21.1457 11.6069 21.3002 11.9959 21.3002C12.3849 21.3002 12.7579 21.1457 13.0329 20.8707C13.308 20.5956 13.4625 20.2226 13.4625 19.8336C13.4625 19.4447 13.308 19.0716 13.0329 18.7966C12.7579 18.5216 12.3849 18.3671 11.9959 18.3671ZM11.9959 20.5416C11.8534 20.5415 11.7141 20.4991 11.5958 20.4198C11.4774 20.3404 11.3853 20.2276 11.3313 20.0957C11.2772 19.9639 11.2636 19.8189 11.2921 19.6793C11.3207 19.5397 11.3901 19.4117 11.4916 19.3116C11.5931 19.2116 11.722 19.144 11.862 19.1174C12.002 19.0908 12.1468 19.1065 12.2778 19.1624C12.4089 19.2183 12.5204 19.312 12.5981 19.4314C12.6758 19.5509 12.7163 19.6908 12.7143 19.8333C12.7143 19.9271 12.6956 20.0201 12.6594 20.1067C12.6232 20.1933 12.5701 20.2718 12.5033 20.3377C12.4364 20.4036 12.3571 20.4556 12.27 20.4906C12.1829 20.5256 12.0897 20.5429 11.9959 20.5416Z" fill="currentColor"/>
|
||||
<path d="M19.5066 13.6615C19.6903 13.691 19.8569 13.7855 19.9755 13.9281C20.0812 14.0834 20.1256 14.2725 20.0998 14.4587C20.074 14.6449 19.98 14.8148 19.836 14.9356L13.4504 19.6488C13.418 19.3931 13.3188 19.1504 13.1628 18.9452C13.0067 18.74 12.7993 18.5796 12.5615 18.4802L18.9781 13.7685C19.1355 13.6701 19.3233 13.6321 19.5066 13.6615Z" fill="currentColor"/>
|
||||
<path d="M10.5444 19.6271L4.17667 14.9262C4.02822 14.8115 3.92907 14.6444 3.89941 14.4592C3.86975 14.2739 3.91182 14.0842 4.01703 13.9289C4.13459 13.7843 4.30127 13.6881 4.48524 13.6587C4.66922 13.6293 4.85759 13.6686 5.01439 13.7692L11.431 18.4809C11.1966 18.5789 10.9917 18.736 10.8363 18.9369C10.6809 19.1378 10.5803 19.3756 10.5444 19.6271Z" fill="currentColor"/>
|
||||
<path d="M6.01169 6.16856C5.81417 6.16595 5.62547 6.08633 5.48578 5.94664C5.3461 5.80696 5.26647 5.61826 5.26387 5.42073V3.54536C5.25156 3.43918 5.26186 3.3316 5.29408 3.22968C5.3263 3.12776 5.37971 3.03381 5.45081 2.95399C5.52191 2.87418 5.60909 2.81031 5.70662 2.76657C5.80416 2.72284 5.90984 2.70023 6.01673 2.70023C6.12362 2.70023 6.2293 2.72284 6.32683 2.76657C6.42437 2.81031 6.51155 2.87418 6.58265 2.95399C6.65375 3.03381 6.70716 3.12776 6.73938 3.22968C6.7716 3.3316 6.78189 3.43918 6.76959 3.54536V5.42073C6.76694 5.61999 6.68592 5.81019 6.54408 5.95015C6.40223 6.09011 6.21096 6.16858 6.01169 6.16856ZM5.99154 12.8013C6.19255 12.8013 6.38532 12.7215 6.52746 12.5794C6.66959 12.4372 6.74944 12.2445 6.74944 12.0434C6.74944 11.8424 6.66959 11.6497 6.52746 11.5075C6.38532 11.3654 6.19255 11.2855 5.99154 11.2855C5.79053 11.2855 5.59776 11.3654 5.45563 11.5075C5.31349 11.6497 5.23364 11.8424 5.23364 12.0434C5.23364 12.2445 5.31349 12.4372 5.45563 12.5794C5.59776 12.7215 5.79053 12.8013 5.99154 12.8013ZM5.99154 10.5974C6.09107 10.5974 6.18962 10.5778 6.28158 10.5397C6.37353 10.5016 6.45708 10.4458 6.52746 10.3754C6.59784 10.305 6.65366 10.2215 6.69175 10.1295C6.72984 10.0376 6.74944 9.93902 6.74944 9.83949C6.74944 9.73996 6.72984 9.64141 6.69175 9.54945C6.65366 9.4575 6.59784 9.37395 6.52746 9.30357C6.45708 9.2332 6.37353 9.17737 6.28158 9.13928C6.18962 9.10119 6.09107 9.08159 5.99154 9.08159C5.79053 9.08159 5.59776 9.16144 5.45563 9.30357C5.31349 9.44571 5.23364 9.63848 5.23364 9.83949C5.23364 10.0405 5.31349 10.2333 5.45563 10.3754C5.59776 10.5175 5.79053 10.5974 5.99154 10.5974ZM5.99154 8.38259C6.19255 8.38259 6.38532 8.30274 6.52746 8.1606C6.66959 8.01847 6.74944 7.8257 6.74944 7.62469C6.74944 7.42368 6.66959 7.23091 6.52746 7.08877C6.38532 6.94664 6.19255 6.86679 5.99154 6.86679C5.79053 6.86679 5.59776 6.94664 5.45563 7.08877C5.31349 7.23091 5.23364 7.42368 5.23364 7.62469C5.23364 7.8257 5.31349 8.01847 5.45563 8.1606C5.59776 8.30274 5.79053 8.38259 5.99154 8.38259Z" fill="currentColor"/>
|
||||
<path d="M17.9807 8.36321C17.7813 8.36056 17.591 8.27944 17.451 8.13742C17.3111 7.99541 17.2327 7.80395 17.2329 7.60454V5.72916C17.2329 5.53083 17.3117 5.34062 17.4519 5.20037C17.5922 5.06013 17.7824 4.98134 17.9807 4.98134C18.1791 4.98134 18.3693 5.06013 18.5095 5.20037C18.6498 5.34062 18.7286 5.53083 18.7286 5.72916V7.60454C18.7301 7.70368 18.7119 7.80214 18.675 7.89417C18.6381 7.98621 18.5832 8.06997 18.5136 8.14059C18.444 8.21121 18.3611 8.26726 18.2696 8.30548C18.1781 8.3437 18.0799 8.36333 17.9807 8.36321ZM18.0001 12.8114C18.0996 12.8114 18.1982 12.7918 18.2901 12.7537C18.3821 12.7156 18.4656 12.6598 18.536 12.5894C18.6064 12.5191 18.6622 12.4355 18.7003 12.3436C18.7384 12.2516 18.758 12.153 18.758 12.0535C18.758 11.954 18.7384 11.8554 18.7003 11.7635C18.6622 11.6715 18.6064 11.588 18.536 11.5176C18.4656 11.4472 18.3821 11.3914 18.2901 11.3533C18.1982 11.3152 18.0996 11.2956 18.0001 11.2956C17.7991 11.2956 17.6063 11.3755 17.4642 11.5176C17.3221 11.6597 17.2422 11.8525 17.2422 12.0535C17.2422 12.2545 17.3221 12.4473 17.4642 12.5894C17.6063 12.7316 17.7991 12.8114 18.0001 12.8114ZM18.0001 10.5672C18.2011 10.5672 18.3939 10.4873 18.536 10.3452C18.6782 10.203 18.758 10.0103 18.758 9.80927C18.758 9.60826 18.6782 9.41548 18.536 9.27335C18.3939 9.13122 18.2011 9.05137 18.0001 9.05137C17.7991 9.05137 17.6063 9.13122 17.4642 9.27335C17.3221 9.41548 17.2422 9.60826 17.2422 9.80927C17.2422 10.0103 17.3221 10.203 17.4642 10.3452C17.6063 10.4873 17.7991 10.5672 18.0001 10.5672ZM18.0001 4.30326C18.0996 4.30326 18.1982 4.28366 18.2901 4.24557C18.3821 4.20748 18.4656 4.15165 18.536 4.08128C18.6064 4.0109 18.6622 3.92735 18.7003 3.8354C18.7384 3.74344 18.758 3.64489 18.758 3.54536C18.758 3.44583 18.7384 3.34728 18.7003 3.25532C18.6622 3.16337 18.6064 3.07982 18.536 3.00944C18.4656 2.93907 18.3821 2.88324 18.2901 2.84515C18.1982 2.80706 18.0996 2.78746 18.0001 2.78746C17.7991 2.78746 17.6063 2.86731 17.4642 3.00944C17.3221 3.15158 17.2422 3.34435 17.2422 3.54536C17.2422 3.74637 17.3221 3.93914 17.4642 4.08128C17.6063 4.22341 17.7991 4.30326 18.0001 4.30326Z" fill="currentColor"/>
|
||||
<path d="M11.9957 15.0355C11.7982 15.0329 11.6095 14.9533 11.4698 14.8136C11.3301 14.6739 11.2505 14.4852 11.2479 14.2877V12.3821C11.2693 12.1974 11.3578 12.0271 11.4966 11.9034C11.6354 11.7798 11.8148 11.7114 12.0007 11.7114C12.1866 11.7114 12.366 11.7798 12.5049 11.9034C12.6437 12.0271 12.7322 12.1974 12.7536 12.3821V14.2675C12.7551 14.368 12.7367 14.4677 12.6992 14.5609C12.6618 14.6541 12.6062 14.739 12.5357 14.8104C12.4651 14.8819 12.381 14.9387 12.2883 14.9773C12.1956 15.0159 12.0961 15.0357 11.9957 15.0355ZM11.9957 17.2402C12.1967 17.2402 12.3895 17.1604 12.5316 17.0183C12.6737 16.8761 12.7536 16.6834 12.7536 16.4824C12.7536 16.2813 12.6737 16.0886 12.5316 15.9464C12.3895 15.8043 12.1967 15.7245 11.9957 15.7245C11.7947 15.7245 11.6019 15.8043 11.4598 15.9464C11.3176 16.0886 11.2378 16.2813 11.2378 16.4824C11.2378 16.6834 11.3176 16.8761 11.4598 17.0183C11.6019 17.1604 11.7947 17.2402 11.9957 17.2402ZM11.9957 10.9461C12.1967 10.9461 12.3895 10.8663 12.5316 10.7241C12.6737 10.582 12.7536 10.3892 12.7536 10.1882C12.7536 9.98721 12.6737 9.79444 12.5316 9.6523C12.3895 9.51017 12.1967 9.43032 11.9957 9.43032C11.7947 9.43032 11.6019 9.51017 11.4598 9.6523C11.3176 9.79444 11.2378 9.98721 11.2378 10.1882C11.2378 10.3892 11.3176 10.582 11.4598 10.7241C11.6019 10.8663 11.7947 10.9461 11.9957 10.9461ZM11.9957 8.73209C12.1967 8.73209 12.3895 8.65224 12.5316 8.51011C12.6737 8.36797 12.7536 8.1752 12.7536 7.97419C12.7536 7.77319 12.6737 7.58041 12.5316 7.43828C12.3895 7.29614 12.1967 7.21629 11.9957 7.21629C11.7947 7.21629 11.6019 7.29614 11.4598 7.43828C11.3176 7.58041 11.2378 7.77319 11.2378 7.97419C11.2378 8.1752 11.3176 8.36797 11.4598 8.51011C11.6019 8.65224 11.7947 8.73209 11.9957 8.73209Z" fill="currentColor"/>
|
||||
<path d="M14.988 10.5873C14.7905 10.5847 14.6018 10.5051 14.4621 10.3654C14.3224 10.2257 14.2428 10.037 14.2402 9.83949V7.96411C14.2211 7.80387 14.2536 7.64171 14.3332 7.50128C14.4127 7.36086 14.535 7.24951 14.6823 7.1835C14.8295 7.11748 14.994 7.10025 15.1518 7.13431C15.3095 7.16836 15.4523 7.25194 15.5592 7.37283C15.6302 7.45267 15.6835 7.54662 15.7157 7.64852C15.7479 7.75042 15.7582 7.85796 15.7459 7.96411V9.83949C15.7433 10.0387 15.6623 10.2289 15.5204 10.3689C15.3786 10.5089 15.1873 10.5873 14.988 10.5873ZM14.9981 6.50799C15.0976 6.50799 15.1962 6.48838 15.2881 6.45029C15.3801 6.41221 15.4636 6.35638 15.534 6.286C15.6044 6.21563 15.6602 6.13207 15.6983 6.04012C15.7364 5.94817 15.756 5.84962 15.756 5.75009C15.756 5.65056 15.7364 5.552 15.6983 5.46005C15.6602 5.3681 15.6044 5.28455 15.534 5.21417C15.4636 5.14379 15.3801 5.08797 15.2881 5.04988C15.1962 5.01179 15.0976 4.99219 14.9981 4.99219C14.7971 4.99219 14.6043 5.07204 14.4622 5.21417C14.3201 5.3563 14.2402 5.54908 14.2402 5.75009C14.2402 5.95109 14.3201 6.14387 14.4622 6.286C14.6043 6.42814 14.7971 6.50799 14.9981 6.50799ZM14.9981 14.9859C15.1991 14.9859 15.3919 14.9061 15.534 14.7639C15.6762 14.6218 15.756 14.429 15.756 14.228C15.756 14.027 15.6762 13.8342 15.534 13.6921C15.3919 13.55 15.1991 13.4701 14.9981 13.4701C14.7971 13.4701 14.6043 13.55 14.4622 13.6921C14.3201 13.8342 14.2402 14.027 14.2402 14.228C14.2402 14.429 14.3201 14.6218 14.4622 14.7639C14.6043 14.9061 14.7971 14.9859 14.9981 14.9859ZM14.9981 12.7719C15.1991 12.7719 15.3919 12.692 15.534 12.5499C15.6762 12.4078 15.756 12.215 15.756 12.014C15.756 11.813 15.6762 11.6202 15.534 11.4781C15.3919 11.3359 15.1991 11.2561 14.9981 11.2561C14.7971 11.2561 14.6043 11.3359 14.4622 11.4781C14.3201 11.6202 14.2402 11.813 14.2402 12.014C14.2402 12.215 14.3201 12.4078 14.4622 12.5499C14.6043 12.692 14.7971 12.7719 14.9981 12.7719Z" fill="currentColor"/>
|
||||
<path d="M8.99364 14.9859C9.19465 14.9859 9.38742 14.9061 9.52955 14.764C9.67169 14.6218 9.75154 14.4291 9.75154 14.228C9.75154 14.027 9.67169 13.8343 9.52955 13.6921C9.38742 13.55 9.19465 13.4701 8.99364 13.4701C8.79263 13.4701 8.59986 13.55 8.45772 13.6921C8.31559 13.8343 8.23574 14.027 8.23574 14.228C8.23574 14.4291 8.31559 14.6218 8.45772 14.764C8.59986 14.9061 8.79263 14.9859 8.99364 14.9859ZM8.99364 8.73211C9.19465 8.73211 9.38742 8.65227 9.52955 8.51013C9.67169 8.368 9.75154 8.17522 9.75154 7.97422C9.75154 7.77321 9.67169 7.58043 9.52955 7.4383C9.38742 7.29617 9.19465 7.21632 8.99364 7.21632C8.79263 7.21632 8.59986 7.29617 8.45772 7.4383C8.31559 7.58043 8.23574 7.77321 8.23574 7.97422C8.23574 8.17522 8.31559 8.368 8.45772 8.51013C8.59986 8.65227 8.79263 8.73211 8.99364 8.73211ZM8.99364 6.50801C9.19475 6.50801 9.38762 6.42812 9.52983 6.28592C9.67203 6.14371 9.75192 5.95084 9.75192 5.74973C9.75192 5.54862 9.67203 5.35574 9.52983 5.21354C9.38762 5.07133 9.19475 4.99144 8.99364 4.99144C8.79253 4.99144 8.59966 5.07133 8.45745 5.21354C8.31524 5.35574 8.23535 5.54862 8.23535 5.74973C8.23535 5.95084 8.31524 6.14371 8.45745 6.28592C8.59966 6.42812 8.79253 6.50801 8.99364 6.50801ZM9.00371 12.7719C8.8077 12.7721 8.61926 12.6963 8.47795 12.5604C8.33663 12.4246 8.25343 12.2393 8.24581 12.0435V10.1487C8.24581 9.95038 8.3246 9.76017 8.46485 9.61993C8.60509 9.47968 8.7953 9.4009 8.99364 9.4009C9.19197 9.4009 9.38219 9.47968 9.52243 9.61993C9.66267 9.76017 9.74146 9.95038 9.74146 10.1487V12.0435C9.73628 12.2366 9.65661 12.4203 9.5191 12.5561C9.3816 12.6918 9.19693 12.7692 9.00371 12.7719Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,5 @@
|
||||
base_model = "google/gemini-2.5-flash-tts"
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
output = 10
|
||||
@@ -0,0 +1,5 @@
|
||||
base_model = "google/gemini-3-pro-image-preview"
|
||||
|
||||
[cost]
|
||||
input = 2
|
||||
output = 120
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA: Llama 3.3 Nemotron Super 49B V1.5"
|
||||
base_model = "nvidia/llama-3.3-nemotron-super-49b-v1.5"
|
||||
release_date = "2025-03-16"
|
||||
last_updated = "2025-03-16"
|
||||
attachment = false
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA: Nemotron 3 Nano 30B A3B"
|
||||
base_model = "nvidia/nemotron-3-nano-30b-a3b"
|
||||
release_date = "2024-12"
|
||||
last_updated = "2026-02-04"
|
||||
attachment = false
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA: Nemotron 3 Nano Omni (free)"
|
||||
base_model = "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning"
|
||||
release_date = "2026-04-28"
|
||||
last_updated = "2026-05-01"
|
||||
attachment = true
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA: Nemotron 3 Super"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
release_date = "2026-03-11"
|
||||
last_updated = "2026-04-11"
|
||||
attachment = false
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA: Nemotron 3 Super (free)"
|
||||
base_model = "nvidia/nemotron-3-super-120b-a12b"
|
||||
release_date = "2026-03-12"
|
||||
last_updated = "2026-03-15"
|
||||
attachment = false
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "NVIDIA: Nemotron Nano 9B V2"
|
||||
base_model = "nvidia/nemotron-nano-9b-v2"
|
||||
release_date = "2025-08-18"
|
||||
last_updated = "2025-08-18"
|
||||
attachment = false
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "Llama 3.1 Nemotron Ultra 253B"
|
||||
base_model = "nvidia/llama-3.1-nemotron-ultra-253b"
|
||||
family = "llama"
|
||||
release_date = "2025-04-07"
|
||||
last_updated = "2025-04-07"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
base_model = "mistral/mistral-medium-latest"
|
||||
|
||||
[cost]
|
||||
input = 1.5
|
||||
output = 7.5
|
||||
input = 0.4
|
||||
output = 2.0
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.8758 9.20865C17.8758 8.59461 17.3777 8.09634 16.7663 8.09634C16.155 8.09634 15.6567 8.59575 15.6567 9.20865V27.6446C15.6567 29.0714 14.4985 30.2324 13.0755 30.2324C11.6523 30.2324 10.4941 29.0714 10.4941 27.6446V15.8167C10.4941 15.2027 9.99591 14.7044 9.38453 14.7044C8.77316 14.7044 8.275 15.2038 8.275 15.8167V20.8301C8.275 22.2567 7.11678 23.4179 5.69364 23.4179C4.2705 23.4179 3.1123 22.2567 3.1123 20.8301V19.0129C3.1123 18.6054 3.44177 18.2752 3.84822 18.2752C4.25467 18.2752 4.58413 18.6054 4.58413 19.0129V20.8301C4.58413 21.4441 5.08227 21.9424 5.69364 21.9424C6.30502 21.9424 6.80317 21.443 6.80317 20.8301V15.8167C6.80317 14.39 7.96139 13.2289 9.38453 13.2289C10.8077 13.2289 11.9659 14.39 11.9659 15.8167V27.6446C11.9659 28.2587 12.4641 28.7569 13.0755 28.7569C13.6868 28.7569 14.1849 28.2575 14.1849 27.6446V20.4123V9.20865C14.1849 7.78194 15.3431 6.62082 16.7663 6.62082C18.1894 6.62082 19.3476 7.78194 19.3476 9.20865V24.4746C19.3476 24.8821 19.0182 25.2123 18.6117 25.2123C18.2053 25.2123 17.8758 24.8821 17.8758 24.4746V9.20865ZM31.531 13.2289C30.1079 13.2289 28.9496 14.39 28.9496 15.8167V25.6969C28.9496 26.311 28.4515 26.8093 27.8401 26.8093C27.2287 26.8093 26.7306 26.3099 26.7306 25.6969V9.20865C26.7306 7.78194 25.5723 6.62082 24.1492 6.62082C22.7261 6.62082 21.5679 7.78194 21.5679 9.20865V30.1383C21.5679 30.7523 21.0697 31.2506 20.4583 31.2506C19.8469 31.2506 19.3488 30.7511 19.3488 30.1383V27.5471C19.3488 27.1396 19.0194 26.8093 18.6129 26.8093C18.2065 26.8093 17.877 27.1396 17.877 27.5471V30.1383C17.877 31.565 19.0352 32.7261 20.4583 32.7261C21.8815 32.7261 23.0397 31.565 23.0397 30.1383V9.20865C23.0397 8.59461 23.5378 8.09634 24.1492 8.09634C24.7605 8.09634 25.2587 8.59575 25.2587 9.20865V25.6969C25.2587 27.1237 26.417 28.2848 27.8401 28.2848C29.2632 28.2848 30.4215 27.1237 30.4215 25.6969V15.8167C30.4215 15.2027 30.9196 14.7044 31.531 14.7044C32.1424 14.7044 32.6405 15.2038 32.6405 15.8167V24.4746C32.6405 24.8821 32.97 25.2123 33.3764 25.2123C33.7829 25.2123 34.1123 24.8821 34.1123 24.4746V15.8167C34.1123 14.39 32.9541 13.2289 31.531 13.2289Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17.8758 9.20865C17.8758 8.59461 17.3777 8.09634 16.7663 8.09634C16.155 8.09634 15.6567 8.59575 15.6567 9.20865V27.6446C15.6567 29.0714 14.4985 30.2324 13.0755 30.2324C11.6523 30.2324 10.4941 29.0714 10.4941 27.6446V15.8167C10.4941 15.2027 9.99591 14.7044 9.38453 14.7044C8.77316 14.7044 8.275 15.2038 8.275 15.8167V20.8301C8.275 22.2567 7.11678 23.4179 5.69364 23.4179C4.2705 23.4179 3.1123 22.2567 3.1123 20.8301V19.0129C3.1123 18.6054 3.44177 18.2752 3.84822 18.2752C4.25467 18.2752 4.58413 18.6054 4.58413 19.0129V20.8301C4.58413 21.4441 5.08227 21.9424 5.69364 21.9424C6.30502 21.9424 6.80317 21.443 6.80317 20.8301V15.8167C6.80317 14.39 7.96139 13.2289 9.38453 13.2289C10.8077 13.2289 11.9659 14.39 11.9659 15.8167V27.6446C11.9659 28.2587 12.4641 28.7569 13.0755 28.7569C13.6868 28.7569 14.1849 28.2575 14.1849 27.6446V20.4123V9.20865C14.1849 7.78194 15.3431 6.62082 16.7663 6.62082C18.1894 6.62082 19.3476 7.78194 19.3476 9.20865V24.4746C19.3476 24.8821 19.0182 25.2123 18.6117 25.2123C18.2053 25.2123 17.8758 24.8821 17.8758 24.4746V9.20865ZM31.531 13.2289C30.1079 13.2289 28.9496 14.39 28.9496 15.8167V25.6969C28.9496 26.311 28.4515 26.8093 27.8401 26.8093C27.2287 26.8093 26.7306 26.3099 26.7306 25.6969V9.20865C26.7306 7.78194 25.5723 6.62082 24.1492 6.62082C22.7261 6.62082 21.5679 7.78194 21.5679 9.20865V30.1383C21.5679 30.7523 21.0697 31.2506 20.4583 31.2506C19.8469 31.2506 19.3488 30.7511 19.3488 30.1383V27.5471C19.3488 27.1396 19.0194 26.8093 18.6129 26.8093C18.2065 26.8093 17.877 27.1396 17.877 27.5471V30.1383C17.877 31.565 19.0352 32.7261 20.4583 32.7261C21.8815 32.7261 23.0397 31.565 23.0397 30.1383V9.20865C23.0397 8.59461 23.5378 8.09634 24.1492 8.09634C24.7605 8.09634 25.2587 8.59575 25.2587 9.20865V25.6969C25.2587 27.1237 26.417 28.2848 27.8401 28.2848C29.2632 28.2848 30.4215 27.1237 30.4215 25.6969V15.8167C30.4215 15.2027 30.9196 14.7044 31.531 14.7044C32.1424 14.7044 32.6405 15.2038 32.6405 15.8167V24.4746C32.6405 24.8821 32.97 25.2123 33.3764 25.2123C33.7829 25.2123 34.1123 24.8821 34.1123 24.4746V15.8167C34.1123 14.39 32.9541 13.2289 31.531 13.2289Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |