Compare commits
435
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2288a1626b | ||
|
|
b3ecfc3d70 | ||
|
|
9828a0177d | ||
|
|
4dee8d0d34 | ||
|
|
950a0446d4 | ||
|
|
41fbfb1a17 | ||
|
|
cf5045a90b | ||
|
|
ef739220de | ||
|
|
7294efee15 | ||
|
|
1e537147eb | ||
|
|
e9f4cecc54 | ||
|
|
fb1ac09883 | ||
|
|
1437da86e7 | ||
|
|
e7d57885d1 | ||
|
|
8157916515 | ||
|
|
2e5b87a9c2 | ||
|
|
92e19432d3 | ||
|
|
5df9293314 | ||
|
|
a81a9559d7 | ||
|
|
4197bf57a6 | ||
|
|
d0ac772507 | ||
|
|
1afaa053e7 | ||
|
|
9b77ce1c9e | ||
|
|
68dc6d1820 | ||
|
|
a1eb5eece3 | ||
|
|
f7ec2c517f | ||
|
|
f98e8ec793 | ||
|
|
d210066793 | ||
|
|
06908cbf36 | ||
|
|
b0614d2088 | ||
|
|
32c1c45c52 | ||
|
|
7c033f27e6 | ||
|
|
d648e63499 | ||
|
|
1353f965b9 | ||
|
|
bba0a9c3f4 | ||
|
|
4bdb195178 | ||
|
|
12706b7652 | ||
|
|
d8c76d0c67 | ||
|
|
3963dd13d5 | ||
|
|
8749a56efa | ||
|
|
25de2ee27d | ||
|
|
438df7f03c | ||
|
|
7d18558aa3 | ||
|
|
c82f736fcc | ||
|
|
6a436805b3 | ||
|
|
ce7823f073 | ||
|
|
033efdb7d4 | ||
|
|
bd9e0c2677 | ||
|
|
38545d63a5 | ||
|
|
014be328d6 | ||
|
|
c139147540 | ||
|
|
59cd93cafc | ||
|
|
e91db96d83 | ||
|
|
d70dd8dcdc | ||
|
|
b18e681457 | ||
|
|
b73a6a2130 | ||
|
|
153c1cc420 | ||
|
|
ca0b30569e | ||
|
|
8345bfbd06 | ||
|
|
c16f3da694 | ||
|
|
6aa6e55d60 | ||
|
|
9efaf754a5 | ||
|
|
104e4bdc1f | ||
|
|
db16c113f7 | ||
|
|
64a122a13d | ||
|
|
fcc6521d1d | ||
|
|
c623b4a55f | ||
|
|
1d730fea16 | ||
|
|
5457215e29 | ||
|
|
b3ab45990f | ||
|
|
d906a07e31 | ||
|
|
4b1f6edd52 | ||
|
|
a92a2cfe3d | ||
|
|
70891f58e5 | ||
|
|
1600c827fc | ||
|
|
5851cdc136 | ||
|
|
4fd0e38c58 | ||
|
|
dd685ea42c | ||
|
|
7835298241 | ||
|
|
2ac7912ee7 | ||
|
|
9ac5b5f625 | ||
|
|
8c4d9f4696 | ||
|
|
c4bb0b4b11 | ||
|
|
db4d03c171 | ||
|
|
60d1d4df77 | ||
|
|
31654fc2ef | ||
|
|
01e56b1e1e | ||
|
|
4a7d9275d6 | ||
|
|
978fe11e0c | ||
|
|
0b4198955f | ||
|
|
66b568b681 | ||
|
|
589fddeed7 | ||
|
|
6f75266d42 | ||
|
|
0f03115ee0 | ||
|
|
ae2564edc2 | ||
|
|
629856cf41 | ||
|
|
567bc13ab4 | ||
|
|
5eac173bc5 | ||
|
|
cb0d640afd | ||
|
|
b5e27e652f | ||
|
|
650c27411f | ||
|
|
98c55325bf | ||
|
|
2fdd33b8a7 | ||
|
|
e4dea0a3d8 | ||
|
|
b4b3622bfd | ||
|
|
3b35b5598a | ||
|
|
d2e16bab34 | ||
|
|
051dc6236a | ||
|
|
5b9dee1f3d | ||
|
|
426dfe7be5 | ||
|
|
fddfb083d1 | ||
|
|
4eccfaba87 | ||
|
|
ea46d016d3 | ||
|
|
1bd1449ec5 | ||
|
|
7d334a51c9 | ||
|
|
10ae0b5a1d | ||
|
|
d25cce170d | ||
|
|
3e097a5d89 | ||
|
|
074b38eb98 | ||
|
|
d474922588 | ||
|
|
56ddb9017c | ||
|
|
a565bbebc0 | ||
|
|
5b97fca592 | ||
|
|
aec3f94081 | ||
|
|
e5c63d671e | ||
|
|
22e87ab31b | ||
|
|
97d93676bc | ||
|
|
692fbd0f19 | ||
|
|
c3bd263a67 | ||
|
|
9b9685c297 | ||
|
|
b3f063da79 | ||
|
|
a33d0aea81 | ||
|
|
ca380a136e | ||
|
|
dfa186a768 | ||
|
|
d63ffa53e8 | ||
|
|
284def86ef | ||
|
|
c19936565d | ||
|
|
73b872e141 | ||
|
|
7373bb5878 | ||
|
|
d11c151c25 | ||
|
|
f3f4fea66c | ||
|
|
90116256a6 | ||
|
|
5008df8bcc | ||
|
|
696aa80dec | ||
|
|
7d00d863dc | ||
|
|
ad9eb83b8c | ||
|
|
467da9a82c | ||
|
|
22786bcf4b | ||
|
|
c8d258b7cb | ||
|
|
70309829ca | ||
|
|
71e00f193b | ||
|
|
d44e724170 | ||
|
|
414695db9f | ||
|
|
e8b5a27723 | ||
|
|
6dc9d805db | ||
|
|
bdf56c9111 | ||
|
|
293cc3e82f | ||
|
|
7f5bd4f231 | ||
|
|
c4826babc5 | ||
|
|
91e8bb985e | ||
|
|
56723051d4 | ||
|
|
0bb3e55c08 | ||
|
|
080b7a328b | ||
|
|
c5d696583e | ||
|
|
70490d892f | ||
|
|
f858a85ba6 | ||
|
|
44e4c92882 | ||
|
|
43eafcb258 | ||
|
|
b382ac7af9 | ||
|
|
ca21110644 | ||
|
|
6a0704574b | ||
|
|
1cb1341516 | ||
|
|
bc47e95427 | ||
|
|
b071e8add8 | ||
|
|
23e527753e | ||
|
|
e81c045ed0 | ||
|
|
0c602ca936 | ||
|
|
9866f84989 | ||
|
|
6b397ffe37 | ||
|
|
bc21596889 | ||
|
|
20abba3190 | ||
|
|
5881bf98a0 | ||
|
|
595f7d028c | ||
|
|
c81dec9c5d | ||
|
|
4d45ed25d2 | ||
|
|
03cf48de53 | ||
|
|
0d3a284395 | ||
|
|
5b1bb0fc80 | ||
|
|
332ebb8811 | ||
|
|
2111813bd4 | ||
|
|
f5b8521af6 | ||
|
|
79481cff40 | ||
|
|
40dc356d4c | ||
|
|
f929fe89e7 | ||
|
|
cbd245d454 | ||
|
|
e5289e9b3a | ||
|
|
bb623f3ff9 | ||
|
|
37fffafafc | ||
|
|
d329310745 | ||
|
|
8016a6c45a | ||
|
|
1eeaa0b756 | ||
|
|
dd3533b4e0 | ||
|
|
3a5867834f | ||
|
|
1e83bca7a3 | ||
|
|
cd8853f88b | ||
|
|
23b290c6a8 | ||
|
|
4e7849cee7 | ||
|
|
e3e63a7247 | ||
|
|
fb297153e4 | ||
|
|
e8dd06e0ce | ||
|
|
bdee3d438b | ||
|
|
b410bc3ef2 | ||
|
|
870e3d1d26 | ||
|
|
5f21f3b603 | ||
|
|
27dad05e25 | ||
|
|
2ed88cbcc0 | ||
|
|
4d199c932e | ||
|
|
2d142f920c | ||
|
|
47dea9e551 | ||
|
|
0d25c3dcac | ||
|
|
3d7f9256cb | ||
|
|
6aa1ebd4be | ||
|
|
f9ebebaffd | ||
|
|
7b3fe83c09 | ||
|
|
0a06b3efc2 | ||
|
|
90dcbbbcc5 | ||
|
|
b17f5fd8ae | ||
|
|
68691ac3f9 | ||
|
|
78fe905fcb | ||
|
|
6b488802cf | ||
|
|
4d0505b70e | ||
|
|
b729923bd9 | ||
|
|
34c7aa7dfe | ||
|
|
09b4d3548b | ||
|
|
f1cad8fdc0 | ||
|
|
b2f7f57f26 | ||
|
|
925d4eba1f | ||
|
|
bc1e4b870b | ||
|
|
ef913f9645 | ||
|
|
cec747ade3 | ||
|
|
2ced32d52f | ||
|
|
92cc5a79df | ||
|
|
4cf8661f92 | ||
|
|
ebe431c0dc | ||
|
|
8b2c5f30a0 | ||
|
|
0fc92e1c47 | ||
|
|
d73ca9024a | ||
|
|
bff48f9fde | ||
|
|
c5c803f415 | ||
|
|
cd69509b48 | ||
|
|
83d15fd756 | ||
|
|
b3c09451d9 | ||
|
|
d98bdb5eff | ||
|
|
ea205913ce | ||
|
|
3532801639 | ||
|
|
1bb50141c2 | ||
|
|
fa8bdd63fb | ||
|
|
56f64577ce | ||
|
|
f726af5767 | ||
|
|
4838e3cb9b | ||
|
|
d4c77c14fd | ||
|
|
96b3d65307 | ||
|
|
b491c29cf9 | ||
|
|
d937abd849 | ||
|
|
df52175b0c | ||
|
|
bee8339c07 | ||
|
|
181bf96fa3 | ||
|
|
9d49d2fd52 | ||
|
|
648776aa85 | ||
|
|
421cb099b0 | ||
|
|
f458b19994 | ||
|
|
d347093b03 | ||
|
|
3328712262 | ||
|
|
60edc1b52d | ||
|
|
eee44cd080 | ||
|
|
048a3235e8 | ||
|
|
1db03ec1e6 | ||
|
|
6d283349ad | ||
|
|
7e07302ecd | ||
|
|
8bc407a617 | ||
|
|
5305d2bae2 | ||
|
|
fee96c27b9 | ||
|
|
66520adbc6 | ||
|
|
40714995cc | ||
|
|
66c4896003 | ||
|
|
31091f3d4e | ||
|
|
5fe512c1b1 | ||
|
|
63efa131e7 | ||
|
|
29cd503070 | ||
|
|
a9b704c656 | ||
|
|
0a88e412e5 | ||
|
|
b46e29ccd5 | ||
|
|
a181b770d6 | ||
|
|
fa71201f20 | ||
|
|
3ac17aefb6 | ||
|
|
1f2ceb91a5 | ||
|
|
d82681900c | ||
|
|
7e296f4cbd | ||
|
|
f202ff51e4 | ||
|
|
4085a0b536 | ||
|
|
935fdeca65 | ||
|
|
cef8828fbe | ||
|
|
9277a23a29 | ||
|
|
d7bfb16b0f | ||
|
|
37ae6fe7c8 | ||
|
|
87ce527476 | ||
|
|
34bed30fa1 | ||
|
|
8a0c3cb75f | ||
|
|
f65460ac16 | ||
|
|
8ea92aed9a | ||
|
|
f340d82fc3 | ||
|
|
c7431ae24c | ||
|
|
3d1888b7b5 | ||
|
|
dcd37ccdbb | ||
|
|
d18c3f910c | ||
|
|
2cec5a492c | ||
|
|
61dd0ec489 | ||
|
|
c7758204b5 | ||
|
|
ed91520aa2 | ||
|
|
3e82669a82 | ||
|
|
1cc0c9c074 | ||
|
|
d73d7f6453 | ||
|
|
afb59f86ee | ||
|
|
05242f68d4 | ||
|
|
c1b029dcc1 | ||
|
|
bc2dd5137a | ||
|
|
99ec4900c7 | ||
|
|
a8c124ac9e | ||
|
|
0d20a363a9 | ||
|
|
3ac613678b | ||
|
|
e2ead1b4e6 | ||
|
|
be53c33588 | ||
|
|
55cf5fa310 | ||
|
|
3e0fe362f2 | ||
|
|
89d06ae31f | ||
|
|
c994b116ae | ||
|
|
833e8f7a66 | ||
|
|
32bd1427fb | ||
|
|
ae7672b87e | ||
|
|
9b27cc5a76 | ||
|
|
7014e3e318 | ||
|
|
e0e153e8d6 | ||
|
|
a0fbef93e4 | ||
|
|
e4a89229be | ||
|
|
9ad15e97cd | ||
|
|
e3b4df4e87 | ||
|
|
e3e2066c83 | ||
|
|
208dcd12a2 | ||
|
|
d166444aa1 | ||
|
|
cd35f96e73 | ||
|
|
2b0c21e0b4 | ||
|
|
787b0bf9e9 | ||
|
|
77fbf02ff6 | ||
|
|
89973fd122 | ||
|
|
e458a9f5b8 | ||
|
|
61d95afae2 | ||
|
|
4a2df5e008 | ||
|
|
3db907f3ce | ||
|
|
70d8f9cc6e | ||
|
|
b9b354ada0 | ||
|
|
95632ad376 | ||
|
|
7153506989 | ||
|
|
c73bab2e7e | ||
|
|
a783dc808d | ||
|
|
58e72802bc | ||
|
|
19233d93c4 | ||
|
|
7eea45e078 | ||
|
|
001ec226f6 | ||
|
|
32461d5b44 | ||
|
|
9f078294c0 | ||
|
|
c885ed49cd | ||
|
|
2fc434062f | ||
|
|
dbcb7e6d69 | ||
|
|
b58392fc62 | ||
|
|
a4818c90ca | ||
|
|
49fbdba49f | ||
|
|
f2dd4da7f9 | ||
|
|
a3ed215038 | ||
|
|
d45df0530b | ||
|
|
990531258b | ||
|
|
cd2c9e3b62 | ||
|
|
a114991278 | ||
|
|
5ff2035cee | ||
|
|
a5993cc140 | ||
|
|
aebe4b6cd0 | ||
|
|
214adb1154 | ||
|
|
b301c1f8b6 | ||
|
|
b81c8b385b | ||
|
|
1caa438b3e | ||
|
|
673bc92f4d | ||
|
|
0159eaa158 | ||
|
|
efdc7b9a54 | ||
|
|
b08721206d | ||
|
|
fe0d4cd9fa | ||
|
|
738ad6ed70 | ||
|
|
19b66fbaf2 | ||
|
|
c416836497 | ||
|
|
059cc4b91f | ||
|
|
116bd328a6 | ||
|
|
aa30ce3ef2 | ||
|
|
9533a47906 | ||
|
|
ad18f780f0 | ||
|
|
a48519e557 | ||
|
|
23f5e74392 | ||
|
|
7a50ea28a1 | ||
|
|
5944f94197 | ||
|
|
98732b7d76 | ||
|
|
c6412d7e59 | ||
|
|
b5a7a6e974 | ||
|
|
ba7c3d7b0b | ||
|
|
53a9a2a36d | ||
|
|
3b6bca9b90 | ||
|
|
f5a048060f | ||
|
|
9e6178a5e3 | ||
|
|
e4150361b3 | ||
|
|
8de0fc059d | ||
|
|
054733884f | ||
|
|
3d09981eda | ||
|
|
6877af7770 | ||
|
|
802985f76c | ||
|
|
794993fd48 | ||
|
|
00b53a422a | ||
|
|
2ccecb6011 | ||
|
|
9b7e3abf00 | ||
|
|
27d6a3d503 | ||
|
|
6beb1f8be2 | ||
|
|
e0c1124fe2 | ||
|
|
bf4ceb7baa | ||
|
|
8f340e1eb2 | ||
|
|
62da5b0cbd | ||
|
|
4e49abc10c | ||
|
|
6ecd9ec509 | ||
|
|
bb42d0b855 | ||
|
|
a46966efef | ||
|
|
19ace4436f |
No files matched your search
@@ -5,7 +5,7 @@
|
||||
"": {
|
||||
"name": "models.dev",
|
||||
"dependencies": {
|
||||
"@cloudflare/workers-types": "^4.20250801.0",
|
||||
"@cloudflare/workers-types": "^4.20260424.1",
|
||||
"sst": "3.17.23",
|
||||
},
|
||||
},
|
||||
@@ -32,6 +32,7 @@
|
||||
"packages/web": {
|
||||
"name": "@models.dev/web",
|
||||
"dependencies": {
|
||||
"@tanstack/virtual-core": "^3.14.0",
|
||||
"hono": "^4.8.0",
|
||||
"models.dev": "workspace:*",
|
||||
},
|
||||
@@ -49,7 +50,7 @@
|
||||
"zod": "3.24.2",
|
||||
},
|
||||
"packages": {
|
||||
"@cloudflare/workers-types": ["@cloudflare/workers-types@4.20250801.0", "", {}, "sha512-BQmMdoOGClY23TesgkR1PeGrPvPsSFD/zW7pDzWZHkOEsqkPk2A91h52bP8GbtKYTl1vdaYjQgJlGsP6Ih4G0w=="],
|
||||
"@cloudflare/workers-types": ["@cloudflare/workers-types@4.20260424.1", "", {}, "sha512-0DLJ9yEk1KKzPbqop80Gw/P1wkKKzawmipULiJWdBXIBCoMvE0OVWms3IrL/Q/G7tfmPop9yF4XlZ69k9JLYng=="],
|
||||
|
||||
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.6.1", "", { "dependencies": { "content-type": "^1.0.5", "cors": "^2.8.5", "eventsource": "^3.0.2", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "pkce-challenge": "^4.1.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-oxzMzYCkZHMntzuyerehK3fV6A2Kwh5BD6CGEJSVDU2QNEhfLOptf2X7esQgaHZXHZY0oHmMsOtIDLP71UJXgA=="],
|
||||
|
||||
@@ -57,9 +58,11 @@
|
||||
|
||||
"@models.dev/web": ["@models.dev/web@workspace:packages/web"],
|
||||
|
||||
"@tanstack/virtual-core": ["@tanstack/virtual-core@3.14.0", "", {}, "sha512-JLANqGy/D6k4Ujmh8Tr25lGimuOXNiaVyXaCAZS0W+1390sADdGnyUdSWNIfd49gebtIxGMij4IktRVzrdr12Q=="],
|
||||
|
||||
"@tsconfig/bun": ["@tsconfig/bun@1.0.8", "", {}, "sha512-JlJaRaS4hBTypxtFe8WhnwV8blf0R+3yehLk8XuyxUYNx6VXsKCjACSCvOYEFUiqlhlBWxtYCn/zRlOb8BzBQg=="],
|
||||
|
||||
"@types/bun": ["@types/bun@1.2.16", "", { "dependencies": { "bun-types": "1.2.16" } }, "sha512-1aCZJ/6nSiViw339RsaNhkNoEloLaPzZhxMOYEa7OzRzO41IGg5n/7I43/ZIAW/c+Q6cT12Vf7fOZOoVIzb5BQ=="],
|
||||
"@types/bun": ["@types/bun@1.3.0", "", { "dependencies": { "bun-types": "1.3.0" } }, "sha512-+lAGCYjXjip2qY375xX/scJeVRmZ5cY0wyHYyCYxNcdEXrQ4AOe3gACgd4iQ8ksOslJtW4VNxBJ8llUwc3a6AA=="],
|
||||
|
||||
"@types/node": ["@types/node@22.13.9", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-acBjXdRJ3A6Pb3tqnw9HZmyR3Fiol3aGxRCK1x3d+6CDAMjl7I649wpSd+yNURCjbOUGu9tqtLKnTGxmK6CyGw=="],
|
||||
|
||||
@@ -79,7 +82,7 @@
|
||||
|
||||
"buffer": ["buffer@4.9.2", "", { "dependencies": { "base64-js": "^1.0.2", "ieee754": "^1.1.4", "isarray": "^1.0.0" } }, "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg=="],
|
||||
|
||||
"bun-types": ["bun-types@1.2.16", "", { "dependencies": { "@types/node": "*" } }, "sha512-ciXLrHV4PXax9vHvUrkvun9VPVGOVwbbbBF/Ev1cXz12lyEZMoJpIJABOfPcN9gDJRaiKF9MVbSygLg4NXu3/A=="],
|
||||
"bun-types": ["bun-types@1.3.0", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-u8X0thhx+yJ0KmkxuEo9HAtdfgCBaM/aI9K90VQcQioAmkVp3SG3FkwWGibUFz3WdXAdcsqOcbU40lK7tbHdkQ=="],
|
||||
|
||||
"bytes": ["bytes@3.1.2", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="],
|
||||
|
||||
@@ -325,8 +328,6 @@
|
||||
|
||||
"http-errors/statuses": ["statuses@2.0.1", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="],
|
||||
|
||||
"models.dev/@types/bun": ["@types/bun@1.3.0", "", { "dependencies": { "bun-types": "1.3.0" } }, "sha512-+lAGCYjXjip2qY375xX/scJeVRmZ5cY0wyHYyCYxNcdEXrQ4AOe3gACgd4iQ8ksOslJtW4VNxBJ8llUwc3a6AA=="],
|
||||
|
||||
"opencontrol/@tsconfig/bun": ["@tsconfig/bun@1.0.7", "", {}, "sha512-udGrGJBNQdXGVulehc1aWT73wkR9wdaGBtB6yL70RJsqwW/yJhIg6ZbRlPOfIUiFNrnBuYLBi9CSmMKfDC7dvA=="],
|
||||
|
||||
"opencontrol/hono": ["hono@4.7.4", "", {}, "sha512-Pst8FuGqz3L7tFF+u9Pu70eI0xa5S3LPUmrNd5Jm8nTHze9FxLTK9Kaj5g/k4UcwuJSXTP65SyHOPLrffpcAJg=="],
|
||||
@@ -334,11 +335,5 @@
|
||||
"openid-client/jose": ["jose@4.15.9", "", {}, "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA=="],
|
||||
|
||||
"bun-types/@types/node/undici-types": ["undici-types@7.8.0", "", {}, "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw=="],
|
||||
|
||||
"models.dev/@types/bun/bun-types": ["bun-types@1.3.0", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-u8X0thhx+yJ0KmkxuEo9HAtdfgCBaM/aI9K90VQcQioAmkVp3SG3FkwWGibUFz3WdXAdcsqOcbU40lK7tbHdkQ=="],
|
||||
|
||||
"models.dev/@types/bun/bun-types/@types/node": ["@types/node@24.0.3", "", { "dependencies": { "undici-types": "~7.8.0" } }, "sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg=="],
|
||||
|
||||
"models.dev/@types/bun/bun-types/@types/node/undici-types": ["undici-types@7.8.0", "", {}, "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw=="],
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -20,10 +20,11 @@
|
||||
"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",
|
||||
"wandb:generate": "bun ./packages/core/script/generate-wandb.ts"
|
||||
"wandb:generate": "bun ./packages/core/script/generate-wandb.ts",
|
||||
"digitalocean:generate": "bun ./packages/core/script/generate-digitalocean.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudflare/workers-types": "^4.20250801.0",
|
||||
"@cloudflare/workers-types": "^4.20260424.1",
|
||||
"sst": "3.17.23"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,686 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
/**
|
||||
* Generates DigitalOcean model TOML files from two public APIs:
|
||||
*
|
||||
* - https://api.digitalocean.com/v2/gen-ai/models (model metadata, lifecycle, modalities, limits)
|
||||
* - https://www.digitalocean.com/api/static-content/v1/products (pricing, including >200k tiers)
|
||||
*
|
||||
* The v2 models API requires a DigitalOcean personal access token or model access key,
|
||||
* read from the DIGITALOCEAN_API_TOKEN environment variable (or --api-key flag).
|
||||
* The static-content pricing API is public and requires no auth.
|
||||
*
|
||||
* Cache pricing (cache_read, cache_write) is NOT available from any DO API and is
|
||||
* preserved from existing TOML files when present.
|
||||
*
|
||||
* Fields the APIs cannot provide (preserved from existing TOMLs, never overwritten):
|
||||
* family, knowledge, open_weights, interleaved, attachment, release_date,
|
||||
* cache_read, cache_write
|
||||
*
|
||||
* Flags:
|
||||
* --dry-run Preview changes without writing files
|
||||
* --new-only Only create new models, skip updating existing ones
|
||||
* --api-key=<key> DigitalOcean API key (overrides DIGITALOCEAN_API_TOKEN env var)
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import path from "node:path";
|
||||
import { mkdir } from "node:fs/promises";
|
||||
import { ModelFamilyValues } from "../src/family.js";
|
||||
|
||||
const MODELS_API = "https://api.digitalocean.com/v2/gen-ai/models";
|
||||
const PRICING_API = "https://www.digitalocean.com/api/static-content/v1/products";
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// v2 models API schema
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
const DoModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
lifecycle_status: z.string(),
|
||||
type: z.string().optional(),
|
||||
thinking: z.boolean().optional(),
|
||||
context_window: z.union([z.number(), z.string()]).optional(),
|
||||
modalities: z
|
||||
.object({
|
||||
input: z.array(z.string()).optional(),
|
||||
output: z.array(z.string()).optional(),
|
||||
})
|
||||
.optional(),
|
||||
settings: z
|
||||
.array(
|
||||
z.object({
|
||||
name: z.string(),
|
||||
max: z.number().optional(),
|
||||
default_value: z.number().optional(),
|
||||
}),
|
||||
)
|
||||
.optional(),
|
||||
created_at: z.string().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const DoModelsResponse = z
|
||||
.object({
|
||||
models: z.array(DoModel),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// static-content pricing API schema
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
const PricingEntry = z
|
||||
.object({
|
||||
name: z.string(),
|
||||
slug: z.string(),
|
||||
model: z.string(),
|
||||
prompt_tokens: z.string().optional(), // "≤200k" | ">200k" | undefined
|
||||
price: z.object({ rate: z.number() }),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const StaticContentResponse = z
|
||||
.object({
|
||||
gradient: z.object({
|
||||
models: z.array(PricingEntry),
|
||||
}),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Derived pricing map
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
interface ModelPricing {
|
||||
input: number;
|
||||
output: number;
|
||||
inputOver200k?: number;
|
||||
outputOver200k?: number;
|
||||
}
|
||||
|
||||
// Map marketing names from /v1/products to API model IDs from /v2/gen-ai/models.
|
||||
// The pricing API uses display names, not the machine IDs, so this table is the
|
||||
// join key. Add entries here when DO adds new models with tiered pricing.
|
||||
const PRICING_NAME_MAP: Record<string, string> = {
|
||||
// Anthropic
|
||||
"claude sonnet 4.6": "anthropic-claude-4.6-sonnet",
|
||||
"claude sonnet 4.5": "anthropic-claude-4.5-sonnet",
|
||||
"claude sonnet 4": "anthropic-claude-sonnet-4",
|
||||
"claude haiku 4.5": "anthropic-claude-haiku-4.5",
|
||||
"claude opus 4.6": "anthropic-claude-opus-4.6",
|
||||
"claude opus 4.5": "anthropic-claude-opus-4.5",
|
||||
"claude opus 4.1": "anthropic-claude-4.1-opus",
|
||||
"claude opus 4": "anthropic-claude-opus-4",
|
||||
// OpenAI
|
||||
"gpt-5.4": "openai-gpt-5.4",
|
||||
"gpt-5.4 mini": "openai-gpt-5.4-mini",
|
||||
"gpt-5.4 nano": "openai-gpt-5.4-nano",
|
||||
"gpt-5.4 pro": "openai-gpt-5.4-pro",
|
||||
"gpt-5.3-codex": "openai-gpt-5.3-codex",
|
||||
"gpt-5.2": "openai-gpt-5.2",
|
||||
"gpt-5.2 pro": "openai-gpt-5.2-pro",
|
||||
"gpt-5.1-codex-max": "openai-gpt-5.1-codex-max",
|
||||
"gpt-5": "openai-gpt-5",
|
||||
"gpt-5 mini": "openai-gpt-5-mini",
|
||||
"gpt-5 nano": "openai-gpt-5-nano",
|
||||
"gpt-4.1": "openai-gpt-4.1",
|
||||
"gpt image 1": "openai-gpt-image-1",
|
||||
"gpt image 1.5": "openai-gpt-image-1.5",
|
||||
"gpt-oss-120b": "openai-gpt-oss-120b",
|
||||
"gpt-oss-20b": "openai-gpt-oss-20b",
|
||||
"gpt-4o": "openai-gpt-4o",
|
||||
"gpt-4o mini": "openai-gpt-4o-mini",
|
||||
"o1": "openai-o1",
|
||||
"o3-mini": "openai-o3-mini",
|
||||
// DeepSeek
|
||||
"deepseek r1 distill llama 70b": "deepseek-r1-distill-llama-70b",
|
||||
// Llama
|
||||
"llama 3.3 70b": "llama3.3-70b-instruct",
|
||||
// DO-hosted
|
||||
"qwen3-32b": "alibaba-qwen3-32b",
|
||||
"minimax m2.5 (public preview)": "minimax-m2.5",
|
||||
"kimi k2.5": "kimi-k2.5",
|
||||
"nvidia nemotron 3 super 120b (public preview)": "nvidia-nemotron-3-super-120b",
|
||||
"glm 5": "glm-5",
|
||||
};
|
||||
|
||||
function normalizeDisplayName(raw: string): string {
|
||||
// Strip " Input Tokens" / " Output Tokens" suffix and lowercase
|
||||
return raw
|
||||
.replace(/\s+(input|output)\s+tokens$/i, "")
|
||||
.trim()
|
||||
.toLowerCase();
|
||||
}
|
||||
|
||||
function buildPricingMap(entries: z.infer<typeof PricingEntry>[]): Map<string, ModelPricing> {
|
||||
const map = new Map<string, ModelPricing>();
|
||||
|
||||
for (const entry of entries) {
|
||||
const displayName = normalizeDisplayName(entry.name);
|
||||
const modelId = PRICING_NAME_MAP[displayName];
|
||||
if (!modelId) continue;
|
||||
|
||||
const isInput = entry.name.toLowerCase().includes("input tokens");
|
||||
const isOver200k = entry.prompt_tokens === ">200k";
|
||||
// Round to avoid float noise (e.g. 0.9900000000000001)
|
||||
const rate = Math.round(entry.price.rate * 10000) / 10000;
|
||||
|
||||
const existing = map.get(modelId) ?? ({} as ModelPricing);
|
||||
|
||||
if (isInput && isOver200k) existing.inputOver200k = rate;
|
||||
else if (!isInput && isOver200k) existing.outputOver200k = rate;
|
||||
else if (isInput) existing.input = rate;
|
||||
else existing.output = rate;
|
||||
|
||||
map.set(modelId, existing);
|
||||
}
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Existing TOML shape (fields we read and may preserve)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
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;
|
||||
context_over_200k?: {
|
||||
input?: number;
|
||||
output?: number;
|
||||
cache_read?: number;
|
||||
cache_write?: number;
|
||||
};
|
||||
};
|
||||
limit?: {
|
||||
context?: number;
|
||||
input?: number;
|
||||
output?: number;
|
||||
};
|
||||
modalities?: {
|
||||
input?: string[];
|
||||
output?: string[];
|
||||
};
|
||||
}
|
||||
|
||||
async function loadExisting(filePath: string): Promise<ExistingModel | null> {
|
||||
const file = Bun.file(filePath);
|
||||
if (!(await file.exists())) return null;
|
||||
try {
|
||||
const mod = await import(filePath, { with: { type: "toml" } });
|
||||
return mod.default as ExistingModel;
|
||||
} catch (e) {
|
||||
console.warn(`Warning: failed to parse ${filePath}:`, e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Merged model shape (what we write)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
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;
|
||||
context_over_200k?: {
|
||||
input: number;
|
||||
output: number;
|
||||
cache_read?: number;
|
||||
cache_write?: number;
|
||||
};
|
||||
};
|
||||
limit: {
|
||||
context: number;
|
||||
output: number;
|
||||
};
|
||||
modalities: {
|
||||
input: string[];
|
||||
output: string[];
|
||||
};
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Helpers
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
const VALID_INPUT_MODALITIES = new Set(["text", "audio", "image", "video", "pdf"]);
|
||||
const VALID_OUTPUT_MODALITIES = new Set(["text", "audio", "image", "video", "pdf"]);
|
||||
|
||||
function filterInputModalities(raw: string[]): string[] {
|
||||
return raw.filter((m) => VALID_INPUT_MODALITIES.has(m));
|
||||
}
|
||||
|
||||
function filterOutputModalities(raw: string[]): string[] {
|
||||
// "code" is not a valid modality in the schema — map to "text"
|
||||
return [...new Set(raw.map((m) => (m === "code" ? "text" : m)).filter((m) => VALID_OUTPUT_MODALITIES.has(m)))];
|
||||
}
|
||||
|
||||
function getTodayDate(): string {
|
||||
return new Date().toISOString().slice(0, 10);
|
||||
}
|
||||
|
||||
function formatNumber(n: number): string {
|
||||
return n >= 1000 ? n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "_") : n.toString();
|
||||
}
|
||||
|
||||
function inferFamily(modelId: string, modelName: string): string | undefined {
|
||||
const sorted = [...ModelFamilyValues].sort((a, b) => b.length - a.length);
|
||||
const targets = [modelId.toLowerCase(), modelName.toLowerCase()];
|
||||
for (const family of sorted) {
|
||||
const f = family.toLowerCase();
|
||||
for (const t of targets) {
|
||||
if (t.includes(f)) return family;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Merge API data with existing TOML
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function mergeModel(
|
||||
apiModel: z.infer<typeof DoModel>,
|
||||
pricing: ModelPricing | undefined,
|
||||
existing: ExistingModel | null,
|
||||
): MergedModel {
|
||||
const rawInput = apiModel.modalities?.input ?? [];
|
||||
const rawOutput = apiModel.modalities?.output ?? [];
|
||||
const inputMods = filterInputModalities(rawInput.length > 0 ? rawInput : existing?.modalities?.input ?? ["text"]);
|
||||
const outputMods = filterOutputModalities(rawOutput.length > 0 ? rawOutput : existing?.modalities?.output ?? ["text"]);
|
||||
|
||||
const maxTokensSetting = apiModel.settings?.find((s) => s.name === "max_tokens");
|
||||
const maxTokens = maxTokensSetting?.max ?? existing?.limit?.output ?? 0;
|
||||
|
||||
const rawContext = apiModel.context_window;
|
||||
const contextWindow =
|
||||
rawContext !== undefined
|
||||
? typeof rawContext === "string"
|
||||
? parseInt(rawContext, 10)
|
||||
: rawContext
|
||||
: (existing?.limit?.context ?? 0);
|
||||
|
||||
const isDeprecated = apiModel.lifecycle_status === "end_of_life";
|
||||
|
||||
// Fields preserved from existing TOML (APIs don't provide these)
|
||||
const family = existing?.family ?? inferFamily(apiModel.id, apiModel.name);
|
||||
const knowledge = existing?.knowledge;
|
||||
const openWeights = existing?.open_weights ?? false;
|
||||
const interleaved = existing?.interleaved;
|
||||
const attachment = existing?.attachment ?? inputMods.some((m) => m !== "text");
|
||||
|
||||
// reasoning: trust existing if set, else use API thinking flag as a hint
|
||||
// (thinking flag is unreliable for non-LLM models so gate on output modality)
|
||||
const isTextOutput = outputMods.includes("text") && !outputMods.includes("image") && !outputMods.includes("video");
|
||||
const reasoning = existing?.reasoning ?? (isTextOutput && (apiModel.thinking ?? false));
|
||||
|
||||
// tool_call: no API signal, preserve existing or default true for text models
|
||||
const toolCall = existing?.tool_call ?? isTextOutput;
|
||||
|
||||
// temperature: no API signal, preserve or default true
|
||||
const temperature = existing?.temperature ?? true;
|
||||
|
||||
// structured_output: no API signal, preserve only
|
||||
const structuredOutput = existing?.structured_output;
|
||||
|
||||
const releaseDate = existing?.release_date ?? apiModel.created_at?.slice(0, 10) ?? getTodayDate();
|
||||
|
||||
const merged: MergedModel = {
|
||||
name: apiModel.name,
|
||||
family,
|
||||
attachment,
|
||||
reasoning,
|
||||
tool_call: toolCall,
|
||||
temperature,
|
||||
release_date: releaseDate,
|
||||
last_updated: getTodayDate(),
|
||||
open_weights: openWeights,
|
||||
...(structuredOutput !== undefined && { structured_output: structuredOutput }),
|
||||
...(knowledge && { knowledge }),
|
||||
...(interleaved !== undefined && { interleaved }),
|
||||
...(isDeprecated && { status: "deprecated" }),
|
||||
limit: { context: contextWindow, output: maxTokens },
|
||||
modalities: { input: inputMods, output: outputMods },
|
||||
};
|
||||
|
||||
// Pricing: static-content API is the sole source of truth for prices.
|
||||
// The v2 models API pricing is intentionally ignored. If a model has no
|
||||
// entry in the static-content API, preserve existing TOML prices.
|
||||
const inputPrice = pricing?.input ?? existing?.cost?.input;
|
||||
const outputPrice = pricing?.output ?? existing?.cost?.output;
|
||||
|
||||
if (inputPrice !== undefined && outputPrice !== undefined) {
|
||||
merged.cost = {
|
||||
input: inputPrice,
|
||||
output: outputPrice,
|
||||
// Always preserve cache pricing — not available from any DO API
|
||||
...(existing?.cost?.cache_read !== undefined && { cache_read: existing.cost.cache_read }),
|
||||
...(existing?.cost?.cache_write !== undefined && { cache_write: existing.cost.cache_write }),
|
||||
};
|
||||
|
||||
// Context-tiered pricing (>200k) from the static-content API
|
||||
if (pricing?.inputOver200k !== undefined && pricing?.outputOver200k !== undefined) {
|
||||
merged.cost.context_over_200k = {
|
||||
input: pricing.inputOver200k,
|
||||
output: pricing.outputOver200k,
|
||||
...(existing?.cost?.context_over_200k?.cache_read !== undefined && {
|
||||
cache_read: existing.cost.context_over_200k.cache_read,
|
||||
}),
|
||||
...(existing?.cost?.context_over_200k?.cache_write !== undefined && {
|
||||
cache_write: existing.cost.context_over_200k.cache_write,
|
||||
}),
|
||||
};
|
||||
} else if (existing?.cost?.context_over_200k) {
|
||||
// Preserve manually-entered context_over_200k if API has no data
|
||||
merged.cost.context_over_200k = {
|
||||
input: existing.cost.context_over_200k.input ?? inputPrice,
|
||||
output: existing.cost.context_over_200k.output ?? outputPrice,
|
||||
...(existing.cost.context_over_200k.cache_read !== undefined && {
|
||||
cache_read: existing.cost.context_over_200k.cache_read,
|
||||
}),
|
||||
...(existing.cost.context_over_200k.cache_write !== undefined && {
|
||||
cache_write: existing.cost.context_over_200k.cache_write,
|
||||
}),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return merged;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// TOML serialiser
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
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(`release_date = "${model.release_date}"`);
|
||||
lines.push(`last_updated = "${model.last_updated}"`);
|
||||
lines.push(`attachment = ${model.attachment}`);
|
||||
lines.push(`reasoning = ${model.reasoning}`);
|
||||
lines.push(`temperature = ${model.temperature}`);
|
||||
lines.push(`tool_call = ${model.tool_call}`);
|
||||
if (model.structured_output !== undefined) lines.push(`structured_output = ${model.structured_output}`);
|
||||
if (model.knowledge) lines.push(`knowledge = "${model.knowledge}"`);
|
||||
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}`);
|
||||
|
||||
if (model.cost.context_over_200k) {
|
||||
lines.push("");
|
||||
lines.push(`[cost.context_over_200k]`);
|
||||
lines.push(`input = ${model.cost.context_over_200k.input}`);
|
||||
lines.push(`output = ${model.cost.context_over_200k.output}`);
|
||||
if (model.cost.context_over_200k.cache_read !== undefined)
|
||||
lines.push(`cache_read = ${model.cost.context_over_200k.cache_read}`);
|
||||
if (model.cost.context_over_200k.cache_write !== undefined)
|
||||
lines.push(`cache_write = ${model.cost.context_over_200k.cache_write}`);
|
||||
}
|
||||
}
|
||||
|
||||
lines.push("");
|
||||
lines.push(`[limit]`);
|
||||
lines.push(`context = ${formatNumber(model.limit.context)}`);
|
||||
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";
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Change detection
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
interface Change {
|
||||
field: string;
|
||||
oldValue: string;
|
||||
newValue: string;
|
||||
}
|
||||
|
||||
function formatValue(val: unknown): string {
|
||||
if (val === undefined) return "(none)";
|
||||
if (Array.isArray(val)) return `[${val.join(", ")}]`;
|
||||
if (typeof val === "number") return formatNumber(val);
|
||||
return String(val);
|
||||
}
|
||||
|
||||
function detectChanges(existing: ExistingModel | null, merged: MergedModel): Change[] {
|
||||
if (!existing) return [];
|
||||
|
||||
const changes: Change[] = [];
|
||||
const EPSILON = 0.001;
|
||||
|
||||
const compare = (field: string, oldVal: unknown, newVal: unknown) => {
|
||||
if (oldVal === undefined && newVal === undefined) return;
|
||||
const isDiff = field.startsWith("cost.")
|
||||
? Math.abs((oldVal as number ?? 0) - (newVal as number ?? 0)) > EPSILON
|
||||
: JSON.stringify(oldVal) !== JSON.stringify(newVal);
|
||||
if (isDiff) changes.push({ field, oldValue: formatValue(oldVal), newValue: formatValue(newVal) });
|
||||
};
|
||||
|
||||
compare("name", existing.name, merged.name);
|
||||
compare("reasoning", existing.reasoning, merged.reasoning);
|
||||
compare("tool_call", existing.tool_call, merged.tool_call);
|
||||
compare("attachment", existing.attachment, merged.attachment);
|
||||
compare("status", existing.status, merged.status);
|
||||
compare("cost.input", existing.cost?.input, merged.cost?.input);
|
||||
compare("cost.output", existing.cost?.output, merged.cost?.output);
|
||||
compare("cost.context_over_200k.input", existing.cost?.context_over_200k?.input, merged.cost?.context_over_200k?.input);
|
||||
compare("cost.context_over_200k.output", existing.cost?.context_over_200k?.output, merged.cost?.context_over_200k?.output);
|
||||
compare("limit.context", existing.limit?.context, merged.limit.context);
|
||||
compare("limit.output", existing.limit?.output, merged.limit.output);
|
||||
compare("modalities.input", existing.modalities?.input, merged.modalities.input);
|
||||
compare("modalities.output", existing.modalities?.output, merged.modalities.output);
|
||||
|
||||
return changes;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Main
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
async function main() {
|
||||
const args = process.argv.slice(2);
|
||||
const dryRun = args.includes("--dry-run");
|
||||
const newOnly = args.includes("--new-only");
|
||||
|
||||
// Resolve API key
|
||||
const apiKeyArg = args.find((a) => a.startsWith("--api-key"));
|
||||
const apiKey =
|
||||
(apiKeyArg?.includes("=") ? apiKeyArg.split("=")[1] : args[args.indexOf(apiKeyArg!) + 1]) ??
|
||||
process.env.DIGITALOCEAN_API_TOKEN;
|
||||
|
||||
if (!apiKey) {
|
||||
console.error("Error: DIGITALOCEAN_API_TOKEN is required (or pass --api-key=<key>)");
|
||||
console.error("Get one from: https://cloud.digitalocean.com/account/api/tokens");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const modelsDir = path.join(import.meta.dirname, "..", "..", "..", "providers", "digitalocean", "models");
|
||||
|
||||
const prefix = dryRun ? "[DRY RUN] " : "";
|
||||
console.log(`${prefix}Fetching DigitalOcean models from API...`);
|
||||
|
||||
// Fetch both APIs in parallel
|
||||
const [modelsRes, pricingRes] = await Promise.all([
|
||||
fetch(MODELS_API, { headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" } }),
|
||||
fetch(PRICING_API, { headers: { "User-Agent": "models.dev/digitalocean-sync" } }),
|
||||
]);
|
||||
|
||||
if (!modelsRes.ok) {
|
||||
console.error(`Failed to fetch models API: ${modelsRes.status} ${modelsRes.statusText}`);
|
||||
if (modelsRes.status === 401 || modelsRes.status === 403)
|
||||
console.error("Check your DIGITALOCEAN_API_TOKEN has read access.");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (!pricingRes.ok) {
|
||||
console.error(`Failed to fetch pricing API: ${pricingRes.status} ${pricingRes.statusText}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const modelsParsed = DoModelsResponse.safeParse(await modelsRes.json());
|
||||
if (!modelsParsed.success) {
|
||||
console.error("Unexpected models API response:", modelsParsed.error.errors);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const pricingParsed = StaticContentResponse.safeParse(await pricingRes.json());
|
||||
if (!pricingParsed.success) {
|
||||
console.error("Unexpected pricing API response:", pricingParsed.error.errors);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const apiModels = modelsParsed.data.models;
|
||||
const pricingMap = buildPricingMap(pricingParsed.data.gradient.models);
|
||||
|
||||
// Collect existing TOML filenames for orphan detection
|
||||
const existingFiles = new Set<string>();
|
||||
for await (const file of new Bun.Glob("**/*.toml").scan({ cwd: modelsDir, absolute: false })) {
|
||||
existingFiles.add(file);
|
||||
}
|
||||
|
||||
console.log(`Found ${apiModels.length} models in API, ${existingFiles.size} existing TOML files\n`);
|
||||
|
||||
const apiModelFiles = new Set<string>();
|
||||
let created = 0;
|
||||
let updated = 0;
|
||||
let unchanged = 0;
|
||||
|
||||
for (const apiModel of apiModels) {
|
||||
// Skip non-text models that opencode can't use: image, video, audio, embedding, reranking
|
||||
const outputMods = filterOutputModalities(apiModel.modalities?.output ?? []);
|
||||
const isTextModel = outputMods.includes("text");
|
||||
const isEmbedding = apiModel.type === "embedding";
|
||||
const isReranking = apiModel.type === "reranking";
|
||||
if (!isTextModel || isEmbedding || isReranking) continue;
|
||||
|
||||
// Model IDs may contain slashes (e.g. fal-ai/flux/schnell) — use as subpath
|
||||
const relativePath = `${apiModel.id}.toml`;
|
||||
const filePath = path.join(modelsDir, relativePath);
|
||||
const dirPath = path.dirname(filePath);
|
||||
|
||||
apiModelFiles.add(relativePath);
|
||||
|
||||
const existing = await loadExisting(filePath);
|
||||
const pricing = pricingMap.get(apiModel.id);
|
||||
const merged = mergeModel(apiModel, pricing, existing);
|
||||
const toml = formatToml(merged);
|
||||
|
||||
if (existing === null) {
|
||||
created++;
|
||||
if (dryRun) {
|
||||
console.log(`[DRY RUN] Would create: ${relativePath}`);
|
||||
console.log(` name = "${merged.name}"`);
|
||||
if (pricing) console.log(` pricing: $${merged.cost?.input}/$${merged.cost?.output} per M tokens`);
|
||||
if (merged.family) console.log(` family = "${merged.family}" (inferred)`);
|
||||
console.log("");
|
||||
} else {
|
||||
await mkdir(dirPath, { recursive: true });
|
||||
await Bun.write(filePath, toml);
|
||||
console.log(`Created: ${relativePath}`);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
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, toml);
|
||||
console.log(`Updated: ${relativePath}`);
|
||||
}
|
||||
for (const c of changes) console.log(` ${c.field}: ${c.oldValue} → ${c.newValue}`);
|
||||
console.log("");
|
||||
} else {
|
||||
unchanged++;
|
||||
}
|
||||
}
|
||||
|
||||
// Orphan detection: files in the TOML directory but not in the API
|
||||
const orphaned: string[] = [];
|
||||
for (const file of existingFiles) {
|
||||
if (!apiModelFiles.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();
|
||||
@@ -54,12 +54,16 @@ export const ModelFamilyValues = [
|
||||
// DeepSeek
|
||||
"deepseek",
|
||||
"deepseek-thinking",
|
||||
"deepseek-flash",
|
||||
"deepseek-flash-think",
|
||||
|
||||
// Microsoft Phi
|
||||
"phi",
|
||||
|
||||
// Moonshot Kimi
|
||||
"kimi",
|
||||
"kimi-k2.5",
|
||||
"kimi-k2.6",
|
||||
"kimi-free",
|
||||
"kimi-thinking",
|
||||
|
||||
@@ -115,8 +119,8 @@ export const ModelFamilyValues = [
|
||||
// Hunyuan
|
||||
"hunyuan",
|
||||
|
||||
// HY
|
||||
"HY",
|
||||
// Hy
|
||||
"Hy",
|
||||
|
||||
// Yi
|
||||
"yi",
|
||||
@@ -205,6 +209,10 @@ export const ModelFamilyValues = [
|
||||
"mimo",
|
||||
"mimo-pro",
|
||||
"mimo-omni",
|
||||
"mimo-v2-pro",
|
||||
"mimo-v2-omni",
|
||||
"mimo-v2.5-pro",
|
||||
"mimo-v2.5",
|
||||
"mimo-pro-free",
|
||||
"mimo-omni-free",
|
||||
"mimo-flash-free",
|
||||
@@ -280,8 +288,12 @@ export const ModelFamilyValues = [
|
||||
// RNJ
|
||||
"rnj",
|
||||
|
||||
// Tecent Hy
|
||||
"hy3-free",
|
||||
|
||||
// Ling & Ring (InclusionAI)
|
||||
"ling",
|
||||
"ling-flash-free",
|
||||
"ring",
|
||||
|
||||
// Kat Coder
|
||||
|
||||
@@ -150,6 +150,7 @@ export const Provider = z
|
||||
const isOpenAIcompatible = data.npm === "@ai-sdk/openai-compatible";
|
||||
const isOpenrouter = data.npm === "@openrouter/ai-sdk-provider";
|
||||
const isAnthropic = data.npm === "@ai-sdk/anthropic";
|
||||
const isKiro = data.npm === "kiro-acp-ai-provider";
|
||||
const hasApi = data.api !== undefined;
|
||||
|
||||
return (
|
||||
@@ -161,17 +162,20 @@ export const Provider = z
|
||||
isAnthropic ||
|
||||
// openai: api optional (always allowed)
|
||||
isOpenAI ||
|
||||
// kiro: api optional (always allowed)
|
||||
isKiro ||
|
||||
// all others: must NOT have api
|
||||
(!isOpenAI &&
|
||||
!isOpenAIcompatible &&
|
||||
!isOpenrouter &&
|
||||
!isAnthropic &&
|
||||
!isKiro &&
|
||||
!hasApi)
|
||||
);
|
||||
},
|
||||
{
|
||||
message:
|
||||
"'api' is required for openai-compatible and openrouter, optional for anthropic and openai, forbidden otherwise",
|
||||
"'api' is required for openai-compatible and openrouter, optional for anthropic, openai, and kiro, forbidden otherwise",
|
||||
path: ["api"],
|
||||
},
|
||||
);
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"build": "./script/build.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/virtual-core": "^3.14.0",
|
||||
"hono": "^4.8.0",
|
||||
"models.dev": "workspace:*"
|
||||
},
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
font-family: 'Rubik', sans-serif;
|
||||
line-height: 1.6;
|
||||
color: var(--color-text);
|
||||
@@ -205,12 +207,17 @@ header {
|
||||
}
|
||||
}
|
||||
|
||||
.table-viewport {
|
||||
height: calc(100svh - var(--header-height));
|
||||
margin-top: var(--header-height);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
font-size: 0.875rem;
|
||||
width: 100%;
|
||||
margin-top: var(--header-height);
|
||||
}
|
||||
|
||||
thead,
|
||||
@@ -218,7 +225,7 @@ tbody {}
|
||||
|
||||
table thead th {
|
||||
position: sticky;
|
||||
top: var(--header-height);
|
||||
top: 0;
|
||||
border-top: 1px solid var(--color-border);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: 0.75rem;
|
||||
@@ -264,6 +271,7 @@ td {
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
white-space: nowrap;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
tbody {
|
||||
@@ -319,21 +327,37 @@ tbody {
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.provider-cell span:first-child {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.provider-cell img,
|
||||
.provider-cell svg {
|
||||
flex: 0 0 auto;
|
||||
display: block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.virtual-spacer td {
|
||||
height: inherit;
|
||||
padding: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.empty-row td {
|
||||
padding: 2rem 0.75rem;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.empty-row div {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
width: calc(100vw - 1.5rem);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.model-id-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
justify-content: flex-start;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
@@ -546,4 +570,4 @@ dialog {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+295
-94
@@ -1,7 +1,53 @@
|
||||
import {
|
||||
Virtualizer,
|
||||
elementScroll,
|
||||
observeElementOffset,
|
||||
observeElementRect,
|
||||
} from "@tanstack/virtual-core";
|
||||
import {
|
||||
type TableRow,
|
||||
renderRow,
|
||||
escapeHtml,
|
||||
booleanText,
|
||||
knowledgeText,
|
||||
weightsText,
|
||||
} from "./shared.js";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__TABLE_DATA__: TableRow[];
|
||||
}
|
||||
}
|
||||
|
||||
interface VirtualizedRow extends TableRow {
|
||||
key: string;
|
||||
searchText: string;
|
||||
sortValues: Array<string | number | undefined>;
|
||||
}
|
||||
|
||||
type SortDirection = "asc" | "desc";
|
||||
|
||||
const ESTIMATED_ROW_HEIGHT = 48;
|
||||
const VIRTUAL_OVERSCAN = 5;
|
||||
|
||||
const modal = document.getElementById("modal") as HTMLDialogElement;
|
||||
const modalClose = document.getElementById("close")!;
|
||||
const help = document.getElementById("help")!;
|
||||
const search = document.getElementById("search")! as HTMLInputElement;
|
||||
const viewport = document.getElementById("table-viewport") as HTMLElement;
|
||||
const tbody = document.getElementById(
|
||||
"models-table-body"
|
||||
) as HTMLTableSectionElement;
|
||||
const headers = Array.from(document.querySelectorAll("th.sortable"));
|
||||
const columnCount = document.querySelectorAll("thead th").length;
|
||||
|
||||
let isLoaded = false;
|
||||
let allRows: VirtualizedRow[] = [];
|
||||
let visibleRows: VirtualizedRow[] = [];
|
||||
let currentSort: { column: number; direction: SortDirection } = {
|
||||
column: -1,
|
||||
direction: "asc",
|
||||
};
|
||||
|
||||
/////////////////////////
|
||||
// URL State Management
|
||||
@@ -31,10 +77,7 @@ function getColumnNameForURL(headerEl: Element): string {
|
||||
}
|
||||
|
||||
function getColumnIndexByUrlName(name: string): number {
|
||||
const headers = document.querySelectorAll("th.sortable");
|
||||
return Array.from(headers).findIndex(
|
||||
(header) => getColumnNameForURL(header) === name
|
||||
);
|
||||
return headers.findIndex((header) => getColumnNameForURL(header) === name);
|
||||
}
|
||||
|
||||
/////////////////////////
|
||||
@@ -63,32 +106,181 @@ modal.addEventListener("click", (e) => {
|
||||
});
|
||||
|
||||
////////////////////
|
||||
// Handle Sorting
|
||||
// Row Data
|
||||
////////////////////
|
||||
let currentSort = { column: -1, direction: "asc" };
|
||||
function lockColumnWidths() {
|
||||
const ths = document.querySelectorAll("#models-table thead th");
|
||||
const widths = Array.from(ths).map((th) => th.getBoundingClientRect().width);
|
||||
|
||||
function sortTable(column: number, direction: "asc" | "desc") {
|
||||
const header = document.querySelectorAll("th.sortable")[column];
|
||||
const columnType = header.getAttribute("data-type");
|
||||
if (!columnType) return;
|
||||
const measurementRow = tbody.querySelector('tr[aria-hidden="true"]');
|
||||
if (measurementRow) measurementRow.remove();
|
||||
|
||||
// update state
|
||||
currentSort = { column, direction };
|
||||
updateQueryParams({
|
||||
sort: getColumnNameForURL(header),
|
||||
order: direction,
|
||||
});
|
||||
const table = document.getElementById("models-table")!;
|
||||
table.style.tableLayout = "fixed";
|
||||
|
||||
// sort rows
|
||||
const tbody = document.querySelector("table tbody")!;
|
||||
const rows = Array.from(
|
||||
tbody.querySelectorAll("tr")
|
||||
) as HTMLTableRowElement[];
|
||||
rows.sort((a, b) => {
|
||||
const aValue = getCellValue(a.cells[column], columnType);
|
||||
const bValue = getCellValue(b.cells[column], columnType);
|
||||
const colgroup = document.createElement("colgroup");
|
||||
for (const width of widths) {
|
||||
const col = document.createElement("col");
|
||||
col.style.width = `${width}px`;
|
||||
colgroup.appendChild(col);
|
||||
}
|
||||
table.insertBefore(colgroup, table.firstChild);
|
||||
}
|
||||
|
||||
function prepareRow(row: TableRow): VirtualizedRow {
|
||||
const sortValues: VirtualizedRow["sortValues"] = [
|
||||
row.providerName,
|
||||
row.modelName,
|
||||
row.family,
|
||||
row.providerId,
|
||||
row.modelId,
|
||||
booleanText(row.toolCall),
|
||||
booleanText(row.reasoning),
|
||||
row.input.length,
|
||||
row.output.length,
|
||||
row.inputCost,
|
||||
row.outputCost,
|
||||
row.reasoningCost,
|
||||
row.cacheReadCost,
|
||||
row.cacheWriteCost,
|
||||
row.audioInputCost,
|
||||
row.audioOutputCost,
|
||||
row.contextLimit,
|
||||
row.inputLimit,
|
||||
row.outputLimit,
|
||||
row.structuredOutput === undefined
|
||||
? undefined
|
||||
: booleanText(row.structuredOutput),
|
||||
booleanText(row.temperature),
|
||||
weightsText(row.openWeights),
|
||||
row.knowledge ? knowledgeText(row.knowledge) : undefined,
|
||||
row.releaseDate,
|
||||
row.lastUpdated,
|
||||
];
|
||||
|
||||
const searchableValues = [
|
||||
row.providerName,
|
||||
row.modelName,
|
||||
row.family ?? "",
|
||||
row.providerId,
|
||||
row.modelId,
|
||||
row.releaseDate,
|
||||
row.lastUpdated,
|
||||
];
|
||||
|
||||
return {
|
||||
...row,
|
||||
key: `${row.providerId}/${row.modelId}`,
|
||||
searchText: searchableValues.join(" ").toLowerCase(),
|
||||
sortValues,
|
||||
};
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Virtual Table
|
||||
////////////////////
|
||||
function getVirtualizerOptions(count: number) {
|
||||
return {
|
||||
count,
|
||||
getScrollElement: () => viewport,
|
||||
estimateSize: () => ESTIMATED_ROW_HEIGHT,
|
||||
getItemKey: (index: number) => visibleRows[index]?.key ?? index,
|
||||
initialRect: {
|
||||
width: viewport.clientWidth || window.innerWidth,
|
||||
height: viewport.clientHeight || window.innerHeight,
|
||||
},
|
||||
overscan: VIRTUAL_OVERSCAN,
|
||||
observeElementRect,
|
||||
observeElementOffset,
|
||||
scrollToFn: elementScroll,
|
||||
onChange: () => renderVirtualRows(),
|
||||
};
|
||||
}
|
||||
|
||||
const virtualizer = new Virtualizer<HTMLElement, HTMLTableRowElement>(
|
||||
getVirtualizerOptions(0)
|
||||
);
|
||||
const cleanupVirtualizer = virtualizer._didMount();
|
||||
virtualizer._willUpdate();
|
||||
window.addEventListener("pagehide", () => cleanupVirtualizer());
|
||||
|
||||
function renderStatusRow(message: string) {
|
||||
tbody.innerHTML = `<tr class="empty-row"><td colspan="${columnCount}"><div>${escapeHtml(
|
||||
message
|
||||
)}</div></td></tr>`;
|
||||
}
|
||||
|
||||
function setVirtualizerCount(count: number, resetScroll: boolean) {
|
||||
virtualizer.setOptions(getVirtualizerOptions(count));
|
||||
virtualizer._willUpdate();
|
||||
if (resetScroll) virtualizer.scrollToOffset(0);
|
||||
renderVirtualRows();
|
||||
}
|
||||
|
||||
function renderVirtualRows() {
|
||||
if (!isLoaded) return;
|
||||
if (visibleRows.length === 0) {
|
||||
renderStatusRow("No models found");
|
||||
return;
|
||||
}
|
||||
|
||||
const virtualRows = virtualizer.getVirtualItems();
|
||||
if (virtualRows.length === 0) return;
|
||||
|
||||
const firstRow = virtualRows[0]!;
|
||||
const lastRow = virtualRows[virtualRows.length - 1]!;
|
||||
const paddingTop = firstRow.start;
|
||||
const paddingBottom = Math.max(virtualizer.getTotalSize() - lastRow.end, 0);
|
||||
const html: string[] = [];
|
||||
|
||||
if (paddingTop > 0) html.push(renderSpacerRow(paddingTop));
|
||||
for (const virtualRow of virtualRows) {
|
||||
const row = visibleRows[virtualRow.index];
|
||||
if (row) html.push(renderRow(row, virtualRow.index));
|
||||
}
|
||||
if (paddingBottom > 0) html.push(renderSpacerRow(paddingBottom));
|
||||
|
||||
tbody.innerHTML = html.join("");
|
||||
tbody.querySelectorAll<HTMLTableRowElement>("tr[data-index]").forEach((row) =>
|
||||
virtualizer.measureElement(row)
|
||||
);
|
||||
}
|
||||
|
||||
function renderSpacerRow(height: number) {
|
||||
return `<tr class="virtual-spacer" style="height: ${height}px"><td colspan="${columnCount}"></td></tr>`;
|
||||
}
|
||||
|
||||
function applyRows(resetScroll = true) {
|
||||
if (!isLoaded) return;
|
||||
visibleRows = getRowsForDisplay();
|
||||
setVirtualizerCount(visibleRows.length, resetScroll);
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Sorting
|
||||
////////////////////
|
||||
function getRowsForDisplay() {
|
||||
const terms = search.value
|
||||
.toLowerCase()
|
||||
.split(",")
|
||||
.map((term) => term.trim())
|
||||
.filter(Boolean);
|
||||
const filteredRows =
|
||||
terms.length === 0
|
||||
? allRows
|
||||
: allRows.filter((row) =>
|
||||
terms.some((term) => row.searchText.includes(term))
|
||||
);
|
||||
|
||||
if (currentSort.column === -1) return filteredRows;
|
||||
|
||||
const columnType = headers[currentSort.column]?.getAttribute("data-type");
|
||||
if (!columnType) return filteredRows;
|
||||
|
||||
return [...filteredRows].sort((a, b) => {
|
||||
const aValue = a.sortValues[currentSort.column];
|
||||
const bValue = b.sortValues[currentSort.column];
|
||||
|
||||
// Handle undefined values - always sort to bottom
|
||||
if (aValue === undefined && bValue === undefined) return 0;
|
||||
if (aValue === undefined) return 1;
|
||||
if (bValue === undefined) return -1;
|
||||
@@ -96,45 +288,48 @@ function sortTable(column: number, direction: "asc" | "desc") {
|
||||
let comparison = 0;
|
||||
if (columnType === "number" || columnType === "modalities") {
|
||||
comparison = (aValue as number) - (bValue as number);
|
||||
} else if (columnType === "boolean") {
|
||||
comparison = (aValue as string).localeCompare(bValue as string);
|
||||
} else {
|
||||
comparison = (aValue as string).localeCompare(bValue as string);
|
||||
comparison = String(aValue).localeCompare(String(bValue));
|
||||
}
|
||||
|
||||
return direction === "asc" ? comparison : -comparison;
|
||||
return currentSort.direction === "asc" ? comparison : -comparison;
|
||||
});
|
||||
rows.forEach((row) => tbody.appendChild(row));
|
||||
}
|
||||
|
||||
// update sort indicators
|
||||
const headers = document.querySelectorAll("th.sortable");
|
||||
function sortTable(
|
||||
column: number,
|
||||
direction: SortDirection,
|
||||
updateURL = true
|
||||
) {
|
||||
const header = headers[column];
|
||||
if (!header?.getAttribute("data-type")) return;
|
||||
|
||||
currentSort = { column, direction };
|
||||
if (updateURL) {
|
||||
updateQueryParams({
|
||||
sort: getColumnNameForURL(header),
|
||||
order: direction,
|
||||
});
|
||||
}
|
||||
|
||||
updateSortIndicators();
|
||||
applyRows();
|
||||
}
|
||||
|
||||
function updateSortIndicators() {
|
||||
headers.forEach((header, i) => {
|
||||
const indicator = header.querySelector(".sort-indicator")!;
|
||||
|
||||
if (i === column) {
|
||||
indicator.textContent = direction === "asc" ? "↑" : "↓";
|
||||
} else {
|
||||
indicator.textContent = "";
|
||||
}
|
||||
indicator.textContent =
|
||||
i === currentSort.column
|
||||
? currentSort.direction === "asc"
|
||||
? "↑"
|
||||
: "↓"
|
||||
: "";
|
||||
});
|
||||
}
|
||||
|
||||
function getCellValue(
|
||||
cell: HTMLTableCellElement,
|
||||
type: string
|
||||
): string | number | undefined {
|
||||
if (type === "modalities")
|
||||
return cell.querySelectorAll(".modality-icon").length;
|
||||
|
||||
const text = cell.textContent?.trim() || "";
|
||||
if (text === "-") return;
|
||||
if (type === "number") return parseFloat(text.replace(/[$,]/g, "")) || 0;
|
||||
return text;
|
||||
}
|
||||
|
||||
document.querySelectorAll("th.sortable").forEach((header) => {
|
||||
headers.forEach((header, column) => {
|
||||
header.addEventListener("click", () => {
|
||||
const column = Array.from(header.parentElement!.children).indexOf(header);
|
||||
const direction =
|
||||
currentSort.column === column && currentSort.direction === "asc"
|
||||
? "desc"
|
||||
@@ -144,34 +339,19 @@ document.querySelectorAll("th.sortable").forEach((header) => {
|
||||
});
|
||||
|
||||
///////////////////
|
||||
// Handle Search
|
||||
// Search
|
||||
///////////////////
|
||||
function filterTable(value: string) {
|
||||
const lowerCaseValues = value.toLowerCase().split(",").filter(str => str.trim() !== "");
|
||||
const rows = document.querySelectorAll(
|
||||
"table tbody tr"
|
||||
) as NodeListOf<HTMLTableRowElement>;
|
||||
|
||||
rows.forEach((row) => {
|
||||
const cellTexts = Array.from(row.cells).map((cell) =>
|
||||
cell.textContent!.toLowerCase()
|
||||
);
|
||||
const isVisible = lowerCaseValues.length === 0 ||
|
||||
lowerCaseValues.some((lowerCaseValue) => cellTexts.some((text) => text.includes(lowerCaseValue)));
|
||||
row.style.display = isVisible ? "" : "none";
|
||||
});
|
||||
|
||||
updateQueryParams({ search: value || null });
|
||||
}
|
||||
|
||||
search.addEventListener("input", () => {
|
||||
filterTable(search.value);
|
||||
updateQueryParams({ search: search.value || null });
|
||||
applyRows();
|
||||
});
|
||||
|
||||
document.addEventListener("keydown", (e) => {
|
||||
if ((e.metaKey || e.ctrlKey) && e.key === "k") {
|
||||
const key = e.key.toLowerCase();
|
||||
if ((e.metaKey || e.ctrlKey) && (key === "k" || key === "f")) {
|
||||
e.preventDefault();
|
||||
search.focus();
|
||||
search.select();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -185,10 +365,7 @@ search.addEventListener("keydown", (e) => {
|
||||
///////////////////////////////////
|
||||
// Handle Copy model ID function
|
||||
///////////////////////////////////
|
||||
(window as any).copyModelId = async (
|
||||
button: HTMLButtonElement,
|
||||
modelId: string
|
||||
) => {
|
||||
async function copyModelId(button: HTMLButtonElement, modelId: string) {
|
||||
try {
|
||||
if (navigator.clipboard) {
|
||||
await navigator.clipboard.writeText(modelId);
|
||||
@@ -209,7 +386,18 @@ search.addEventListener("keydown", (e) => {
|
||||
} catch (err) {
|
||||
console.error("Failed to copy text: ", err);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
document.addEventListener("click", (event) => {
|
||||
if (!(event.target instanceof Element)) return;
|
||||
const button = event.target.closest<HTMLButtonElement>(
|
||||
".copy-button[data-model-id]"
|
||||
);
|
||||
if (!button) return;
|
||||
|
||||
const modelId = button.dataset.modelId;
|
||||
if (modelId) void copyModelId(button, modelId);
|
||||
});
|
||||
|
||||
///////////////////////////////////
|
||||
// Initialize State from URL
|
||||
@@ -217,24 +405,37 @@ search.addEventListener("keydown", (e) => {
|
||||
function initializeFromURL() {
|
||||
const params = getQueryParams();
|
||||
|
||||
(() => {
|
||||
const searchQuery = params.get("search");
|
||||
if (!searchQuery) return;
|
||||
search.value = searchQuery;
|
||||
filterTable(searchQuery);
|
||||
})();
|
||||
|
||||
(() => {
|
||||
const columnName = params.get("sort");
|
||||
if (!columnName) return;
|
||||
search.value = params.get("search") ?? "";
|
||||
|
||||
currentSort = { column: -1, direction: "asc" };
|
||||
const columnName = params.get("sort");
|
||||
if (columnName) {
|
||||
const columnIndex = getColumnIndexByUrlName(columnName);
|
||||
if (columnIndex === -1) return;
|
||||
if (columnIndex !== -1) {
|
||||
currentSort = {
|
||||
column: columnIndex,
|
||||
direction: params.get("order") === "desc" ? "desc" : "asc",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
const direction = (params.get("order") as "asc" | "desc") || "asc";
|
||||
sortTable(columnIndex, direction);
|
||||
})();
|
||||
updateSortIndicators();
|
||||
applyRows(false);
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", initializeFromURL);
|
||||
function loadRows() {
|
||||
try {
|
||||
allRows = window.__TABLE_DATA__.map(prepareRow);
|
||||
lockColumnWidths();
|
||||
isLoaded = true;
|
||||
initializeFromURL();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
isLoaded = true;
|
||||
visibleRows = [];
|
||||
renderStatusRow("Failed to load model data");
|
||||
}
|
||||
}
|
||||
|
||||
loadRows();
|
||||
window.addEventListener("popstate", initializeFromURL);
|
||||
+55
-232
@@ -6,6 +6,7 @@ import { Fragment } from "hono/jsx";
|
||||
import { renderToString } from "hono/jsx/dom/server";
|
||||
import { existsSync } from "fs";
|
||||
import path from "path";
|
||||
import { type TableRow, renderRow, getLargestRow } from "./shared.js";
|
||||
|
||||
export const Providers = await generate(
|
||||
path.join(import.meta.dir, "..", "..", "..", "providers")
|
||||
@@ -38,7 +39,6 @@ const loadProviderSvg = async (providerId: string): Promise<string | null> => {
|
||||
const file = Bun.file(providerLogoPath);
|
||||
return await file.text();
|
||||
}
|
||||
//
|
||||
// Fall back to default logo
|
||||
if (existsSync(defaultLogoPath)) {
|
||||
const file = Bun.file(defaultLogoPath);
|
||||
@@ -62,122 +62,47 @@ for (const [providerId] of Object.entries(Providers)) {
|
||||
}
|
||||
}
|
||||
|
||||
function renderProviderLogo(providerId: string) {
|
||||
const svgContent = providerLogos.get(providerId) || "";
|
||||
export const INITIAL_ROW_COUNT = 50;
|
||||
|
||||
return <span dangerouslySetInnerHTML={{ __html: svgContent }} />;
|
||||
}
|
||||
export const TableRows: TableRow[] = Object.entries(Providers)
|
||||
.sort(([, providerA], [, providerB]) =>
|
||||
providerA.name.localeCompare(providerB.name)
|
||||
)
|
||||
.flatMap(([providerId, provider]) =>
|
||||
Object.entries(provider.models)
|
||||
.filter(([, model]) => model.status !== "alpha")
|
||||
.sort(([, modelA], [, modelB]) => modelA.name.localeCompare(modelB.name))
|
||||
.map(([modelId, model]) => ({
|
||||
providerId,
|
||||
providerName: provider.name,
|
||||
providerLogoSvg: providerLogos.get(providerId) || "",
|
||||
modelId,
|
||||
modelName: model.name,
|
||||
family: model.family,
|
||||
toolCall: model.tool_call,
|
||||
reasoning: model.reasoning,
|
||||
input: model.modalities.input,
|
||||
output: model.modalities.output,
|
||||
inputCost: model.cost?.input,
|
||||
outputCost: model.cost?.output,
|
||||
reasoningCost: model.cost?.reasoning,
|
||||
cacheReadCost: model.cost?.cache_read,
|
||||
cacheWriteCost: model.cost?.cache_write,
|
||||
audioInputCost: model.cost?.input_audio,
|
||||
audioOutputCost: model.cost?.output_audio,
|
||||
contextLimit: model.limit.context,
|
||||
inputLimit: model.limit.input,
|
||||
outputLimit: model.limit.output,
|
||||
structuredOutput: model.structured_output,
|
||||
temperature: model.temperature ?? false,
|
||||
openWeights: model.open_weights,
|
||||
knowledge: model.knowledge,
|
||||
releaseDate: model.release_date,
|
||||
lastUpdated: model.last_updated,
|
||||
}))
|
||||
);
|
||||
|
||||
const getModalityIcon = (modality: string) => {
|
||||
switch (modality) {
|
||||
case "text":
|
||||
return (
|
||||
<span class="modality-icon" data-tooltip="Text">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<polyline points="4,7 4,4 20,4 20,7"></polyline>
|
||||
<line x1="9" y1="20" x2="15" y2="20"></line>
|
||||
<line x1="12" y1="4" x2="12" y2="20"></line>
|
||||
</svg>
|
||||
</span>
|
||||
);
|
||||
case "image":
|
||||
return (
|
||||
<span class="modality-icon" data-tooltip="Image">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect>
|
||||
<circle cx="9" cy="9" r="2"></circle>
|
||||
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path>
|
||||
</svg>
|
||||
</span>
|
||||
);
|
||||
case "audio":
|
||||
return (
|
||||
<span class="modality-icon" data-tooltip="Audio">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>
|
||||
<path d="m19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>
|
||||
</svg>
|
||||
</span>
|
||||
);
|
||||
case "video":
|
||||
return (
|
||||
<span class="modality-icon" data-tooltip="Video">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="m22 8-6 4 6 4V8Z"></path>
|
||||
<rect width="14" height="12" x="2" y="6" rx="2" ry="2"></rect>
|
||||
</svg>
|
||||
</span>
|
||||
);
|
||||
case "pdf":
|
||||
return (
|
||||
<span class="modality-icon" data-tooltip="PDF">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
||||
<polyline points="14,2 14,8 20,8"></polyline>
|
||||
<line x1="16" y1="13" x2="8" y2="13"></line>
|
||||
<line x1="16" y1="17" x2="8" y2="17"></line>
|
||||
<polyline points="10,9 9,9 8,9"></polyline>
|
||||
</svg>
|
||||
</span>
|
||||
);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
const renderCost = (cost?: number) => {
|
||||
return cost === undefined ? "-" : `$${cost.toFixed(2)}`;
|
||||
};
|
||||
const largestRow = getLargestRow(TableRows);
|
||||
|
||||
export const Rendered = renderToString(
|
||||
<Fragment>
|
||||
@@ -213,7 +138,8 @@ export const Rendered = renderToString(
|
||||
<button id="help">How to use</button>
|
||||
</div>
|
||||
</header>
|
||||
<table>
|
||||
<div id="table-viewport" class="table-viewport">
|
||||
<table id="models-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="sortable" data-type="text">
|
||||
@@ -342,120 +268,12 @@ export const Rendered = renderToString(
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{Object.entries(Providers)
|
||||
.sort(([, providerA], [, providerB]) =>
|
||||
providerA.name.localeCompare(providerB.name)
|
||||
)
|
||||
.flatMap(([providerId, provider]) =>
|
||||
Object.entries(provider.models)
|
||||
.filter(([, model]) => model.status !== "alpha")
|
||||
.sort(([, modelA], [, modelB]) =>
|
||||
modelA.name.localeCompare(modelB.name)
|
||||
)
|
||||
.map(([modelId, model]) => (
|
||||
<tr key={`${providerId}-${modelId}`}>
|
||||
<td>
|
||||
<div class="provider-cell">
|
||||
{renderProviderLogo(providerId)}
|
||||
<span>{provider.name}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>{model.name}</td>
|
||||
<td>{model.family ?? "-"}</td>
|
||||
<td>{providerId}</td>
|
||||
<td>
|
||||
<div class="model-id-cell">
|
||||
<span class="model-id-text">{modelId}</span>
|
||||
<button
|
||||
class="copy-button"
|
||||
onclick={`copyModelId(this, '${modelId}')`}
|
||||
>
|
||||
<svg
|
||||
class="copy-icon"
|
||||
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"
|
||||
>
|
||||
<rect
|
||||
width="14"
|
||||
height="14"
|
||||
x="8"
|
||||
y="8"
|
||||
rx="2"
|
||||
ry="2"
|
||||
/>
|
||||
<path d="m4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
|
||||
</svg>
|
||||
<svg
|
||||
class="check-icon"
|
||||
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"
|
||||
style="display: none;"
|
||||
>
|
||||
<polyline points="20,6 9,17 4,12" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
<td>{model.tool_call ? "Yes" : "No"}</td>
|
||||
<td>{model.reasoning ? "Yes" : "No"}</td>
|
||||
<td>
|
||||
<div class="modalities">
|
||||
{model.modalities.input.map((modality) =>
|
||||
getModalityIcon(modality)
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="modalities">
|
||||
{model.modalities.output.map((modality) =>
|
||||
getModalityIcon(modality)
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
<td>{renderCost(model.cost?.input)}</td>
|
||||
<td>{renderCost(model.cost?.output)}</td>
|
||||
<td>{renderCost(model.cost?.reasoning)}</td>
|
||||
<td>{renderCost(model.cost?.cache_read)}</td>
|
||||
<td>{renderCost(model.cost?.cache_write)}</td>
|
||||
<td>{renderCost(model.cost?.input_audio)}</td>
|
||||
<td>{renderCost(model.cost?.output_audio)}</td>
|
||||
<td>{model.limit.context.toLocaleString()}</td>
|
||||
<td>{model.limit.input?.toLocaleString() ?? "-"}</td>
|
||||
<td>{model.limit.output.toLocaleString()}</td>
|
||||
<td>
|
||||
{model.structured_output === undefined
|
||||
? "-"
|
||||
: model.structured_output
|
||||
? "Yes"
|
||||
: "No"}
|
||||
</td>
|
||||
<td>{model.temperature ? "Yes" : "No"}</td>
|
||||
<td>{model.open_weights ? "Open" : "Closed"}</td>
|
||||
<td>
|
||||
{model.knowledge ? model.knowledge.substring(0, 7) : "-"}
|
||||
</td>
|
||||
<td>{model.release_date}</td>
|
||||
<td>{model.last_updated}</td>
|
||||
</tr>
|
||||
))
|
||||
)}
|
||||
</tbody>
|
||||
</table>
|
||||
<tbody id="models-table-body" dangerouslySetInnerHTML={{
|
||||
__html: TableRows.slice(0, INITIAL_ROW_COUNT).map((row, i) => renderRow(row, i)).join('')
|
||||
+ renderRow(largestRow, -1).replace('<tr', '<tr style="visibility:hidden" aria-hidden="true"')
|
||||
}} />
|
||||
</table>
|
||||
</div>
|
||||
<dialog id="modal">
|
||||
<div class="header">
|
||||
<h2>How to use</h2>
|
||||
@@ -565,10 +383,15 @@ export const Rendered = renderToString(
|
||||
>
|
||||
Edit on GitHub
|
||||
</a>
|
||||
<a href="https://sst.dev" target="_blank" rel="noopener noreferrer">
|
||||
Created by SST
|
||||
<a href="https://opencode.ai" target="_blank" rel="noopener noreferrer">
|
||||
Created by OpenCode
|
||||
</a>
|
||||
</div>
|
||||
</dialog>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `window.__TABLE_DATA__ = ${JSON.stringify(TableRows)}`,
|
||||
}}
|
||||
></script>
|
||||
</Fragment>
|
||||
);
|
||||
@@ -0,0 +1,176 @@
|
||||
export interface TableRow {
|
||||
providerId: string;
|
||||
providerName: string;
|
||||
providerLogoSvg: string;
|
||||
modelId: string;
|
||||
modelName: string;
|
||||
family?: string;
|
||||
toolCall: boolean;
|
||||
reasoning: boolean;
|
||||
input: string[];
|
||||
output: string[];
|
||||
inputCost?: number;
|
||||
outputCost?: number;
|
||||
reasoningCost?: number;
|
||||
cacheReadCost?: number;
|
||||
cacheWriteCost?: number;
|
||||
audioInputCost?: number;
|
||||
audioOutputCost?: number;
|
||||
contextLimit: number;
|
||||
inputLimit?: number;
|
||||
outputLimit: number;
|
||||
structuredOutput?: boolean;
|
||||
temperature: boolean;
|
||||
openWeights: boolean;
|
||||
knowledge?: string;
|
||||
releaseDate: string;
|
||||
lastUpdated: string;
|
||||
}
|
||||
|
||||
const MODALITY_ICONS: Record<string, string> = {
|
||||
text: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4,7 4,4 20,4 20,7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line></svg>`,
|
||||
image: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg>`,
|
||||
audio: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="m19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>`,
|
||||
video: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 8-6 4 6 4V8Z"></path><rect width="14" height="12" x="2" y="6" rx="2" ry="2"></rect></svg>`,
|
||||
pdf: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14,2 14,8 20,8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10,9 9,9 8,9"></polyline></svg>`,
|
||||
};
|
||||
|
||||
export function escapeHtml(value: string | number) {
|
||||
return String(value).replace(/[&<>'"]/g, (char) => {
|
||||
switch (char) {
|
||||
case "&":
|
||||
return "&";
|
||||
case "<":
|
||||
return "<";
|
||||
case ">":
|
||||
return ">";
|
||||
case "'":
|
||||
return "'";
|
||||
case '"':
|
||||
return """;
|
||||
default:
|
||||
return char;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function booleanText(value: boolean) {
|
||||
return value ? "Yes" : "No";
|
||||
}
|
||||
|
||||
export function optionalBooleanText(value?: boolean) {
|
||||
return value === undefined ? "-" : booleanText(value);
|
||||
}
|
||||
|
||||
export function formatCost(cost?: number) {
|
||||
return cost === undefined ? "-" : `$${cost.toFixed(2)}`;
|
||||
}
|
||||
|
||||
export function formatNumber(value?: number) {
|
||||
return value === undefined ? "-" : value.toLocaleString();
|
||||
}
|
||||
|
||||
export function knowledgeText(value?: string) {
|
||||
return value ? value.substring(0, 7) : "-";
|
||||
}
|
||||
|
||||
export function weightsText(value: boolean) {
|
||||
return value ? "Open" : "Closed";
|
||||
}
|
||||
|
||||
export function renderModalityIcon(modality: string) {
|
||||
const label =
|
||||
modality === "pdf"
|
||||
? "PDF"
|
||||
: modality[0]!.toUpperCase() + modality.slice(1);
|
||||
const icon = MODALITY_ICONS[modality];
|
||||
if (!icon) return "";
|
||||
return `<span class="modality-icon" data-tooltip="${label}">${icon}</span>`;
|
||||
}
|
||||
|
||||
export function renderModalities(modalities: string[]) {
|
||||
return `<div class="modalities">${modalities
|
||||
.map(renderModalityIcon)
|
||||
.join("")}</div>`;
|
||||
}
|
||||
|
||||
export function renderCopyButton(modelId: string) {
|
||||
const escapedModelId = escapeHtml(modelId);
|
||||
return `<button type="button" class="copy-button" data-model-id="${escapedModelId}" aria-label="Copy model ID"><svg class="copy-icon" 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"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="m4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg><svg class="check-icon" 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" style="display: none;"><polyline points="20,6 9,17 4,12"></polyline></svg></button>`;
|
||||
}
|
||||
|
||||
export function renderRow(row: TableRow, index: number) {
|
||||
return `<tr data-index="${index}">
|
||||
<td><div class="provider-cell">${row.providerLogoSvg}<span>${escapeHtml(
|
||||
row.providerName
|
||||
)}</span></div></td>
|
||||
<td>${escapeHtml(row.modelName)}</td>
|
||||
<td>${escapeHtml(row.family ?? "-")}</td>
|
||||
<td>${escapeHtml(row.providerId)}</td>
|
||||
<td><div class="model-id-cell"><span class="model-id-text">${escapeHtml(
|
||||
row.modelId
|
||||
)}</span>${renderCopyButton(row.modelId)}</div></td>
|
||||
<td>${booleanText(row.toolCall)}</td>
|
||||
<td>${booleanText(row.reasoning)}</td>
|
||||
<td>${renderModalities(row.input)}</td>
|
||||
<td>${renderModalities(row.output)}</td>
|
||||
<td>${formatCost(row.inputCost)}</td>
|
||||
<td>${formatCost(row.outputCost)}</td>
|
||||
<td>${formatCost(row.reasoningCost)}</td>
|
||||
<td>${formatCost(row.cacheReadCost)}</td>
|
||||
<td>${formatCost(row.cacheWriteCost)}</td>
|
||||
<td>${formatCost(row.audioInputCost)}</td>
|
||||
<td>${formatCost(row.audioOutputCost)}</td>
|
||||
<td>${formatNumber(row.contextLimit)}</td>
|
||||
<td>${formatNumber(row.inputLimit)}</td>
|
||||
<td>${formatNumber(row.outputLimit)}</td>
|
||||
<td>${optionalBooleanText(row.structuredOutput)}</td>
|
||||
<td>${booleanText(row.temperature)}</td>
|
||||
<td>${weightsText(row.openWeights)}</td>
|
||||
<td>${knowledgeText(row.knowledge)}</td>
|
||||
<td>${escapeHtml(row.releaseDate)}</td>
|
||||
<td>${escapeHtml(row.lastUpdated)}</td>
|
||||
</tr>`;
|
||||
}
|
||||
|
||||
export function getLargestRow(rows: TableRow[]): TableRow {
|
||||
const worst: TableRow = {
|
||||
providerId: "", providerName: "", providerLogoSvg: "", modelId: "", modelName: "",
|
||||
toolCall: true, reasoning: true,
|
||||
input: [], output: [],
|
||||
contextLimit: 0, outputLimit: 0,
|
||||
structuredOutput: true, temperature: true, openWeights: false,
|
||||
releaseDate: "", lastUpdated: "",
|
||||
};
|
||||
|
||||
for (const row of rows) {
|
||||
if (row.providerName.length > worst.providerName.length) worst.providerName = row.providerName;
|
||||
if (row.modelName.length > worst.modelName.length) worst.modelName = row.modelName;
|
||||
if ((row.family ?? "").length > (worst.family ?? "").length) worst.family = row.family;
|
||||
if (row.providerId.length > worst.providerId.length) worst.providerId = row.providerId;
|
||||
if (row.modelId.length > worst.modelId.length) worst.modelId = row.modelId;
|
||||
if ((row.knowledge ?? "").length > (worst.knowledge ?? "").length) worst.knowledge = row.knowledge;
|
||||
if (row.releaseDate.length > worst.releaseDate.length) worst.releaseDate = row.releaseDate;
|
||||
if (row.lastUpdated.length > worst.lastUpdated.length) worst.lastUpdated = row.lastUpdated;
|
||||
if (row.input.length > worst.input.length) worst.input = row.input;
|
||||
if (row.output.length > worst.output.length) worst.output = row.output;
|
||||
|
||||
const costWider = (a: number | undefined, b: number | undefined) =>
|
||||
b !== undefined && (a === undefined || formatCost(b).length > formatCost(a).length);
|
||||
if (costWider(worst.inputCost, row.inputCost)) worst.inputCost = row.inputCost;
|
||||
if (costWider(worst.outputCost, row.outputCost)) worst.outputCost = row.outputCost;
|
||||
if (costWider(worst.reasoningCost, row.reasoningCost)) worst.reasoningCost = row.reasoningCost;
|
||||
if (costWider(worst.cacheReadCost, row.cacheReadCost)) worst.cacheReadCost = row.cacheReadCost;
|
||||
if (costWider(worst.cacheWriteCost, row.cacheWriteCost)) worst.cacheWriteCost = row.cacheWriteCost;
|
||||
if (costWider(worst.audioInputCost, row.audioInputCost)) worst.audioInputCost = row.audioInputCost;
|
||||
if (costWider(worst.audioOutputCost, row.audioOutputCost)) worst.audioOutputCost = row.audioOutputCost;
|
||||
|
||||
const numWider = (a: number | undefined, b: number | undefined) =>
|
||||
b !== undefined && (a === undefined || formatNumber(b).length > formatNumber(a).length);
|
||||
if (numWider(worst.contextLimit as number | undefined, row.contextLimit)) worst.contextLimit = row.contextLimit;
|
||||
if (numWider(worst.inputLimit, row.inputLimit)) worst.inputLimit = row.inputLimit;
|
||||
if (numWider(worst.outputLimit as number | undefined, row.outputLimit)) worst.outputLimit = row.outputLimit;
|
||||
}
|
||||
|
||||
return worst;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-3-5-haiku-20241022"
|
||||
family = "claude-haiku"
|
||||
release_date = "2024-10-22"
|
||||
last_updated = "2024-10-22"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-07"
|
||||
knowledge = "2024-07-31"
|
||||
|
||||
[cost]
|
||||
input = 0.800
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-3-5-haiku-latest"
|
||||
family = "claude-haiku"
|
||||
release_date = "2024-10-22"
|
||||
last_updated = "2024-10-22"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-07"
|
||||
knowledge = "2024-07-31"
|
||||
|
||||
[cost]
|
||||
input = 0.800
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-haiku-4-5-20251001"
|
||||
family = "claude-haiku"
|
||||
release_date = "2025-10-16"
|
||||
last_updated = "2025-10-16"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
knowledge = "2025-02-28"
|
||||
|
||||
[cost]
|
||||
input = 1.000
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-haiku-4-5"
|
||||
family = "claude-haiku"
|
||||
release_date = "2025-10-16"
|
||||
last_updated = "2025-10-16"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-02"
|
||||
knowledge = "2025-02-28"
|
||||
|
||||
[cost]
|
||||
input = 1.000
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "claude-opus-4-1-20250805"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-08-05"
|
||||
last_updated = "2025-08-05"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
knowledge = "2025-03-31"
|
||||
|
||||
[cost]
|
||||
input = 15.000
|
||||
@@ -17,5 +18,5 @@ context = 200_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "claude-opus-4-20250514"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-05-22"
|
||||
last_updated = "2025-05-22"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
knowledge = "2025-03-31"
|
||||
|
||||
[cost]
|
||||
input = 15.000
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-opus-4-5-20251101"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-11-25"
|
||||
last_updated = "2025-11-25"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
knowledge = "2025-03-31"
|
||||
|
||||
[cost]
|
||||
input = 5.000
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-opus-4-5"
|
||||
family = "claude-opus"
|
||||
release_date = "2025-11-25"
|
||||
last_updated = "2025-11-25"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
knowledge = "2025-03-31"
|
||||
|
||||
[cost]
|
||||
input = 5.000
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-opus-4-6"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-06"
|
||||
last_updated = "2026-03-13"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-05"
|
||||
knowledge = "2025-05-31"
|
||||
|
||||
[cost]
|
||||
input = 5.000
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "claude-opus-4-7"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-04-17"
|
||||
last_updated = "2026-04-17"
|
||||
attachment = true
|
||||
@@ -6,7 +7,7 @@ reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-05"
|
||||
knowledge = "2026-01-31"
|
||||
|
||||
[cost]
|
||||
input = 5.000
|
||||
@@ -21,7 +22,7 @@ cache_read = 1.000
|
||||
cache_write = 12.500
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "claude-sonnet-4-20250514"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2025-05-22"
|
||||
last_updated = "2025-05-22"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
knowledge = "2025-03-31"
|
||||
|
||||
[cost]
|
||||
input = 3.000
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "claude-sonnet-4-5-20250929"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-09-30"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
knowledge = "2025-07-31"
|
||||
|
||||
[cost]
|
||||
input = 3.000
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "claude-sonnet-4-5"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-09-30"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-07"
|
||||
knowledge = "2025-07-31"
|
||||
|
||||
[cost]
|
||||
input = 3.000
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "claude-sonnet-4-6"
|
||||
family = "claude-sonnet"
|
||||
release_date = "2026-02-18"
|
||||
last_updated = "2026-03-13"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-08"
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 3.000
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
name = "glm-4.5-air"
|
||||
family = "glm-air"
|
||||
release_date = "2025-07-29"
|
||||
last_updated = "2025-07-29"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
open_weights = true
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
@@ -13,7 +14,7 @@ input = 0.1143
|
||||
output = 0.286
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
context = 131_072
|
||||
output = 98_304
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "glm-4.5-airx"
|
||||
family = "glm"
|
||||
release_date = "2025-07-29"
|
||||
last_updated = "2025-07-29"
|
||||
attachment = false
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "glm-4.5-x"
|
||||
family = "glm"
|
||||
release_date = "2025-07-29"
|
||||
last_updated = "2025-07-29"
|
||||
attachment = false
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
name = "GLM-4.5"
|
||||
family = "glm"
|
||||
release_date = "2025-07-29"
|
||||
last_updated = "2025-07-29"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
open_weights = true
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
input = 0.286
|
||||
output = 1.142
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
context = 131_072
|
||||
output = 98_304
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "GLM-4.5V"
|
||||
family = "glm"
|
||||
release_date = "2025-08-12"
|
||||
last_updated = "2025-08-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
open_weights = true
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
input = 0.290
|
||||
@@ -17,5 +18,5 @@ context = 64_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,19 +1,20 @@
|
||||
name = "glm-4.6"
|
||||
family = "glm"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-09-30"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
open_weights = true
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
input = 0.286
|
||||
output = 1.142
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
context = 204_800
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "GLM-4.6V"
|
||||
family = "glm"
|
||||
release_date = "2025-12-08"
|
||||
last_updated = "2025-12-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-03"
|
||||
open_weights = true
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
input = 0.145
|
||||
@@ -17,5 +18,5 @@ context = 128_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,11 +1,12 @@
|
||||
name = "glm-4.7-flashx"
|
||||
family = "glm-flash"
|
||||
release_date = "2026-01-20"
|
||||
last_updated = "2026-01-20"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
open_weights = true
|
||||
knowledge = "2025-04"
|
||||
|
||||
[cost]
|
||||
|
||||
@@ -1,19 +1,23 @@
|
||||
name = "glm-4.7"
|
||||
family = "glm"
|
||||
release_date = "2025-12-22"
|
||||
last_updated = "2025-12-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
knowledge = "2025-06"
|
||||
open_weights = true
|
||||
knowledge = "2025-04"
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.286
|
||||
output = 1.142
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
context = 204_800
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
name = "glm-5-turbo"
|
||||
family = "glm"
|
||||
release_date = "2026-03-16"
|
||||
last_updated = "2026-03-16"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.720
|
||||
output = 3.200
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
name = "glm-5.1"
|
||||
family = "glm"
|
||||
release_date = "2026-04-10"
|
||||
last_updated = "2026-04-10"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.860
|
||||
output = 3.500
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
name = "glm-5"
|
||||
family = "glm"
|
||||
release_date = "2026-02-12"
|
||||
last_updated = "2026-02-12"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.600
|
||||
output = 2.600
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
context = 204_800
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "glm-5v-turbo"
|
||||
name = "GLM-5V-Turbo"
|
||||
family = "glm"
|
||||
release_date = "2026-04-02"
|
||||
last_updated = "2026-04-02"
|
||||
attachment = true
|
||||
@@ -7,6 +8,9 @@ temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.720
|
||||
output = 3.200
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name = "glm-for-coding"
|
||||
family = "glm"
|
||||
release_date = "2025-09-30"
|
||||
last_updated = "2025-09-30"
|
||||
attachment = false
|
||||
|
||||
@@ -6,6 +6,7 @@ attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-04"
|
||||
|
||||
@@ -14,9 +15,9 @@ input = 0.400
|
||||
output = 1.600
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
context = 1_047_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -6,6 +6,7 @@ attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-04"
|
||||
|
||||
@@ -14,7 +15,7 @@ input = 0.100
|
||||
output = 0.400
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
context = 1_047_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -6,6 +6,7 @@ attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-04"
|
||||
|
||||
@@ -14,9 +15,9 @@ input = 2.000
|
||||
output = 8.000
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
context = 1_047_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -6,6 +6,7 @@ attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2023-09"
|
||||
|
||||
@@ -18,5 +19,5 @@ context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5-mini"
|
||||
family = "gpt-mini"
|
||||
release_date = "2025-08-08"
|
||||
last_updated = "2025-08-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
knowledge = "2024-05-30"
|
||||
|
||||
[cost]
|
||||
input = 0.250
|
||||
@@ -14,6 +16,7 @@ output = 2.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5-pro"
|
||||
family = "gpt-pro"
|
||||
release_date = "2025-10-08"
|
||||
last_updated = "2025-10-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
knowledge = "2024-09-30"
|
||||
|
||||
[cost]
|
||||
input = 15.000
|
||||
@@ -14,6 +16,7 @@ output = 120.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 272_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.1-chat-latest"
|
||||
family = "gpt-codex"
|
||||
release_date = "2025-11-14"
|
||||
last_updated = "2025-11-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
knowledge = "2024-09-30"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.1"
|
||||
family = "gpt"
|
||||
release_date = "2025-11-14"
|
||||
last_updated = "2025-11-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
knowledge = "2024-09-30"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
@@ -14,6 +16,7 @@ output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.2-chat-latest"
|
||||
family = "gpt-codex"
|
||||
release_date = "2025-12-12"
|
||||
last_updated = "2025-12-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 1.750
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.2"
|
||||
family = "gpt"
|
||||
release_date = "2025-12-12"
|
||||
last_updated = "2025-12-12"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 1.750
|
||||
@@ -14,6 +16,7 @@ output = 14.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.4-mini-2026-03-17"
|
||||
family = "gpt-mini"
|
||||
release_date = "2026-03-19"
|
||||
last_updated = "2026-03-19"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2025-08"
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 0.750
|
||||
@@ -14,6 +16,7 @@ output = 4.500
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.4-mini"
|
||||
family = "gpt-mini"
|
||||
release_date = "2026-03-19"
|
||||
last_updated = "2026-03-19"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2025-08"
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 0.750
|
||||
@@ -14,6 +16,7 @@ output = 4.500
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.4-nano-2026-03-17"
|
||||
family = "gpt-nano"
|
||||
release_date = "2026-03-19"
|
||||
last_updated = "2026-03-19"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2025-08"
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 0.200
|
||||
@@ -14,6 +16,7 @@ output = 1.250
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5.4-nano"
|
||||
family = "gpt-nano"
|
||||
release_date = "2026-03-19"
|
||||
last_updated = "2026-03-19"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2025-08"
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 0.200
|
||||
@@ -14,6 +16,7 @@ output = 1.250
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
name = "gpt-5.4-pro"
|
||||
family = "gpt-pro"
|
||||
release_date = "2026-03-05"
|
||||
last_updated = "2026-03-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
open_weights = false
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 30.000
|
||||
output = 180.000
|
||||
cache_read = 0
|
||||
cache_write = 0
|
||||
|
||||
[cost.context_over_200k]
|
||||
input = 60.000
|
||||
output = 270.000
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
input = 922_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,30 @@
|
||||
name = "gpt-5.4"
|
||||
family = "gpt"
|
||||
release_date = "2026-03-05"
|
||||
last_updated = "2026-03-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2025-08-31"
|
||||
|
||||
[cost]
|
||||
input = 2.500
|
||||
output = 15.000
|
||||
cache_read = 0.250
|
||||
cache_write = 0
|
||||
|
||||
[cost.context_over_200k]
|
||||
input = 5.000
|
||||
output = 22.500
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
input = 922_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,12 +1,14 @@
|
||||
name = "gpt-5"
|
||||
family = "gpt"
|
||||
release_date = "2025-08-08"
|
||||
last_updated = "2025-08-08"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
knowledge = "2024-10"
|
||||
knowledge = "2024-09-30"
|
||||
|
||||
[cost]
|
||||
input = 1.250
|
||||
@@ -14,6 +16,7 @@ output = 10.000
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<svg viewBox="0 0 220 32" xmlns="http://www.w3.org/2000/svg">
|
||||
<text x="0" y="24" fill="currentColor">
|
||||
<tspan font-size="24">Abliteration</tspan>
|
||||
<tspan dx="8" dy="2" font-size="12" fill-opacity="0.6">.ai</tspan>
|
||||
</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 239 B |
@@ -0,0 +1,22 @@
|
||||
name = "Abliterated Model"
|
||||
release_date = "2026-01-06"
|
||||
last_updated = "2026-01-06"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
temperature = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 3.00
|
||||
output = 3.00
|
||||
|
||||
[limit]
|
||||
context = 150_000
|
||||
input = 150_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,5 @@
|
||||
name = "abliteration.ai"
|
||||
env = ["ABLIT_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
api = "https://api.abliteration.ai/v1"
|
||||
doc = "https://docs.abliteration.ai/models"
|
||||
@@ -1,7 +1,7 @@
|
||||
name = "Claude Opus 4.6 Think"
|
||||
name = "Claude Opus 4.6"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-02-05"
|
||||
last_updated = "2026-03-13"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
@@ -10,20 +10,14 @@ knowledge = "2025-05-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 25.00
|
||||
cache_read = 0.30
|
||||
cache_write = 3.75
|
||||
|
||||
[cost.context_over_200k]
|
||||
input = 6.00
|
||||
output = 22.00
|
||||
cache_read = 0.60
|
||||
cache_write = 7.50
|
||||
input = 5
|
||||
output = 25
|
||||
cache_read = 0.5
|
||||
cache_write = 6.25
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 128_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name = "Claude Opus 4.6"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-02-05"
|
||||
last_updated = "2026-03-13"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
@@ -10,19 +10,13 @@ knowledge = "2025-05-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 25.00
|
||||
cache_read = 0.30
|
||||
cache_write = 3.75
|
||||
|
||||
[cost.context_over_200k]
|
||||
input = 6.00
|
||||
output = 22.00
|
||||
cache_read = 0.60
|
||||
cache_write = 7.50
|
||||
input = 5
|
||||
output = 25
|
||||
cache_read = 0.5
|
||||
cache_write = 6.25
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
name = "Claude Opus 4.7"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-04-16"
|
||||
last_updated = "2026-04-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
knowledge = "2026-01-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
output = 25
|
||||
cache_read = 0.5
|
||||
cache_write = 6.25
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,28 +0,0 @@
|
||||
name = "Coding GLM 4.7 Free"
|
||||
family = "glm"
|
||||
release_date = "2025-12-22"
|
||||
last_updated = "2025-12-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_details"
|
||||
|
||||
[cost]
|
||||
input = 0
|
||||
output = 0
|
||||
cache_read = 0
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 204800
|
||||
output = 131072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
name = "Coding-GLM-4.7"
|
||||
family = "glm"
|
||||
release_date = "2025-12-22"
|
||||
last_updated = "2025-12-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_details"
|
||||
|
||||
[cost]
|
||||
input = 0.06
|
||||
output = 0.22
|
||||
cache_read = 0.01
|
||||
|
||||
[limit]
|
||||
context = 204800
|
||||
output = 131072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
name = "Coding-MiniMax-M2.7-Free"
|
||||
family = "minimax"
|
||||
release_date = "2026-03-18"
|
||||
last_updated = "2026-03-18"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0
|
||||
output = 0
|
||||
|
||||
[limit]
|
||||
context = 204_800
|
||||
output = 13_100
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "DeepSeek-V3.2-Fast"
|
||||
family = "deepseek"
|
||||
release_date = "2025-12-01"
|
||||
last_updated = "2025-12-01"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
knowledge = "2024-07"
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 1.10
|
||||
output = 3.29
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,27 @@
|
||||
name = "DeepSeek V4 Flash Think"
|
||||
family = "deepseek"
|
||||
release_date = "2026-04-24"
|
||||
last_updated = "2026-04-24"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-05"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.154
|
||||
output = 0.308
|
||||
cache_read = 0.0308
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 384_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,27 @@
|
||||
name = "DeepSeek V4 Flash"
|
||||
family = "deepseek-flash"
|
||||
release_date = "2026-04-24"
|
||||
last_updated = "2026-04-24"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-05"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.154
|
||||
output = 0.308
|
||||
cache_read = 0.0308
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 384_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,27 @@
|
||||
name = "DeepSeek V4 Pro"
|
||||
family = "deepseek-thinking"
|
||||
release_date = "2026-04-24"
|
||||
last_updated = "2026-04-24"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-05"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.478
|
||||
output = 0.956
|
||||
cache_read = 0.004302
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 384_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +1,24 @@
|
||||
name = "Gemini 2.5 Flash"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-09-15"
|
||||
last_updated = "2025-09-15"
|
||||
release_date = "2025-03-20"
|
||||
last_updated = "2025-06-05"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2025-04"
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.075
|
||||
output = 0.30
|
||||
cache_read = 0.02
|
||||
input = 0.3
|
||||
output = 2.499
|
||||
cache_read = 0.03
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_000
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +1,24 @@
|
||||
name = "Gemini 2.5 Pro"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-09-15"
|
||||
last_updated = "2025-09-15"
|
||||
release_date = "2025-03-20"
|
||||
last_updated = "2025-06-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2025-04"
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 5.00
|
||||
cache_read = 0.31
|
||||
output = 10
|
||||
cache_read = 0.125
|
||||
|
||||
[limit]
|
||||
context = 2_000_000
|
||||
output = 65_000
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,24 @@
|
||||
name = "Gemini 3 Flash Preview"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-12-17"
|
||||
last_updated = "2025-12-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
output = 3
|
||||
cache_read = 0.05
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "Gemini 3 Pro Preview Search"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-11-19"
|
||||
last_updated = "2025-11-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-11"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 2.00
|
||||
output = 12.00
|
||||
cache_read = 0.50
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "Gemini 3 Pro Preview"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-11-19"
|
||||
last_updated = "2025-11-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-11"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 2.00
|
||||
output = 12.00
|
||||
cache_read = 0.50
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,24 @@
|
||||
name = "Gemini 3.1 Flash Lite Preview"
|
||||
family = "gemini-flash-lite"
|
||||
release_date = "2026-03-03"
|
||||
last_updated = "2026-03-03"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.25
|
||||
output = 1.5
|
||||
cache_read = 0.25
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
+6
-6
@@ -1,7 +1,7 @@
|
||||
name = "Gemini 3 Pro Preview"
|
||||
name = "Gemini 3.1 Pro Preview"
|
||||
family = "gemini-pro"
|
||||
release_date = "2025-11-18"
|
||||
last_updated = "2025-11-18"
|
||||
release_date = "2026-02-19"
|
||||
last_updated = "2026-02-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
@@ -16,9 +16,9 @@ output = 12
|
||||
cache_read = 0.2
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 64_000
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "GLM-4.6V"
|
||||
family = "glm"
|
||||
release_date = "2025-12-08"
|
||||
last_updated = "2025-12-08"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.41
|
||||
|
||||
[limit]
|
||||
context = 128000
|
||||
output = 32768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,27 +0,0 @@
|
||||
name = "GLM-4.7"
|
||||
family = "glm"
|
||||
release_date = "2025-12-22"
|
||||
last_updated = "2025-12-22"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_details"
|
||||
|
||||
[cost]
|
||||
input = 0.27
|
||||
output = 1.10
|
||||
cache_read = 0.548
|
||||
|
||||
[limit]
|
||||
context = 204800
|
||||
output = 131072
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
@@ -1,23 +1,25 @@
|
||||
name = "GLM-5.1"
|
||||
family = "glm"
|
||||
release_date = "2026-04-11"
|
||||
last_updated = "2026-04-11"
|
||||
release_date = "2026-03-27"
|
||||
last_updated = "2026-03-27"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.84
|
||||
input = 0.845
|
||||
output = 3.38
|
||||
cache_read = 0.183112
|
||||
|
||||
[limit]
|
||||
context = 200000
|
||||
output = 128000
|
||||
context = 200_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -6,18 +6,19 @@ attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.88
|
||||
output = 2.82
|
||||
output = 2.816
|
||||
cache_read = 0.176
|
||||
|
||||
[limit]
|
||||
context = 204800
|
||||
output = 131072
|
||||
context = 202_752
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "GPT-4.1 nano"
|
||||
family = "gpt-nano"
|
||||
release_date = "2025-04-14"
|
||||
last_updated = "2025-04-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-04"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.10
|
||||
output = 0.40
|
||||
cache_read = 0.03
|
||||
|
||||
[limit]
|
||||
context = 1_047_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "GPT-4o"
|
||||
family = "gpt"
|
||||
release_date = "2024-05-13"
|
||||
last_updated = "2024-08-06"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2023-09"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 2.50
|
||||
output = 10.00
|
||||
cache_read = 1.25
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "GPT-5-Nano"
|
||||
family = "gpt-nano"
|
||||
release_date = "2025-09-15"
|
||||
last_updated = "2025-09-15"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-09-30"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.50
|
||||
output = 2.00
|
||||
cache_read = 0.25
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "GPT-5.1-Codex-Max"
|
||||
release_date = "2025-11-13"
|
||||
last_updated = "2025-11-13"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
knowledge = "2024-09-30"
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 10.00
|
||||
cache_read = 0.125
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +1,24 @@
|
||||
name = "GPT-5.1 Codex Mini"
|
||||
name = "GPT-5.1 Codex mini"
|
||||
family = "gpt-codex"
|
||||
release_date = "2025-11-15"
|
||||
last_updated = "2025-11-15"
|
||||
release_date = "2025-11-13"
|
||||
last_updated = "2025-11-13"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
knowledge = "2025-11"
|
||||
structured_output = true
|
||||
knowledge = "2024-09-30"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.25
|
||||
output = 2.00
|
||||
cache_read = 0.03
|
||||
output = 2
|
||||
cache_read = 0.025
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
input = 272_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
name = "GPT-5.1 Codex"
|
||||
family = "gpt-codex"
|
||||
release_date = "2025-11-15"
|
||||
last_updated = "2025-11-15"
|
||||
release_date = "2025-11-13"
|
||||
last_updated = "2025-11-13"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
knowledge = "2025-11"
|
||||
structured_output = true
|
||||
knowledge = "2024-09-30"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 10.00
|
||||
cache_read = 0.13
|
||||
output = 10
|
||||
cache_read = 0.125
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
input = 272_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
name = "GPT-5.3 Codex"
|
||||
family = "gpt-codex"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-02-05"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-08-31"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.75
|
||||
output = 14
|
||||
cache_read = 0.175
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
input = 272_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,24 @@
|
||||
name = "GPT-5.5"
|
||||
family = "gpt"
|
||||
release_date = "2026-04-23"
|
||||
last_updated = "2026-04-23"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-12-01"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
output = 30
|
||||
cache_read = 0.5
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +0,0 @@
|
||||
name = "GPT-5"
|
||||
family = "gpt"
|
||||
release_date = "2025-09-15"
|
||||
last_updated = "2025-09-15"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2024-09-30"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 20.00
|
||||
cache_read = 2.50
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,12 +1,13 @@
|
||||
name = "Kimi K2.5"
|
||||
family = "kimi"
|
||||
release_date = "2026-01-27"
|
||||
last_updated = "2026-01-27"
|
||||
attachment = true
|
||||
family = "kimi-k2.5"
|
||||
release_date = "2026-01"
|
||||
last_updated = "2026-01"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
knowledge = "2025-07"
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
@@ -14,14 +15,13 @@ field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.6
|
||||
output = 3.0
|
||||
cache_read = 0.1
|
||||
output = 3
|
||||
cache_read = 0.105
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
context = 256_000
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
name = "Kimi K2.6"
|
||||
family = "kimi-k2.6"
|
||||
release_date = "2026-04-21"
|
||||
last_updated = "2026-04-21"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2025-01"
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.95
|
||||
output = 3.9995
|
||||
cache_read = 0.160835
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,25 +1,24 @@
|
||||
name = "MiniMax M2.1"
|
||||
name = "MiniMax-M2.1"
|
||||
family = "minimax"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
tool_call = true
|
||||
temperature = true
|
||||
release_date = "2025-12-23"
|
||||
last_updated = "2025-12-23"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_details"
|
||||
|
||||
[cost]
|
||||
input = 0.29
|
||||
output = 1.15
|
||||
input = 0.288
|
||||
output = 1.152
|
||||
|
||||
[limit]
|
||||
context = 204_800
|
||||
output = 131_072
|
||||
output = 192_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
name = "MiniMax-M2.7"
|
||||
family = "minimax"
|
||||
release_date = "2026-03-18"
|
||||
last_updated = "2026-03-18"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.2958
|
||||
output = 1.1832
|
||||
cache_read = 0.05916
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,23 +1,24 @@
|
||||
name = "o4-mini"
|
||||
family = "o-mini"
|
||||
release_date = "2025-09-15"
|
||||
last_updated = "2025-09-15"
|
||||
attachment = false
|
||||
release_date = "2025-04-16"
|
||||
last_updated = "2025-04-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
knowledge = "2024-09"
|
||||
tool_call = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2024-05"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 1.50
|
||||
output = 6.00
|
||||
cache_read = 0.75
|
||||
input = 1.1
|
||||
output = 4.4
|
||||
cache_read = 0.275
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
output = 65_536
|
||||
output = 100_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,21 +0,0 @@
|
||||
name = "Qwen3 Coder 480B A35B Instruct"
|
||||
family = "qwen"
|
||||
release_date = "2025-08-01"
|
||||
last_updated = "2025-08-01"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.82
|
||||
output = 3.29
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 131_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +1,23 @@
|
||||
name = "Qwen3 Coder Next"
|
||||
name = "Qwen3 Coder Plus"
|
||||
family = "qwen"
|
||||
release_date = "2025-07-23"
|
||||
last_updated = "2025-07-23"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
temperature = true
|
||||
release_date = "2026-02-04"
|
||||
last_updated = "2026-02-04"
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.55
|
||||
input = 0.137
|
||||
output = 0.548
|
||||
cache_read = 0.137
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
context = 2_000_000
|
||||
output = 64_000
|
||||
input = 262_144
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -5,17 +5,18 @@ last_updated = "2025-09-23"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2025-04"
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.34
|
||||
output = 1.37
|
||||
input = 0.34246
|
||||
output = 1.36984
|
||||
cache_read = 0.34246
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 65_536
|
||||
context = 252_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
name = "Qwen 3.5 Plus"
|
||||
name = "Qwen3.5 Plus"
|
||||
family = "qwen"
|
||||
release_date = "2026-02-16"
|
||||
last_updated = "2026-02-16"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2025-04"
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.11
|
||||
output = 0.66
|
||||
input = 0.1096
|
||||
output = 0.6576
|
||||
cache_read = 0.01096
|
||||
cache_write = 0.137
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
context = 991_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
name = "Qwen3.6 Plus"
|
||||
family = "qwen"
|
||||
release_date = "2026-04-02"
|
||||
last_updated = "2026-04-02"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2025-04"
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.169
|
||||
output = 1.014
|
||||
cache_read = 0.0169
|
||||
cache_write = 0.21125
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,2 @@
|
||||
[extends]
|
||||
from = "deepseek/deepseek-v4-flash"
|
||||
@@ -0,0 +1,2 @@
|
||||
[extends]
|
||||
from = "deepseek/deepseek-v4-pro"
|
||||
Loaded 100 of 572 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user