Compare commits
444
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77f42b5912 | ||
|
|
e644b5de83 | ||
|
|
41414897a3 | ||
|
|
56686cdda6 | ||
|
|
675e65417f | ||
|
|
cf46b400dd | ||
|
|
16c0e329e2 | ||
|
|
a63af7da95 | ||
|
|
1812b10f71 | ||
|
|
7d7b9053ac | ||
|
|
7138e748ef | ||
|
|
7d87da885e | ||
|
|
7c49a655cf | ||
|
|
f2a80d69d9 | ||
|
|
4c9f3ef677 | ||
|
|
c71de45508 | ||
|
|
c356460a71 | ||
|
|
c61a0f9163 | ||
|
|
180a9a5d2a | ||
|
|
dd4571595a | ||
|
|
72749afeb6 | ||
|
|
2bf7d0ce8d | ||
|
|
bc7639a3bd | ||
|
|
fff8e0169f | ||
|
|
97af27c2d9 | ||
|
|
7a344d9155 | ||
|
|
4b96a909c3 | ||
|
|
0bab3e10b7 | ||
|
|
91eee91ce6 | ||
|
|
01737a716a | ||
|
|
93546d8e0a | ||
|
|
974fa55ea5 | ||
|
|
60129bebc6 | ||
|
|
d4189e71d9 | ||
|
|
956d3ef2d6 | ||
|
|
fb2a2353b3 | ||
|
|
b9a7514100 | ||
|
|
9f1772cc66 | ||
|
|
8657ff5d23 | ||
|
|
3e786e8339 | ||
|
|
2698c88c5f | ||
|
|
84d0f286b6 | ||
|
|
022185b0fc | ||
|
|
c5962a12f7 | ||
|
|
1d7c74d2db | ||
|
|
2212a7034e | ||
|
|
9f07595945 | ||
|
|
1b61b6d90a | ||
|
|
1b5e70c69c | ||
|
|
6a431dd1dd | ||
|
|
a64f2d2cb5 | ||
|
|
8ad2931241 | ||
|
|
2673c42681 | ||
|
|
ca21350243 | ||
|
|
9adacdb03f | ||
|
|
3bc0c6ddf7 | ||
|
|
6532730857 | ||
|
|
bb22b6c979 | ||
|
|
0795b333b7 | ||
|
|
3c5c10dd7a | ||
|
|
0e66972fc6 | ||
|
|
5b615d271d | ||
|
|
c7e82182af | ||
|
|
98f8abc6d9 | ||
|
|
66dad824a7 | ||
|
|
7a54b684cc | ||
|
|
8a45b33246 | ||
|
|
39dd66c818 | ||
|
|
03ca9dfe5f | ||
|
|
d395d4fa5c | ||
|
|
ab98fd3a72 | ||
|
|
41aed22b78 | ||
|
|
a92ce1c6b8 | ||
|
|
1e752d78d7 | ||
|
|
c6b8283234 | ||
|
|
36ee4db354 | ||
|
|
a31cc6dcbd | ||
|
|
eb199f20a2 | ||
|
|
ef75e88af5 | ||
|
|
2f0d4cb935 | ||
|
|
a5631d2abc | ||
|
|
195e59863b | ||
|
|
48c0e324f5 | ||
|
|
f51ef90caf | ||
|
|
eec5e00e4f | ||
|
|
128ab75fbe | ||
|
|
4800af7a79 | ||
|
|
fa0ab66970 | ||
|
|
3dbcaf3b6b | ||
|
|
5cb56b71ca | ||
|
|
b7888f028a | ||
|
|
6193ecf774 | ||
|
|
3c5e3ed70b | ||
|
|
7eaf6972b2 | ||
|
|
bf1a01ec85 | ||
|
|
112f21b145 | ||
|
|
c27b2ce71d | ||
|
|
800bbc1253 | ||
|
|
7574a882fe | ||
|
|
0675cf13ff | ||
|
|
3b2096eb78 | ||
|
|
a049c7036b | ||
|
|
35709398f3 | ||
|
|
24abede254 | ||
|
|
ac5223544c | ||
|
|
8ed112a0d7 | ||
|
|
b9a68fdb79 | ||
|
|
c5a634a922 | ||
|
|
a0a26e2aef | ||
|
|
286bd0fc46 | ||
|
|
5ce4218fdd | ||
|
|
6deb0f9b62 | ||
|
|
79bcc62824 | ||
|
|
fe316dd6c2 | ||
|
|
574b85ba77 | ||
|
|
6dcf732d1f | ||
|
|
417d4fc160 | ||
|
|
85aef3a05e | ||
|
|
89183a9646 | ||
|
|
0dcf5c4600 | ||
|
|
f6ac2f0457 | ||
|
|
1d1282ffb8 | ||
|
|
9e26ded0d1 | ||
|
|
ccd55d46e8 | ||
|
|
b25ad5c651 | ||
|
|
d0109ff70b | ||
|
|
3d027d7d5f | ||
|
|
295a483511 | ||
|
|
4011599eb1 | ||
|
|
c7bf39e4e9 | ||
|
|
a4665d1b88 | ||
|
|
cf27076531 | ||
|
|
008a6b56ba | ||
|
|
9d1a6525c1 | ||
|
|
c094b61135 | ||
|
|
3dc53bfb45 | ||
|
|
7fbc892898 | ||
|
|
cb56524aa6 | ||
|
|
d15aa5a09d | ||
|
|
c67a5bba05 | ||
|
|
e5931b2156 | ||
|
|
818b0516bd | ||
|
|
52db94a899 | ||
|
|
7d7142b080 | ||
|
|
a0c8c6b389 | ||
|
|
a0bb3cbda6 | ||
|
|
a06cd852c9 | ||
|
|
eb442c24da | ||
|
|
c2effa3c25 | ||
|
|
9cfe6ecfb7 | ||
|
|
e482704aa5 | ||
|
|
a582dcd4a5 | ||
|
|
df12b8724a | ||
|
|
b4ece56d70 | ||
|
|
5de41e0e5f | ||
|
|
d667b63b7f | ||
|
|
976ca20ebf | ||
|
|
8284b61189 | ||
|
|
5d32b5385f | ||
|
|
2aaff449a6 | ||
|
|
4975b7fb48 | ||
|
|
1dd66c87b2 | ||
|
|
c79b45079c | ||
|
|
d7fd1e1eb9 | ||
|
|
0e94e0644b | ||
|
|
0d5594e06a | ||
|
|
9aec93e3e2 | ||
|
|
bfffcac592 | ||
|
|
2953fed88b | ||
|
|
dc26f9bc5f | ||
|
|
507a68d0a1 | ||
|
|
f7a39e320e | ||
|
|
c3de500b5d | ||
|
|
d479eebb47 | ||
|
|
c8f0d25871 | ||
|
|
d0e10d7d44 | ||
|
|
b91f684b9b | ||
|
|
cee485c1c4 | ||
|
|
4225a7adda | ||
|
|
725eea1b25 | ||
|
|
a99e8b188f | ||
|
|
af5c74ff69 | ||
|
|
14b8cd5612 | ||
|
|
1d1ef59cd1 | ||
|
|
7d43c564b0 | ||
|
|
c0cfed9371 | ||
|
|
bed4bc4f3d | ||
|
|
97f64dffe9 | ||
|
|
7eef359d6b | ||
|
|
b463ea1300 | ||
|
|
6c9e0b6af0 | ||
|
|
5e2483bb19 | ||
|
|
d2bb32ceb3 | ||
|
|
293903e820 | ||
|
|
1d79f0aef8 | ||
|
|
1f0c79af71 | ||
|
|
f054b1f447 | ||
|
|
0863d10ca0 | ||
|
|
4d9f510e34 | ||
|
|
fe8b0b687d | ||
|
|
80e891a596 | ||
|
|
d61dc47fe4 | ||
|
|
7a084fd495 | ||
|
|
779118c76d | ||
|
|
8f3b8f72f0 | ||
|
|
dc1260c4b9 | ||
|
|
ee422deff9 | ||
|
|
3b11700e11 | ||
|
|
fb7af6b667 | ||
|
|
b059b702b8 | ||
|
|
0000659c57 | ||
|
|
a2087ac20f | ||
|
|
0656114326 | ||
|
|
b49a4959dc | ||
|
|
a0bcde206a | ||
|
|
cc3096f9fe | ||
|
|
a82eee57f1 | ||
|
|
f0981b8e0c | ||
|
|
e205675103 | ||
|
|
e7391fee74 | ||
|
|
6fa1c663a8 | ||
|
|
288fc15ffb | ||
|
|
184e62b2ff | ||
|
|
b1554e7b25 | ||
|
|
ada66871e8 | ||
|
|
01462cb929 | ||
|
|
3e69a442ff | ||
|
|
b11f2273e2 | ||
|
|
d714ac65fb | ||
|
|
62b2b3da43 | ||
|
|
e6caca99c8 | ||
|
|
ae431b6535 | ||
|
|
4ade647a05 | ||
|
|
4cc0676f65 | ||
|
|
623d98c04f | ||
|
|
cbb3cc97eb | ||
|
|
0e706c9afa | ||
|
|
8b25c58cec | ||
|
|
e5be40b88b | ||
|
|
13da13087e | ||
|
|
ccb24d36ce | ||
|
|
01aa0cdfab | ||
|
|
e1f1d82f41 | ||
|
|
8b8cd78663 | ||
|
|
12c9f299cd | ||
|
|
bbaff1dbd9 | ||
|
|
a3c968e9a4 | ||
|
|
f2fcd1c329 | ||
|
|
750c85633e | ||
|
|
f79cd8b647 | ||
|
|
14ea63d06c | ||
|
|
8ade7d8d24 | ||
|
|
3c3c09cfe0 | ||
|
|
04990b4e7d | ||
|
|
4027cf3610 | ||
|
|
5885a6e726 | ||
|
|
324e7f0de6 | ||
|
|
aac99b72e1 | ||
|
|
524524e488 | ||
|
|
fdddf34d92 | ||
|
|
867fd31dc0 | ||
|
|
bf55e760ac | ||
|
|
a5e419dacf | ||
|
|
c67e12e135 | ||
|
|
51a36c8398 | ||
|
|
6a6acfb4b1 | ||
|
|
e793b58791 | ||
|
|
44cb2a2b2d | ||
|
|
cecf31aa5b | ||
|
|
83d23e7fbd | ||
|
|
50bb0a0631 | ||
|
|
e61cfe4098 | ||
|
|
e191ef168d | ||
|
|
4a665d0b3a | ||
|
|
64cd156a32 | ||
|
|
275ae965fb | ||
|
|
d27836b6d5 | ||
|
|
cb68b9263b | ||
|
|
1652c012ac | ||
|
|
e6fae89eb8 | ||
|
|
fe9a8fcb4a | ||
|
|
7bec16398e | ||
|
|
0b877eb3c0 | ||
|
|
84bd139dc5 | ||
|
|
9397edde73 | ||
|
|
f87e902b3b | ||
|
|
668a1c4360 | ||
|
|
b9d58009d8 | ||
|
|
d8f677ad47 | ||
|
|
5bf1080088 | ||
|
|
5806a94836 | ||
|
|
66dcd837fe | ||
|
|
f08df784b5 | ||
|
|
b875d58989 | ||
|
|
ec996a0c4a | ||
|
|
4445552c8a | ||
|
|
cfce596e3c | ||
|
|
774468a7a7 | ||
|
|
b4b18ced31 | ||
|
|
18f001fba0 | ||
|
|
f1e7b994a0 | ||
|
|
c059edc1a4 | ||
|
|
6e87b3d24c | ||
|
|
2e09cb410f | ||
|
|
fa41065a7d | ||
|
|
ec47f923cb | ||
|
|
ee07b91591 | ||
|
|
cd2f6ac132 | ||
|
|
8613f07b5f | ||
|
|
0c3e1b3203 | ||
|
|
6cbc76a67e | ||
|
|
79c868244e | ||
|
|
6111f36aa7 | ||
|
|
5e9e9ac0bb | ||
|
|
41cf5aaf1e | ||
|
|
c15ccd0a77 | ||
|
|
9d36c852d3 | ||
|
|
04ae13714e | ||
|
|
8bfa558700 | ||
|
|
66acdcc034 | ||
|
|
a909f61275 | ||
|
|
f8b382bb01 | ||
|
|
98975461b7 | ||
|
|
c322362a0f | ||
|
|
ca61e9ea27 | ||
|
|
ac05c4ea01 | ||
|
|
f74e16edcd | ||
|
|
5a21c5d14e | ||
|
|
71ce8da88e | ||
|
|
6af0231ae6 | ||
|
|
01e5ea975e | ||
|
|
a08b39d342 | ||
|
|
929864004e | ||
|
|
5dd5de679e | ||
|
|
c3a6f74ec1 | ||
|
|
83ffebbca7 | ||
|
|
25672f0ba7 | ||
|
|
4198dedd57 | ||
|
|
174a76c3a0 | ||
|
|
4c8a937d43 | ||
|
|
2995194f70 | ||
|
|
b9b230fbf4 | ||
|
|
7baf2c0970 | ||
|
|
f5fe2210c8 | ||
|
|
6e4a1e55d8 | ||
|
|
941d97c41d | ||
|
|
4c419b3a94 | ||
|
|
85b0c61825 | ||
|
|
fa5d89ef86 | ||
|
|
d97ea65eb2 | ||
|
|
0b27b2f87d | ||
|
|
c777f40587 | ||
|
|
02c592bd8c | ||
|
|
b96653aa5c | ||
|
|
128398d56b | ||
|
|
b296e9819a | ||
|
|
4628979d6b | ||
|
|
2cd05cd265 | ||
|
|
c3ede089ed | ||
|
|
69b443858a | ||
|
|
c11840c407 | ||
|
|
a820277894 | ||
|
|
996ad32904 | ||
|
|
af4e0adee1 | ||
|
|
d099e824ac | ||
|
|
e487ef96d3 | ||
|
|
70025d73bb | ||
|
|
57e8b1acfa | ||
|
|
c9a85bac60 | ||
|
|
65f7b05891 | ||
|
|
6093568196 | ||
|
|
cf2d9c134f | ||
|
|
c2fb688fe8 | ||
|
|
b868e9c479 | ||
|
|
8eeea3e02a | ||
|
|
5f00eb57d1 | ||
|
|
628d9e3170 | ||
|
|
f15087d8ed | ||
|
|
c252d86a33 | ||
|
|
7463396925 | ||
|
|
a84c8d86e6 | ||
|
|
ca216d4aa0 | ||
|
|
c74a7d5540 | ||
|
|
b5bec57ebd | ||
|
|
f55836ab46 | ||
|
|
8831574def | ||
|
|
e03f2e3d38 | ||
|
|
49bcef0721 | ||
|
|
1b89542222 | ||
|
|
b64eb07ba9 | ||
|
|
3c7a10cd70 | ||
|
|
cb70234277 | ||
|
|
ae015bbecb | ||
|
|
7422d6fa48 | ||
|
|
21585db20a | ||
|
|
d6e0eabbf8 | ||
|
|
175bd75389 | ||
|
|
fb8f07534e | ||
|
|
4b50b0d338 | ||
|
|
0b04d0f2af | ||
|
|
3b3933f8f8 | ||
|
|
c51394cdd7 | ||
|
|
aecda0251e | ||
|
|
748df5f980 | ||
|
|
3763be6988 | ||
|
|
543f159a1c | ||
|
|
054da7d81c | ||
|
|
ce1b441a48 | ||
|
|
cbb3c1e732 | ||
|
|
d5303fb7ee | ||
|
|
af3941c5c1 | ||
|
|
25d8516199 | ||
|
|
d5d3180917 | ||
|
|
02b5429e9b | ||
|
|
48b820c9fa | ||
|
|
4a46d08015 | ||
|
|
45b286a85f | ||
|
|
73c58b11fb | ||
|
|
d316d6ba16 | ||
|
|
2c779fc8c8 | ||
|
|
0dd27c0da9 | ||
|
|
c98b11d3ee | ||
|
|
467363a4ae | ||
|
|
d3c3aea1d4 | ||
|
|
a19b2008ea | ||
|
|
8f449a6dc8 | ||
|
|
b2322529ae | ||
|
|
e239a17ef1 | ||
|
|
0057a210b0 | ||
|
|
7d52d15549 | ||
|
|
39163abcd4 | ||
|
|
8f9ad03e1c | ||
|
|
ba9e5f5403 | ||
|
|
6d143784e4 | ||
|
|
3163eaee22 | ||
|
|
16b7bffb0f | ||
|
|
cdfee03695 | ||
|
|
f5b2ae2071 | ||
|
|
bd985e6d97 | ||
|
|
353af73289 | ||
|
|
2ee373fdf9 | ||
|
|
de3f51e2cd | ||
|
|
50eeac2f73 | ||
|
|
fcb99992a9 |
No files matched your search
@@ -105,10 +105,24 @@ items are **hard blockers**; the last two are **strongly recommended** but not b
|
||||
- Plain objects from metadata and provider TOML (`[limit]`, `[modalities]`, …) are **deep-merged**
|
||||
- Arrays (e.g. `modalities.input`) and primitives are **replaced** wholesale by the child
|
||||
- Any provider field omitted is inherited verbatim from model metadata
|
||||
- `cost`, `provider`, `experimental`, `reasoning_options`, `interleaved`, and `status` are provider-specific and must be declared in provider TOMLs when needed
|
||||
- `cost`, `provider`, `experimental`, `reasoning_options`, `variants`, `interleaved`, and `status` are provider-specific and must be declared in provider TOMLs when needed
|
||||
- `base_model_omit` runs **after** the merge and deletes each dot-path from the result. Missing paths are ignored. Ancestor tables that become empty as a result are also pruned.
|
||||
- The base model metadata file must exist; `base_model` pointing at a missing `models/` entry is an error
|
||||
|
||||
### Provider request variants
|
||||
|
||||
- Provider model TOMLs may declare exact request bodies under `variants.<id>` when semantic `reasoning_options` are insufficient to describe the provider's wire format.
|
||||
- Variant values are copied unchanged into clients' ordinary model variants; do not use them for client-specific transformations.
|
||||
- Select an ordinary default variant with `provider.variant`. Use `provider.body` only for defaults shared by every variant.
|
||||
- Example:
|
||||
```toml
|
||||
[variants.none.chat_template_kwargs]
|
||||
thinking_mode = "disabled"
|
||||
|
||||
[variants.thinking.chat_template_kwargs]
|
||||
thinking_mode = "enabled"
|
||||
```
|
||||
|
||||
### Bedrock Naming Patterns
|
||||
- Dated models: `-v1:0` suffix (`anthropic.claude-3-5-sonnet-20241022-v1:0.toml`)
|
||||
- Latest/undated models: bare `-v1` (`anthropic.claude-opus-4-6-v1.toml`)
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# Sources (accessed 2026-07-20):
|
||||
# https://docs.qwencloud.com/token-plan/personal/token-plan-personal-overview
|
||||
# https://platform.qianwenai.com/docs/token-plan/personal/token-plan-personal-overview
|
||||
# https://docs.qwencloud.com/developer-guides/getting-started/text-generation-models
|
||||
# https://platform.qianwenai.com/docs/developer-guides/getting-started/text-generation-models
|
||||
# https://docs.qwencloud.com/developer-guides/clients-and-developer-tools/opencode
|
||||
# https://platform.qianwenai.com/docs/developer-guides/clients-and-developer-tools/opencode
|
||||
# https://docs.qwencloud.com/developer-guides/clients-and-developer-tools/kilo-cli
|
||||
# https://platform.qianwenai.com/docs/developer-guides/clients-and-developer-tools/kilo-cli
|
||||
# https://github.com/QwenLM/qwen-code/issues/7198
|
||||
# https://github.com/QwenLM/qwen-code/pull/7199
|
||||
|
||||
name = "Qwen3.8 Max Preview"
|
||||
description = "Preview Qwen flagship for million-token multimodal reasoning and long-horizon agentic workflows"
|
||||
family = "qwen"
|
||||
release_date = "2026-07-19"
|
||||
last_updated = "2026-07-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,23 @@
|
||||
# https://huggingface.co/CohereLabs/aya-expanse-32b
|
||||
name = "Aya Expanse 32B"
|
||||
description = "Open multilingual model optimized for generation across 23 languages"
|
||||
release_date = "2024-10-24"
|
||||
last_updated = "2024-10-24"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-expanse-32b"
|
||||
@@ -0,0 +1,23 @@
|
||||
# https://huggingface.co/CohereLabs/aya-expanse-8b
|
||||
name = "Aya Expanse 8B"
|
||||
description = "Compact open multilingual model optimized for generation across 23 languages"
|
||||
release_date = "2024-10-24"
|
||||
last_updated = "2024-10-24"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 8_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-expanse-8b"
|
||||
@@ -0,0 +1,23 @@
|
||||
# https://huggingface.co/CohereLabs/aya-vision-32b
|
||||
name = "Aya Vision 32B"
|
||||
description = "Open multilingual vision model for OCR, visual reasoning, and image question answering"
|
||||
release_date = "2025-03-04"
|
||||
last_updated = "2025-05-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 16_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-vision-32b"
|
||||
@@ -0,0 +1,23 @@
|
||||
# https://huggingface.co/CohereLabs/aya-vision-8b
|
||||
name = "Aya Vision 8B"
|
||||
description = "Compact open multilingual vision model for OCR and visual question answering"
|
||||
release_date = "2025-03-04"
|
||||
last_updated = "2025-05-14"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
license = "CC-BY-NC-4.0"
|
||||
|
||||
[limit]
|
||||
context = 16_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/aya-vision-8b"
|
||||
@@ -0,0 +1,25 @@
|
||||
# https://docs.cohere.com/docs/command-a-reasoning
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-a-reasoning-08-2025
|
||||
name = "Command A Reasoning"
|
||||
description = "Cohere reasoning model for multilingual enterprise agents, tools, and complex workflows"
|
||||
family = "command-a"
|
||||
release_date = "2025-08-21"
|
||||
last_updated = "2025-08-21"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-a-reasoning-08-2025"
|
||||
@@ -0,0 +1,25 @@
|
||||
# https://docs.cohere.com/docs/models
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-a-translate-08-2025
|
||||
name = "Command A Translate"
|
||||
description = "Translation model for multilingual conversion, localization, and cross-language workflows"
|
||||
family = "command-a"
|
||||
release_date = "2025-08-28"
|
||||
last_updated = "2025-08-28"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 8_000
|
||||
output = 8_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-a-translate-08-2025"
|
||||
@@ -0,0 +1,25 @@
|
||||
# https://docs.cohere.com/docs/command-a-vision
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-a-vision-07-2025
|
||||
name = "Command A Vision"
|
||||
description = "Cohere vision model for multilingual document analysis, OCR, and image understanding"
|
||||
family = "command-a"
|
||||
release_date = "2025-07-31"
|
||||
last_updated = "2025-07-31"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 8_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-a-vision-07-2025"
|
||||
@@ -0,0 +1,25 @@
|
||||
# https://huggingface.co/CohereLabs/c4ai-command-r7b-arabic-02-2025
|
||||
# https://docs.cohere.com/changelog/command-r7b-arabic
|
||||
name = "Command R7B Arabic"
|
||||
description = "Open Command R model optimized for Arabic enterprise chat, RAG, and cultural knowledge"
|
||||
family = "command-r"
|
||||
release_date = "2025-02-27"
|
||||
last_updated = "2025-02-27"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
knowledge = "2024-06-01"
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 4_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/CohereLabs/c4ai-command-r7b-arabic-02-2025"
|
||||
@@ -7,7 +7,7 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2025-06"
|
||||
knowledge = "2024-06"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
name = "Nano Banana Pro"
|
||||
description = "Nano Banana Pro for higher-fidelity image generation and design-heavy edits"
|
||||
family = "gemini-pro"
|
||||
release_date = "2026-05-28"
|
||||
last_updated = "2026-05-28"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 65_536
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text", "image"]
|
||||
@@ -0,0 +1,19 @@
|
||||
name = "Nano Banana 2"
|
||||
description = "Image model for prompt-driven generation, editing, and visual design workflows"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-05-28"
|
||||
last_updated = "2026-05-28"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = false
|
||||
knowledge = "2025-01"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "pdf"]
|
||||
output = ["text", "image"]
|
||||
@@ -0,0 +1,20 @@
|
||||
name = "Gemini 3.5 Flash Lite"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash-lite"
|
||||
release_date = "2026-07-21"
|
||||
last_updated = "2026-07-21"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2026-03"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,20 @@
|
||||
name = "Gemini 3.6 Flash"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash"
|
||||
release_date = "2026-07-21"
|
||||
last_updated = "2026-07-21"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
knowledge = "2026-03"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,8 +1,9 @@
|
||||
# Tracks the current Gemini Flash release (gemini-3.5-flash).
|
||||
name = "Gemini Flash Latest"
|
||||
description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost"
|
||||
family = "gemini-flash"
|
||||
release_date = "2025-09-25"
|
||||
last_updated = "2025-09-25"
|
||||
release_date = "2026-05-19"
|
||||
last_updated = "2026-05-19"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
@@ -16,5 +17,5 @@ context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -1,8 +1,9 @@
|
||||
# Tracks the current Gemini Flash-Lite release (gemini-3.1-flash-lite).
|
||||
name = "Gemini Flash-Lite Latest"
|
||||
description = "Low-latency Gemini model for high-volume multimodal and agent workloads"
|
||||
family = "gemini-flash-lite"
|
||||
release_date = "2025-09-25"
|
||||
last_updated = "2025-09-25"
|
||||
release_date = "2026-05-07"
|
||||
last_updated = "2026-05-07"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
@@ -16,5 +17,5 @@ context = 1_048_576
|
||||
output = 65_536
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video", "pdf"]
|
||||
input = ["text", "image", "video", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,19 @@
|
||||
name = "Kimi K3"
|
||||
description = "Multimodal Kimi model with 1M context and toggleable max-effort thinking for long-horizon agent work"
|
||||
family = "kimi-k3"
|
||||
release_date = "2026-07-16"
|
||||
last_updated = "2026-07-16"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 131_072
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -1,6 +1,6 @@
|
||||
name = "GPT-5.6 Luna"
|
||||
description = "Cost-efficient GPT-5.6 model for fast, high-volume workloads"
|
||||
family = "gpt-nano"
|
||||
family = "gpt-luna"
|
||||
release_date = "2026-07-09"
|
||||
last_updated = "2026-07-09"
|
||||
attachment = true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name = "GPT-5.6 Sol"
|
||||
description = "Frontier GPT-5.6 model for complex professional work, coding, and agentic workflows"
|
||||
family = "gpt"
|
||||
family = "gpt-sol"
|
||||
release_date = "2026-07-09"
|
||||
last_updated = "2026-07-09"
|
||||
attachment = true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name = "GPT-5.6 Terra"
|
||||
description = "Balanced GPT-5.6 model for capable, cost-efficient everyday work"
|
||||
family = "gpt-mini"
|
||||
family = "gpt-terra"
|
||||
release_date = "2026-07-09"
|
||||
last_updated = "2026-07-09"
|
||||
attachment = true
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
name = "GPT-Realtime-2.1"
|
||||
description = "Realtime speech-to-speech model with configurable reasoning, tool use, and robust voice-agent behavior"
|
||||
family = "gpt"
|
||||
release_date = "2026-07-06"
|
||||
last_updated = "2026-07-06"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
knowledge = "2024-09-30"
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
input = 96_000
|
||||
output = 32_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio", "image"]
|
||||
output = ["text", "audio"]
|
||||
@@ -0,0 +1,18 @@
|
||||
name = "GPT Realtime Whisper"
|
||||
description = "Streaming speech-to-text model for low-latency transcript deltas from live audio"
|
||||
family = "whisper"
|
||||
release_date = "2026-05-07"
|
||||
last_updated = "2026-05-07"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 0
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["audio"]
|
||||
output = ["text"]
|
||||
@@ -1,5 +1,5 @@
|
||||
name = "Laguna M.1"
|
||||
description = "Poolside's flagship agentic coding model for long-horizon work"
|
||||
description = "Poolside's open-weight model for agentic coding and long-horizon work"
|
||||
family = "laguna"
|
||||
release_date = "2026-04-28"
|
||||
last_updated = "2026-06-13"
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
name = "Laguna S 2.1"
|
||||
description = "Agentic coding model from Poolside in the XS size class for local deployment"
|
||||
family = "laguna"
|
||||
release_date = "2026-07-21"
|
||||
last_updated = "2026-07-21"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = false
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -6,7 +6,7 @@ attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
knowledge = "2026-01-01"
|
||||
knowledge = "2026-03-01"
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
@@ -15,7 +15,7 @@ input = 256_000
|
||||
output = 256_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
@@ -80,3 +80,24 @@ metric = "pass^3"
|
||||
version = "1.1"
|
||||
source = "https://static.stepfun.com/blog/step-3.7-flash/"
|
||||
date = "2026-05-29"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Artificial Analysis Coding Index"
|
||||
score = 37.1
|
||||
metric = "index"
|
||||
source = "https://openrouter.ai/stepfun/step-3.7-flash/benchmarks"
|
||||
date = "2026-06-15"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "SciCode"
|
||||
score = 40.0
|
||||
metric = "percent correct"
|
||||
source = "https://openrouter.ai/stepfun/step-3.7-flash/benchmarks"
|
||||
date = "2026-06-15"
|
||||
|
||||
[[benchmarks]]
|
||||
name = "Terminal-Bench Hard"
|
||||
score = 35.6
|
||||
metric = "success rate"
|
||||
source = "https://openrouter.ai/stepfun/step-3.7-flash/benchmarks"
|
||||
date = "2026-06-15"
|
||||
@@ -0,0 +1,30 @@
|
||||
# Sources (accessed 2026-07-16):
|
||||
# - https://thinkingmachines.ai/news/introducing-inkling/
|
||||
# - https://thinkingmachines.ai/model-card/inkling/
|
||||
# - https://huggingface.co/thinkingmachines/Inkling
|
||||
# - https://tinker-docs.thinkingmachines.ai/tinker/models/
|
||||
# - https://tinker-docs.thinkingmachines.ai/cookbook/inkling/thinking-effort/
|
||||
# - https://tinker-docs.thinkingmachines.ai/tinker/compatible-apis/openai/
|
||||
|
||||
name = "Inkling"
|
||||
description = "Multimodal MoE reasoning model (975B total, 41B active) for text, image, and audio"
|
||||
family = "ling"
|
||||
release_date = "2026-07-15"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 256_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "pdf"]
|
||||
output = ["text"]
|
||||
|
||||
[[weights]]
|
||||
label = "Hugging Face"
|
||||
url = "https://huggingface.co/thinkingmachines/Inkling"
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
"vercel:generate": "bun ./packages/core/script/sync-models.ts vercel",
|
||||
"wandb:generate": "bun ./packages/core/script/sync-models.ts wandb",
|
||||
"digitalocean:sync": "bun ./packages/core/script/sync-models.ts digitalocean",
|
||||
"ambient:generate": "bun ./packages/core/script/generate-ambient.ts",
|
||||
"ambient:sync": "bun ./packages/core/script/sync-models.ts ambient",
|
||||
"models:sync": "bun ./packages/core/script/sync-models.ts",
|
||||
"sync:models": "bun ./packages/core/script/sync-models.ts"
|
||||
},
|
||||
|
||||
@@ -1,169 +0,0 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
/**
|
||||
* Generates Ambient model TOML files from https://api.ambient.xyz/v1/models.
|
||||
*
|
||||
* Emits `base_model` TOMLs that inherit upstream metadata
|
||||
* (family, release_date, knowledge, capabilities) from the canonical
|
||||
* provider model, and override only the fields Ambient's API reports:
|
||||
* cost, limit, modalities.
|
||||
*
|
||||
* Flags:
|
||||
* --dry-run Preview generated TOMLs without writing files.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import path from "node:path";
|
||||
import { mkdir } from "node:fs/promises";
|
||||
|
||||
const API_ENDPOINT = "https://api.ambient.xyz/v1/models";
|
||||
|
||||
// Allowlist for the initial rollout.
|
||||
const ALLOWLIST = new Set<string>([
|
||||
"zai-org/GLM-5.1-FP8",
|
||||
"moonshotai/kimi-k2.6",
|
||||
]);
|
||||
|
||||
// Maps Ambient model IDs to canonical model metadata IDs in this repo.
|
||||
const BASE_MODEL_MAP: Record<string, string> = {
|
||||
"zai-org/GLM-5.1-FP8": "zhipuai/glm-5.1",
|
||||
"moonshotai/kimi-k2.6": "moonshotai/kimi-k2.6",
|
||||
};
|
||||
|
||||
const Pricing = z
|
||||
.object({
|
||||
prompt: z.string(),
|
||||
completion: z.string(),
|
||||
input_cache_read: z.string().optional(),
|
||||
input_cache_write: z.string().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const AmbientModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
context_length: z.number(),
|
||||
max_output_length: z.number(),
|
||||
input_modalities: z.array(z.string()),
|
||||
output_modalities: z.array(z.string()),
|
||||
pricing: Pricing,
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const AmbientResponse = z
|
||||
.object({
|
||||
object: z.literal("list"),
|
||||
data: z.array(AmbientModel),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const ALLOWED_MODALITIES = new Set(["text", "audio", "image", "video", "pdf"]);
|
||||
|
||||
function modalities(values: string[]): string[] {
|
||||
return values
|
||||
.map((v) => v.toLowerCase())
|
||||
.filter((v) => ALLOWED_MODALITIES.has(v));
|
||||
}
|
||||
|
||||
function perMTok(price: string): number {
|
||||
const n = parseFloat(price);
|
||||
if (!Number.isFinite(n)) {
|
||||
throw new Error(`Invalid price: ${price}`);
|
||||
}
|
||||
// Round to 6 decimals to absorb float noise from per-token strings.
|
||||
return Math.round(n * 1_000_000 * 1_000_000) / 1_000_000;
|
||||
}
|
||||
|
||||
function formatToml(
|
||||
model: z.infer<typeof AmbientModel>,
|
||||
baseModel: string,
|
||||
): string {
|
||||
const lines: string[] = [];
|
||||
lines.push(`base_model = "${baseModel}"`);
|
||||
lines.push("");
|
||||
|
||||
lines.push("[cost]");
|
||||
lines.push(`input = ${perMTok(model.pricing.prompt)}`);
|
||||
lines.push(`output = ${perMTok(model.pricing.completion)}`);
|
||||
if (model.pricing.input_cache_read !== undefined) {
|
||||
lines.push(`cache_read = ${perMTok(model.pricing.input_cache_read)}`);
|
||||
}
|
||||
if (model.pricing.input_cache_write !== undefined) {
|
||||
lines.push(`cache_write = ${perMTok(model.pricing.input_cache_write)}`);
|
||||
}
|
||||
lines.push("");
|
||||
|
||||
lines.push("[limit]");
|
||||
lines.push(`context = ${model.context_length}`);
|
||||
lines.push(`output = ${model.max_output_length}`);
|
||||
lines.push("");
|
||||
|
||||
const input = modalities(model.input_modalities);
|
||||
const output = modalities(model.output_modalities);
|
||||
lines.push("[modalities]");
|
||||
lines.push(`input = [${input.map((m) => `"${m}"`).join(", ")}]`);
|
||||
lines.push(`output = [${output.map((m) => `"${m}"`).join(", ")}]`);
|
||||
|
||||
return lines.join("\n") + "\n";
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const dryRun = process.argv.includes("--dry-run");
|
||||
|
||||
const outDir = path.join(
|
||||
import.meta.dirname,
|
||||
"..",
|
||||
"..",
|
||||
"..",
|
||||
"providers",
|
||||
"ambient",
|
||||
"models",
|
||||
);
|
||||
|
||||
const res = await fetch(API_ENDPOINT);
|
||||
if (!res.ok) {
|
||||
console.error(`Fetch failed: ${res.status} ${res.statusText}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const parsed = AmbientResponse.safeParse(await res.json());
|
||||
if (!parsed.success) {
|
||||
console.error("Invalid Ambient response:", parsed.error.issues);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const selected = parsed.data.data.filter((m) => ALLOWLIST.has(m.id));
|
||||
const missing = [...ALLOWLIST].filter(
|
||||
(id) => !selected.some((m) => m.id === id),
|
||||
);
|
||||
if (missing.length > 0) {
|
||||
console.error(`Allowlisted models missing from API: ${missing.join(", ")}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
let count = 0;
|
||||
for (const model of selected) {
|
||||
const baseModel = BASE_MODEL_MAP[model.id];
|
||||
if (!baseModel) {
|
||||
console.error(`No BASE_MODEL_MAP entry for ${model.id}; skipping`);
|
||||
continue;
|
||||
}
|
||||
const filePath = path.join(outDir, `${model.id}.toml`);
|
||||
const toml = formatToml(model, baseModel);
|
||||
if (dryRun) {
|
||||
console.log(`--- ${path.relative(process.cwd(), filePath)} ---`);
|
||||
console.log(toml);
|
||||
} else {
|
||||
await mkdir(path.dirname(filePath), { recursive: true });
|
||||
await Bun.write(filePath, toml);
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
||||
console.log(
|
||||
`${dryRun ? "Previewed" : "Wrote"} ${count} model file(s) under providers/ambient/models/`,
|
||||
);
|
||||
}
|
||||
|
||||
await main();
|
||||
@@ -13,6 +13,9 @@ export const ModelFamilyValues = [
|
||||
"gpt-pro",
|
||||
"gpt-mini",
|
||||
"gpt-nano",
|
||||
"gpt-sol",
|
||||
"gpt-terra",
|
||||
"gpt-luna",
|
||||
"gpt-oss",
|
||||
"gpt-image",
|
||||
|
||||
@@ -73,11 +76,13 @@ export const ModelFamilyValues = [
|
||||
// Moonshot Kimi
|
||||
"kimi",
|
||||
"kimi-k2",
|
||||
"kimi-k3",
|
||||
"kimi-free",
|
||||
"kimi-thinking",
|
||||
|
||||
// Poolside Laguna
|
||||
"laguna",
|
||||
"laguna-s",
|
||||
|
||||
// Mistral family
|
||||
"mistral",
|
||||
@@ -442,5 +447,6 @@ export function inferKimiFamily(...values: string[]): ModelFamily | undefined {
|
||||
const target = values.join(" ").toLowerCase();
|
||||
if (/kimi[^a-z0-9]*k2(?:[^a-z0-9]*\d+)?[^a-z0-9]*thinking/.test(target)) return "kimi-thinking";
|
||||
if (/kimi[\s_-]*k2/.test(target)) return "kimi-k2";
|
||||
if (/kimi[\s_-]*k3/.test(target)) return "kimi-k3";
|
||||
return undefined;
|
||||
}
|
||||
@@ -3,12 +3,7 @@ import { z } from "zod";
|
||||
import { ModelFamily } from "./family";
|
||||
|
||||
type JsonValue =
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| null
|
||||
| { [key: string]: JsonValue }
|
||||
| JsonValue[];
|
||||
string | number | boolean | null | { [key: string]: JsonValue } | JsonValue[];
|
||||
|
||||
const JsonValue: z.ZodType<JsonValue> = z.lazy(() =>
|
||||
z.union([
|
||||
@@ -25,7 +20,16 @@ const ReasoningEffortValue = z.preprocess(
|
||||
(value) => (value === "null" ? null : value),
|
||||
z.union([
|
||||
z.null(),
|
||||
z.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max", "default"]),
|
||||
z.enum([
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
"default",
|
||||
]),
|
||||
]),
|
||||
);
|
||||
|
||||
@@ -219,6 +223,7 @@ const ModelBase = z.object({
|
||||
attachment: z.boolean(),
|
||||
reasoning: z.boolean(),
|
||||
reasoning_options: z.array(ReasoningOption).optional(),
|
||||
variants: z.record(z.record(JsonValue)).optional(),
|
||||
tool_call: z.boolean(),
|
||||
interleaved: z
|
||||
.union([
|
||||
@@ -266,6 +271,7 @@ const ModelBase = z.object({
|
||||
npm: z.string().optional(),
|
||||
api: z.string().optional(),
|
||||
shape: z.enum(["responses", "completions"]).optional(),
|
||||
variant: z.string().optional(),
|
||||
body: z.record(JsonValue).optional(),
|
||||
headers: z.record(z.string()).optional(),
|
||||
})
|
||||
@@ -273,7 +279,8 @@ const ModelBase = z.object({
|
||||
});
|
||||
|
||||
function refineModel<
|
||||
Output extends z.infer<typeof ModelShape> | z.infer<typeof AuthoredModelShape>,
|
||||
Output extends
|
||||
z.infer<typeof ModelShape> | z.infer<typeof AuthoredModelShape>,
|
||||
Def extends z.ZodTypeDef,
|
||||
Input,
|
||||
>(schema: z.ZodType<Output, Def, Input>) {
|
||||
@@ -296,6 +303,18 @@ function refineModel<
|
||||
path: ["reasoning_options"],
|
||||
},
|
||||
)
|
||||
.refine(
|
||||
(data) => {
|
||||
return (
|
||||
data.provider?.variant === undefined ||
|
||||
data.variants?.[data.provider.variant] !== undefined
|
||||
);
|
||||
},
|
||||
{
|
||||
message: "Provider default variant must reference a declared variant",
|
||||
path: ["provider", "variant"],
|
||||
},
|
||||
)
|
||||
.refine(
|
||||
(data) => {
|
||||
return !(
|
||||
|
||||
@@ -4,6 +4,7 @@ import { mergeDeep } from "remeda";
|
||||
import { z } from "zod";
|
||||
|
||||
import { AuthoredModel, AuthoredModelShape, ModelMetadata } from "../schema.js";
|
||||
import { ambient } from "./providers/ambient.js";
|
||||
import { anthropic } from "./providers/anthropic.js";
|
||||
import { baseten } from "./providers/baseten.js";
|
||||
import { chutes } from "./providers/chutes.js";
|
||||
@@ -11,6 +12,7 @@ import { cloudflareWorkersAi } from "./providers/cloudflare-workers-ai.js";
|
||||
import { crossmodel } from "./providers/crossmodel.js";
|
||||
import { deepinfra } from "./providers/deepinfra.js";
|
||||
import { digitalocean } from "./providers/digitalocean.js";
|
||||
import { empiriolabs } from "./providers/empiriolabs.js";
|
||||
import { google } from "./providers/google.js";
|
||||
import { huggingface } from "./providers/huggingface.js";
|
||||
import { kilo } from "./providers/kilo.js";
|
||||
@@ -18,6 +20,7 @@ import { llmgateway } from "./providers/llmgateway.js";
|
||||
import { openai } from "./providers/openai.js";
|
||||
import { openrouter } from "./providers/openrouter.js";
|
||||
import { ovhcloud } from "./providers/ovhcloud.js";
|
||||
import { pioneer } from "./providers/pioneer.js";
|
||||
import { vercel } from "./providers/vercel.js";
|
||||
import { venice } from "./providers/venice.js";
|
||||
import { wandb } from "./providers/wandb.js";
|
||||
@@ -90,6 +93,7 @@ export interface SyncResult {
|
||||
}
|
||||
|
||||
export const providers: {
|
||||
ambient: SyncProvider<any>;
|
||||
anthropic: SyncProvider<any>;
|
||||
baseten: SyncProvider<any>;
|
||||
chutes: SyncProvider<any>;
|
||||
@@ -97,6 +101,7 @@ export const providers: {
|
||||
crossmodel: SyncProvider<any>;
|
||||
deepinfra: SyncProvider<any>;
|
||||
digitalocean: SyncProvider<any>;
|
||||
empiriolabs: SyncProvider<any>;
|
||||
google: SyncProvider<any>;
|
||||
kilo: SyncProvider<any>;
|
||||
huggingface: SyncProvider<any>;
|
||||
@@ -104,11 +109,13 @@ export const providers: {
|
||||
openai: SyncProvider<any>;
|
||||
openrouter: SyncProvider<any>;
|
||||
ovhcloud: SyncProvider<any>;
|
||||
pioneer: SyncProvider<any>;
|
||||
vercel: SyncProvider<any>;
|
||||
venice: SyncProvider<any>;
|
||||
wandb: SyncProvider<any>;
|
||||
xai: SyncProvider<any>;
|
||||
} = {
|
||||
ambient,
|
||||
anthropic,
|
||||
baseten,
|
||||
chutes,
|
||||
@@ -116,6 +123,7 @@ export const providers: {
|
||||
crossmodel,
|
||||
deepinfra,
|
||||
digitalocean,
|
||||
empiriolabs,
|
||||
google,
|
||||
kilo,
|
||||
huggingface,
|
||||
@@ -123,6 +131,7 @@ export const providers: {
|
||||
openai,
|
||||
openrouter,
|
||||
ovhcloud,
|
||||
pioneer,
|
||||
vercel,
|
||||
venice,
|
||||
wandb,
|
||||
@@ -130,9 +139,9 @@ export const providers: {
|
||||
};
|
||||
|
||||
export const groups = {
|
||||
aggregators: ["crossmodel", "huggingface", "kilo", "llmgateway", "openrouter", "vercel"],
|
||||
aggregators: ["crossmodel", "empiriolabs", "huggingface", "kilo", "llmgateway", "openrouter", "vercel"],
|
||||
cloudflare: ["cloudflare-workers-ai"],
|
||||
direct: ["anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "openai", "ovhcloud", "venice", "wandb", "xai"],
|
||||
direct: ["ambient", "anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "openai", "ovhcloud", "pioneer", "venice", "wandb", "xai"],
|
||||
} as const;
|
||||
|
||||
type ProviderID = keyof typeof providers;
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import type { SyncProvider } from "../index.js";
|
||||
import { buildOpenRouterModel, type OpenRouterModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://api.ambient.xyz/v1/models";
|
||||
|
||||
export const AmbientModel = z.object({
|
||||
id: z.string().min(1),
|
||||
name: z.string().min(1),
|
||||
created: z.number(),
|
||||
hugging_face_id: z.string().nullable().optional(),
|
||||
context_length: z.number(),
|
||||
max_output_length: z.number(),
|
||||
input_modalities: z.array(z.string()),
|
||||
output_modalities: z.array(z.string()),
|
||||
pricing: z.object({
|
||||
prompt: z.string(),
|
||||
completion: z.string(),
|
||||
input_cache_read: z.string().optional(),
|
||||
input_cache_write: z.string().optional(),
|
||||
}).passthrough(),
|
||||
supported_features: z.array(z.string()).default([]),
|
||||
supported_sampling_parameters: z.array(z.string()).default([]),
|
||||
openrouter: z.object({ slug: z.string() }).nullable().optional(),
|
||||
is_ready: z.boolean().default(false),
|
||||
}).passthrough();
|
||||
|
||||
export const AmbientResponse = z.object({
|
||||
object: z.literal("list"),
|
||||
data: z.array(AmbientModel),
|
||||
}).passthrough();
|
||||
|
||||
export type AmbientModel = z.infer<typeof AmbientModel>;
|
||||
|
||||
function toOpenRouterShape(model: AmbientModel): OpenRouterModel {
|
||||
return {
|
||||
id: model.openrouter?.slug ?? model.id,
|
||||
name: model.name,
|
||||
created: model.created,
|
||||
hugging_face_id: model.hugging_face_id ?? null,
|
||||
knowledge_cutoff: null,
|
||||
context_length: model.context_length,
|
||||
architecture: {
|
||||
input_modalities: model.input_modalities,
|
||||
output_modalities: model.output_modalities,
|
||||
},
|
||||
pricing: {
|
||||
prompt: model.pricing.prompt,
|
||||
completion: model.pricing.completion,
|
||||
input_cache_read: model.pricing.input_cache_read,
|
||||
input_cache_write: model.pricing.input_cache_write,
|
||||
},
|
||||
top_provider: {
|
||||
context_length: model.context_length,
|
||||
max_completion_tokens: model.max_output_length,
|
||||
},
|
||||
supported_parameters: [...model.supported_features, ...model.supported_sampling_parameters],
|
||||
};
|
||||
}
|
||||
|
||||
export const ambient = {
|
||||
id: "ambient",
|
||||
name: "Ambient",
|
||||
modelsDir: "providers/ambient/models",
|
||||
deleteMissing: false,
|
||||
sourceID(model) {
|
||||
return model.id;
|
||||
},
|
||||
skippedNotice(ids) {
|
||||
if (ids.length === 0) return [];
|
||||
return [
|
||||
`${ids.length} Ambient models were skipped because the catalog reports them as not ready (is_ready=false).`,
|
||||
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
|
||||
];
|
||||
},
|
||||
missingNotice(paths) {
|
||||
if (paths.length === 0) return [];
|
||||
return [
|
||||
`${paths.length} local Ambient models were absent from the catalog and were retained for manual lifecycle review.`,
|
||||
`Retained local paths: ${paths.map((item) => `\`${item}\``).join(", ")}`,
|
||||
];
|
||||
},
|
||||
async fetchModels() {
|
||||
const response = await fetch(API_ENDPOINT);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Ambient request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
return AmbientResponse.parse(raw).data;
|
||||
},
|
||||
translateModel(model, context) {
|
||||
if (!model.is_ready) return undefined;
|
||||
const existing = context.existing(model.id);
|
||||
const built = buildOpenRouterModel(toOpenRouterShape(model), existing);
|
||||
const reasoning = model.supported_features.includes("reasoning");
|
||||
const withOptions = reasoning
|
||||
? { ...built, reasoning_options: existing?.reasoning_options ?? [] }
|
||||
: built;
|
||||
const aliasName = ambientAliasName(model.id);
|
||||
return {
|
||||
id: model.id,
|
||||
model: aliasName === undefined ? withOptions : { ...withOptions, name: aliasName },
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<AmbientModel>;
|
||||
|
||||
function ambientAliasName(id: string): string | undefined {
|
||||
if (!id.startsWith("ambient/")) return undefined;
|
||||
const label = id.slice("ambient/".length)
|
||||
.split(/[/-]/)
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(" ");
|
||||
return `Ambient ${label}`;
|
||||
}
|
||||
@@ -81,6 +81,7 @@ const AUTHOR_BY_VENDOR: Record<string, string> = {
|
||||
xiaomi: "xiaomi",
|
||||
minimax: "minimax",
|
||||
"z-ai": "zhipuai",
|
||||
"x-ai": "xai",
|
||||
tencent: "tencent",
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,367 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
|
||||
|
||||
// EmpirioLabs exposes a public, unauthenticated OpenAI-compatible model
|
||||
// catalog, so no API key is needed or used for this sync.
|
||||
const API_ENDPOINT = "https://api.empiriolabs.ai/v1/models";
|
||||
|
||||
const CANONICAL_BASE_MODELS: Record<string, string> = {
|
||||
"fugu-ultra": "sakana/fugu-ultra",
|
||||
"gemma-4-26b-a4b": "google/gemma-4-26b-a4b-it",
|
||||
"gemma-4-e4b": "google/gemma-4-E4B-it",
|
||||
"mistral-medium-3": "mistral/mistral-medium-2505",
|
||||
"mistral-small-4": "mistral/mistral-small-2603",
|
||||
"muse-spark-1-1": "meta/muse-spark-1.1",
|
||||
"qwen3-5-9b": "alibaba/qwen3.5-9b",
|
||||
"qwen3-7-max": "alibaba/qwen3.7-max",
|
||||
"qwen3-7-plus": "alibaba/qwen3.7-plus",
|
||||
"step-3-5-flash": "stepfun/step-3.5-flash",
|
||||
"step-3-5-flash-2603": "stepfun/step-3.5-flash-2603",
|
||||
"step-3-7-flash": "stepfun/step-3.7-flash",
|
||||
};
|
||||
|
||||
const EmpiriolabsParameter = z
|
||||
.object({
|
||||
name: z.string(),
|
||||
type: z.string().optional(),
|
||||
options: z.array(z.string()).optional(),
|
||||
min: z.number().optional(),
|
||||
max: z.number().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const EmpiriolabsPricingTier = z
|
||||
.object({
|
||||
prompt: z.string().optional(),
|
||||
completion: z.string().optional(),
|
||||
input_cache_read: z.string().optional(),
|
||||
min_context: z.number().nullable().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
// Pricing is returned either as a single tier object or as an array of tier
|
||||
// objects (tiered/context-priced models). Accept both shapes.
|
||||
const EmpiriolabsPricing = z.union([
|
||||
z.array(EmpiriolabsPricingTier),
|
||||
EmpiriolabsPricingTier,
|
||||
]);
|
||||
|
||||
const EmpiriolabsModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
display_name: z.string().optional(),
|
||||
name: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
category: z.string().optional(),
|
||||
context_length: z.number().nullable().optional(),
|
||||
context_window: z.number().nullable().optional(),
|
||||
max_output_tokens: z.number().nullable().optional(),
|
||||
model_released_at: z.string().nullable().optional(),
|
||||
pricing: EmpiriolabsPricing.optional(),
|
||||
capabilities: z.record(z.unknown()).optional(),
|
||||
features: z.array(z.string()).optional(),
|
||||
structured_output: z.string().nullable().optional(),
|
||||
input_modalities: z.array(z.string()).optional(),
|
||||
output_modalities: z.array(z.string()).optional(),
|
||||
supported_parameters: z.array(EmpiriolabsParameter).optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const EmpiriolabsResponse = z
|
||||
.object({
|
||||
data: z.array(EmpiriolabsModel),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export type EmpiriolabsModel = z.infer<typeof EmpiriolabsModel>;
|
||||
|
||||
export const empiriolabs = {
|
||||
id: "empiriolabs",
|
||||
name: "EmpirioLabs AI",
|
||||
modelsDir: "providers/empiriolabs/models",
|
||||
sourceID(model) {
|
||||
return model.id;
|
||||
},
|
||||
skippedNotice(ids) {
|
||||
if (ids.length === 0) return [];
|
||||
return [
|
||||
`${ids.length} EmpirioLabs AI models returned by the API were not created because they could not be mapped exactly to models.dev canonical metadata. `
|
||||
+ "Existing models and canonical matches are still updated from API-authoritative fields.",
|
||||
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
|
||||
];
|
||||
},
|
||||
async fetchModels() {
|
||||
const response = await fetch(API_ENDPOINT);
|
||||
if (!response.ok) {
|
||||
throw new Error(`EmpirioLabs request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
// Text chat models only. Skip non-text categories (image, video, audio,
|
||||
// 3D, research, tools) and regional/capability variant lanes (id has ":").
|
||||
return EmpiriolabsResponse.parse(raw).data.filter(
|
||||
(model) => (model.category ?? "").toLowerCase() === "text" && !model.id.includes(":"),
|
||||
);
|
||||
},
|
||||
translateModel(model, context) {
|
||||
const existing = context.existing(model.id);
|
||||
const baseModel = existing?.base_model ?? resolveEmpiriolabsBaseModel(model.id);
|
||||
if (existing === undefined && baseModel === undefined) return undefined;
|
||||
const built = buildEmpiriolabsModel(model, existing, baseModel);
|
||||
// A model with no resolvable context window cannot produce a valid TOML
|
||||
// (limit.context is required), so skip it rather than fail the whole sync.
|
||||
if (built === undefined) return undefined;
|
||||
return {
|
||||
id: model.id,
|
||||
model: built,
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<EmpiriolabsModel>;
|
||||
|
||||
type Modality = "text" | "audio" | "image" | "video" | "pdf";
|
||||
type EffortValue =
|
||||
| "none"
|
||||
| "minimal"
|
||||
| "low"
|
||||
| "medium"
|
||||
| "high"
|
||||
| "xhigh"
|
||||
| "max"
|
||||
| "default";
|
||||
|
||||
const EFFORT_VALUES: EffortValue[] = [
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
"default",
|
||||
];
|
||||
|
||||
function price(value: string | undefined) {
|
||||
if (value === undefined) return undefined;
|
||||
const number = Number(value);
|
||||
// Per-token string converted to a per-1M-token number.
|
||||
return Number.isFinite(number) && number >= 0
|
||||
? Math.round(number * 1_000_000_000_000) / 1_000_000
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function nonZeroPrice(value: string | undefined) {
|
||||
const result = price(value);
|
||||
return result !== undefined && result > 0 ? result : undefined;
|
||||
}
|
||||
|
||||
type TierCost = { input: number; output: number; cache_read?: number };
|
||||
|
||||
function tierCost(tier: z.infer<typeof EmpiriolabsPricingTier> | undefined): TierCost | undefined {
|
||||
const input = price(tier?.prompt);
|
||||
const output = price(tier?.completion);
|
||||
if (input === undefined || output === undefined) return undefined;
|
||||
const cacheRead = nonZeroPrice(tier?.input_cache_read);
|
||||
return { input, output, cache_read: cacheRead };
|
||||
}
|
||||
|
||||
function modalities(values: string[] | undefined, fallback: Modality[]): Modality[] {
|
||||
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
|
||||
const result = (values ?? [])
|
||||
.map((value) => value.toLowerCase())
|
||||
.map((value) => (value === "file" ? "pdf" : value))
|
||||
.filter((value): value is Modality => allowed.has(value as Modality));
|
||||
return [...new Set(result.length > 0 ? result : fallback)];
|
||||
}
|
||||
|
||||
function reasoningOptions(model: EmpiriolabsModel): SyncedModel["reasoning_options"] {
|
||||
const params = model.supported_parameters ?? [];
|
||||
const options: NonNullable<SyncedModel["reasoning_options"]> = [];
|
||||
if (params.some((parameter) => parameter.name === "enable_thinking")) {
|
||||
options.push({ type: "toggle" });
|
||||
}
|
||||
|
||||
const effort = params.find((parameter) => parameter.name === "reasoning_effort");
|
||||
if (effort?.options?.length) {
|
||||
const values = effort.options.filter((value): value is EffortValue =>
|
||||
(EFFORT_VALUES as string[]).includes(value),
|
||||
);
|
||||
if (values.length > 0) options.push({ type: "effort", values });
|
||||
}
|
||||
|
||||
const budget = params.find((parameter) => parameter.name === "thinking_budget");
|
||||
if (budget !== undefined) {
|
||||
const option: { type: "budget_tokens"; min?: number; max?: number } = { type: "budget_tokens" };
|
||||
if (budget.min !== undefined) option.min = budget.min;
|
||||
if (budget.max !== undefined) option.max = budget.max;
|
||||
options.push(option);
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
function parameterOutputLimit(model: EmpiriolabsModel) {
|
||||
const parameter = (model.supported_parameters ?? []).find(
|
||||
(item) => item.name === "max_tokens" || item.name === "max_completion_tokens",
|
||||
);
|
||||
return parameter?.max !== undefined && parameter.max > 0 ? parameter.max : undefined;
|
||||
}
|
||||
|
||||
export function resolveEmpiriolabsBaseModel(id: string) {
|
||||
const explicit = CANONICAL_BASE_MODELS[id];
|
||||
if (explicit !== undefined) return explicit;
|
||||
return canonicalCandidates(id)
|
||||
.map((candidate) => resolveCanonicalBaseModel(candidate))
|
||||
.find((candidate) => candidate !== undefined);
|
||||
}
|
||||
|
||||
function canonicalCandidates(id: string) {
|
||||
const candidates: string[] = [];
|
||||
|
||||
if (id.startsWith("deepseek-")) {
|
||||
candidates.push(`deepseek/${id}`);
|
||||
candidates.push(`deepseek/${id.replace(/^deepseek-v(\d+)-(\d+)/, "deepseek-v$1.$2")}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("glm-")) {
|
||||
const normalized = id
|
||||
.replace(/^glm-(\d+)-(\d+)/, "glm-$1.$2")
|
||||
.replace(/^glm-(\d+)-(\d+)v/, "glm-$1.$2v");
|
||||
candidates.push(`z-ai/${id}`);
|
||||
candidates.push(`z-ai/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("kimi-")) {
|
||||
const normalized = id.replace(/^(kimi-k\d+)-(\d+)/, "$1.$2");
|
||||
candidates.push(`moonshotai/${id}`);
|
||||
candidates.push(`moonshotai/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("minimax-")) {
|
||||
const normalized = id.replace(/^minimax-m(\d+)-(\d+)/, "minimax-m$1.$2");
|
||||
candidates.push(`minimax/${id}`);
|
||||
candidates.push(`minimax/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("mimo-")) {
|
||||
const normalized = id.replace(/^mimo-v(\d+)-(\d+)/, "mimo-v$1.$2");
|
||||
candidates.push(`xiaomi/${id}`);
|
||||
candidates.push(`xiaomi/${normalized}`);
|
||||
}
|
||||
|
||||
if (id.startsWith("qwen")) {
|
||||
const normalized = id.replace(/^(qwen\d+)-(\d+)/, "$1.$2");
|
||||
candidates.push(`qwen/${id}`);
|
||||
candidates.push(`qwen/${normalized}`);
|
||||
}
|
||||
|
||||
return [...new Set(candidates)];
|
||||
}
|
||||
|
||||
export function buildEmpiriolabsModel(
|
||||
model: EmpiriolabsModel,
|
||||
existing: ExistingModel | undefined,
|
||||
baseModel = existing?.base_model ?? resolveEmpiriolabsBaseModel(model.id),
|
||||
): SyncedModel | undefined {
|
||||
const features = new Set(model.features ?? []);
|
||||
const capabilities = (model.capabilities ?? {}) as Record<string, unknown>;
|
||||
const input = modalities(model.input_modalities, ["text"]);
|
||||
const output = modalities(model.output_modalities, ["text"]);
|
||||
const attachment = input.some((value) => value !== "text");
|
||||
const reasoning =
|
||||
capabilities.reasoning === true || features.has("reasoning") || existing?.reasoning === true;
|
||||
const toolCall =
|
||||
features.has("function_calling") || features.has("tools") || existing?.tool_call === true;
|
||||
const structuredOutput = features.has("structured_output") || existing?.structured_output === true;
|
||||
const temperature =
|
||||
(model.supported_parameters ?? []).some((parameter) => parameter.name === "temperature")
|
||||
|| existing?.temperature === true;
|
||||
|
||||
const pricingTiers = model.pricing === undefined
|
||||
? []
|
||||
: Array.isArray(model.pricing)
|
||||
? [...model.pricing].sort((a, b) => (a.min_context ?? 0) - (b.min_context ?? 0))
|
||||
: [model.pricing];
|
||||
const baseCost = tierCost(pricingTiers[0]);
|
||||
const contextTiers = pricingTiers
|
||||
.slice(1)
|
||||
.map((tier) => {
|
||||
const tierPricing = tierCost(tier);
|
||||
return tierPricing === undefined || tier.min_context === undefined || tier.min_context === null
|
||||
? undefined
|
||||
: { tier: { type: "context" as const, size: tier.min_context }, ...tierPricing };
|
||||
})
|
||||
.filter((tier): tier is NonNullable<typeof tier> => tier !== undefined);
|
||||
const cost = baseCost !== undefined
|
||||
? {
|
||||
...baseCost,
|
||||
reasoning: existing?.cost?.reasoning,
|
||||
cache_write: existing?.cost?.cache_write,
|
||||
tiers: contextTiers.length > 0 ? contextTiers : undefined,
|
||||
}
|
||||
: existing?.cost;
|
||||
|
||||
const context =
|
||||
model.context_length ?? model.context_window ?? existing?.limit?.context;
|
||||
// No usable context window: cannot build a valid model TOML, so skip.
|
||||
if (context === undefined || context === null) return undefined;
|
||||
|
||||
const releaseDate = baseModel === undefined
|
||||
? model.model_released_at ?? existing?.release_date
|
||||
: undefined;
|
||||
const lastUpdated = baseModel === undefined
|
||||
? model.model_released_at ?? existing?.last_updated ?? releaseDate
|
||||
: existing?.last_updated ?? releaseDate;
|
||||
const outputTokens = model.max_output_tokens
|
||||
?? parameterOutputLimit(model)
|
||||
?? existing?.limit?.output
|
||||
?? context;
|
||||
const limit = {
|
||||
context,
|
||||
input: existing?.limit?.input,
|
||||
output: outputTokens,
|
||||
};
|
||||
const values: Partial<SyncedFullModel> = {
|
||||
name: model.display_name ?? model.name ?? model.id,
|
||||
description: baseModel === undefined ? existing?.description ?? model.description : existing?.description,
|
||||
family: existing?.family,
|
||||
release_date: releaseDate,
|
||||
last_updated: lastUpdated,
|
||||
attachment,
|
||||
reasoning,
|
||||
reasoning_options: reasoning ? reasoningOptions(model) : undefined,
|
||||
temperature: temperature || undefined,
|
||||
tool_call: toolCall,
|
||||
structured_output:
|
||||
(model.structured_output !== undefined && model.structured_output !== null)
|
||||
|| structuredOutput
|
||||
|| undefined,
|
||||
knowledge: existing?.knowledge,
|
||||
open_weights: existing?.open_weights,
|
||||
status: existing?.status,
|
||||
interleaved: existing?.interleaved,
|
||||
cost,
|
||||
limit,
|
||||
modalities: { input, output },
|
||||
};
|
||||
|
||||
if (baseModel !== undefined) {
|
||||
return factorBaseModel(baseModel, values, limit, existing?.base_model_omit);
|
||||
}
|
||||
|
||||
if (existing === undefined) return undefined;
|
||||
const required = z.object({
|
||||
name: z.string(),
|
||||
description: z.string(),
|
||||
release_date: z.string(),
|
||||
last_updated: z.string(),
|
||||
open_weights: z.boolean(),
|
||||
cost: z.object({ input: z.number(), output: z.number() }),
|
||||
}).safeParse(values);
|
||||
if (!required.success) {
|
||||
throw new Error(`EmpirioLabs model ${model.id} has incomplete local metadata required for sync`);
|
||||
}
|
||||
|
||||
return values as SyncedFullModel;
|
||||
}
|
||||
@@ -15,6 +15,8 @@ const CANONICAL_BASE_MODEL_OVERRIDES = {
|
||||
"openai/gpt-5.6-luna-pro": "openai/gpt-5.6-luna",
|
||||
"openai/gpt-5.6-sol-pro": "openai/gpt-5.6-sol",
|
||||
"openai/gpt-5.6-terra-pro": "openai/gpt-5.6-terra",
|
||||
"anthropic/claude-opus-4.7-fast": "anthropic/claude-opus-4-7",
|
||||
"anthropic/claude-opus-4.8-fast": "anthropic/claude-opus-4-8",
|
||||
} as const;
|
||||
|
||||
const CANONICAL_PROVIDER_PREFIXES = {
|
||||
@@ -33,6 +35,7 @@ const CANONICAL_PROVIDER_PREFIXES = {
|
||||
qwen: { provider: "alibaba", metadata: "alibaba" },
|
||||
stepfun: { provider: "stepfun", metadata: "stepfun" },
|
||||
tencent: { provider: "tencent", metadata: "tencent" },
|
||||
thinkingmachines: { provider: "thinkingmachines", metadata: "thinkingmachines" },
|
||||
"x-ai": { provider: "xai", metadata: "xai" },
|
||||
xai: { provider: "xai", metadata: "xai" },
|
||||
xiaomi: { provider: "xiaomi", metadata: "xiaomi" },
|
||||
@@ -175,9 +178,11 @@ export function buildOpenRouterModel(
|
||||
const prompt = price(model.pricing.prompt);
|
||||
const completion = price(model.pricing.completion);
|
||||
const reasoning = params.has("reasoning") || params.has("include_reasoning");
|
||||
const reasoning_options = existing?.reasoning_options?.length
|
||||
? existing.reasoning_options
|
||||
: openRouterReasoningOptions(model.reasoning) ?? existing?.reasoning_options;
|
||||
// Prefer OpenRouter's live reasoning metadata over authored options so aliases
|
||||
// and rotated models pick up new efforts/budget support. Fall back to authored
|
||||
// only when the API omits a reasoning object.
|
||||
const reasoning_options = openRouterReasoningOptions(model.reasoning)
|
||||
?? (reasoning ? existing?.reasoning_options : undefined);
|
||||
const context = model.context_length;
|
||||
const family = inferFamily(model, name);
|
||||
const releaseDate = dateFromTimestamp(model.created);
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { describeModel } from "../../describe.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://api.pioneer.ai/v1/models";
|
||||
|
||||
const BaseModels: Record<string, string> = {
|
||||
"Qwen/Qwen3.5-9B": "alibaba/qwen3.5-9b",
|
||||
"google/gemma-4-E2B-it": "google/gemma-4-E2B-it",
|
||||
"google/gemma-4-E4B-it": "google/gemma-4-E4B-it",
|
||||
"mistral-medium-3.5": "mistral/mistral-medium-2604",
|
||||
"moonshotai/Kimi-K2.7-Code": "moonshotai/kimi-k2.7-code",
|
||||
"openai/gpt-oss-120b": "openai/gpt-oss-120b",
|
||||
"openai/gpt-oss-20b": "openai/gpt-oss-20b",
|
||||
"sakana/fugu-ultra": "sakana/fugu-ultra",
|
||||
"zai-org/GLM-5.2": "zhipuai/glm-5.2",
|
||||
};
|
||||
|
||||
const Capability = z
|
||||
.object({
|
||||
supported: z.boolean(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const ReasoningEffortValues = [
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
"default",
|
||||
] as const;
|
||||
|
||||
type ReasoningEffort = typeof ReasoningEffortValues[number];
|
||||
|
||||
const ReasoningEfforts = new Set<string>(ReasoningEffortValues);
|
||||
|
||||
const PioneerReasoningLevel = z
|
||||
.object({
|
||||
effort: z.string(),
|
||||
description: z.string().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const PioneerMetadataModel = z
|
||||
.object({
|
||||
slug: z.string(),
|
||||
default_reasoning_level: z.string().nullish(),
|
||||
supported_reasoning_levels: z.array(PioneerReasoningLevel).nullish(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
const PioneerServedModel = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
display_name: z.string(),
|
||||
created: z.number().optional(),
|
||||
created_at: z.string().optional(),
|
||||
max_input_tokens: z.number().int().nonnegative(),
|
||||
max_tokens: z.number().int().nonnegative(),
|
||||
deprecated: z.boolean().optional(),
|
||||
capabilities: z
|
||||
.object({
|
||||
image_input: Capability.optional(),
|
||||
pdf_input: Capability.optional(),
|
||||
structured_outputs: Capability.optional(),
|
||||
thinking: Capability.optional(),
|
||||
})
|
||||
.passthrough(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export const PioneerModel = PioneerServedModel.extend({
|
||||
metadata: PioneerMetadataModel.optional(),
|
||||
});
|
||||
|
||||
export const PioneerResponse = z
|
||||
.object({
|
||||
data: z.array(PioneerServedModel),
|
||||
models: z.array(PioneerMetadataModel).optional().default([]),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export type PioneerModel = z.infer<typeof PioneerModel>;
|
||||
|
||||
export const pioneer = {
|
||||
id: "pioneer",
|
||||
name: "Pioneer",
|
||||
modelsDir: "providers/pioneer/models",
|
||||
skipCreates: true,
|
||||
deleteMissing: false,
|
||||
async fetchModels() {
|
||||
const response = await fetch(API_ENDPOINT);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Pioneer request failed: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
return response.json();
|
||||
},
|
||||
parseModels(raw) {
|
||||
const parsed = PioneerResponse.parse(raw);
|
||||
const metadata = new Map(parsed.models.map((model) => [model.slug, model]));
|
||||
return parsed.data.map((model) => ({
|
||||
...model,
|
||||
metadata: metadata.get(model.id),
|
||||
}));
|
||||
},
|
||||
translateModel(model, context) {
|
||||
return {
|
||||
id: model.id,
|
||||
model: buildPioneerModel(model, context.existing(model.id)),
|
||||
};
|
||||
},
|
||||
missingNotice(paths) {
|
||||
if (paths.length === 0) return [];
|
||||
return [
|
||||
`${paths.length} local model(s) are not present in Pioneer /v1/models and were retained: ${paths.join(", ")}`,
|
||||
];
|
||||
},
|
||||
skippedNotice(ids) {
|
||||
if (ids.length === 0) return [];
|
||||
return [
|
||||
`${ids.length} remote model(s) are present in Pioneer /v1/models but were not created because Pioneer sync is update-only for new models: ${ids.join(", ")}`,
|
||||
];
|
||||
},
|
||||
} satisfies SyncProvider<PioneerModel>;
|
||||
|
||||
function dateFromModel(model: PioneerModel) {
|
||||
if (model.created !== undefined) return new Date(model.created * 1000).toISOString().slice(0, 10);
|
||||
if (model.created_at !== undefined) return model.created_at.slice(0, 10);
|
||||
return "2024-01-01";
|
||||
}
|
||||
|
||||
function supported(model: PioneerModel, capability: keyof PioneerModel["capabilities"]) {
|
||||
return model.capabilities[capability]?.supported === true;
|
||||
}
|
||||
|
||||
function isReasoningEffort(value: string): value is ReasoningEffort {
|
||||
return ReasoningEfforts.has(value);
|
||||
}
|
||||
|
||||
function pioneerReasoningOptions(model: PioneerModel): SyncedFullModel["reasoning_options"] {
|
||||
const levels = model.metadata?.supported_reasoning_levels ?? [];
|
||||
if (levels.length === 0) return undefined;
|
||||
|
||||
const unsupported = levels
|
||||
.map((level) => level.effort)
|
||||
.filter((effort) => !isReasoningEffort(effort));
|
||||
if (unsupported.length > 0) {
|
||||
throw new Error(
|
||||
`Unsupported Pioneer reasoning effort(s) for ${model.id}: ${[...new Set(unsupported)].join(", ")}`,
|
||||
);
|
||||
}
|
||||
|
||||
const values = [...new Set(levels.map((level) => level.effort).filter(isReasoningEffort))];
|
||||
return values.length > 0 ? [{ type: "effort", values }] : undefined;
|
||||
}
|
||||
|
||||
function buildPioneerModel(
|
||||
model: PioneerModel,
|
||||
existing: ExistingModel | undefined,
|
||||
): SyncedModel {
|
||||
const status = model.deprecated === true ? "deprecated" : existing?.status;
|
||||
const baseModel = existing?.base_model ?? BaseModels[model.id];
|
||||
const apiReasoningOptions = pioneerReasoningOptions(model);
|
||||
const reasoning = apiReasoningOptions !== undefined || supported(model, "thinking") || existing?.reasoning === true;
|
||||
const reasoningOptions = apiReasoningOptions ?? (reasoning ? existing?.reasoning_options : undefined);
|
||||
const interleaved = reasoning ? (existing?.interleaved ?? { field: "reasoning_content" as const }) : undefined;
|
||||
|
||||
if (baseModel !== undefined) {
|
||||
const limit = {
|
||||
context: model.max_input_tokens,
|
||||
input: existing?.limit?.input,
|
||||
output: model.max_tokens,
|
||||
};
|
||||
return factorBaseModel(baseModel, {
|
||||
cost: existing?.cost,
|
||||
reasoning: apiReasoningOptions !== undefined ? true : undefined,
|
||||
reasoning_options: reasoningOptions,
|
||||
status,
|
||||
interleaved,
|
||||
limit,
|
||||
}, limit, existing?.base_model_omit);
|
||||
}
|
||||
|
||||
const input = [
|
||||
"text",
|
||||
supported(model, "image_input") ? "image" : undefined,
|
||||
supported(model, "pdf_input") ? "pdf" : undefined,
|
||||
].filter((value): value is "text" | "image" | "pdf" => value !== undefined);
|
||||
|
||||
return {
|
||||
name: existing?.name ?? model.display_name,
|
||||
description: existing?.description ?? describeModel({
|
||||
id: model.id,
|
||||
providerId: "pioneer",
|
||||
name: model.display_name,
|
||||
family: existing?.family,
|
||||
reasoning,
|
||||
tool_call: existing?.tool_call ?? true,
|
||||
structured_output: supported(model, "structured_outputs") || undefined,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
modalities: { input, output: ["text"] },
|
||||
}),
|
||||
family: existing?.family,
|
||||
release_date: existing?.release_date ?? dateFromModel(model),
|
||||
last_updated: existing?.last_updated ?? dateFromModel(model),
|
||||
attachment: input.some((value) => value !== "text"),
|
||||
reasoning,
|
||||
reasoning_options: reasoningOptions,
|
||||
temperature: existing?.temperature ?? true,
|
||||
tool_call: existing?.tool_call ?? true,
|
||||
structured_output: supported(model, "structured_outputs") || undefined,
|
||||
knowledge: existing?.knowledge,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
status,
|
||||
interleaved,
|
||||
cost: existing?.cost,
|
||||
limit: {
|
||||
context: model.max_input_tokens,
|
||||
input: existing?.limit?.input,
|
||||
output: model.max_tokens,
|
||||
},
|
||||
modalities: { input, output: ["text"] },
|
||||
};
|
||||
}
|
||||
@@ -134,7 +134,7 @@ export function buildVercelModel(model: VercelModel, existing: ExistingModel | u
|
||||
attachment: existing?.attachment ?? (tags.has("vision") || tags.has("file-input")),
|
||||
reasoning: existing?.reasoning ?? tags.has("reasoning"),
|
||||
reasoning_options: existing?.reasoning_options,
|
||||
temperature: true,
|
||||
temperature: existing?.temperature,
|
||||
tool_call: model.type === "language"
|
||||
? existing?.tool_call ?? tags.has("tool-use")
|
||||
: tags.has("tool-use"),
|
||||
|
||||
@@ -13,3 +13,8 @@ test("Kimi family inference preserves thinking variants", () => {
|
||||
expect(inferKimiFamily("Kimi K2.5 Thinking")).toBe("kimi-thinking");
|
||||
expect(inferKimiFamily("moonshotai/kimi-k2.6:thinking")).toBe("kimi-thinking");
|
||||
});
|
||||
|
||||
test("Kimi family inference maps K3 to its own family", () => {
|
||||
expect(inferKimiFamily("moonshotai/kimi-k3")).toBe("kimi-k3");
|
||||
expect(inferKimiFamily("Kimi K3")).toBe("kimi-k3");
|
||||
});
|
||||
@@ -37,8 +37,16 @@ function stable(value: unknown): string {
|
||||
describe("catalog generation", () => {
|
||||
test("base_model can factor metadata without changing provider JSON", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(root, "providers/direct/provider.toml", providerToml("Direct"));
|
||||
await write(root, "providers/factored/provider.toml", providerToml("Factored"));
|
||||
await write(
|
||||
root,
|
||||
"providers/direct/provider.toml",
|
||||
providerToml("Direct"),
|
||||
);
|
||||
await write(
|
||||
root,
|
||||
"providers/factored/provider.toml",
|
||||
providerToml("Factored"),
|
||||
);
|
||||
await write(root, "models/lab/model.toml", modelMetadataToml());
|
||||
await write(
|
||||
root,
|
||||
@@ -100,7 +108,11 @@ cache_read = 0.125
|
||||
|
||||
test("base_model_omit removes inherited metadata fields", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(root, "providers/provider/provider.toml", providerToml("Provider"));
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/provider.toml",
|
||||
providerToml("Provider"),
|
||||
);
|
||||
await write(root, "models/lab/model.toml", modelMetadataToml());
|
||||
await write(
|
||||
root,
|
||||
@@ -132,7 +144,11 @@ output = 32_000
|
||||
|
||||
test("base_model can inherit sibling fields from partial object overrides", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(root, "providers/provider/provider.toml", providerToml("Provider"));
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/provider.toml",
|
||||
providerToml("Provider"),
|
||||
);
|
||||
await write(root, "models/lab/model.toml", modelMetadataToml());
|
||||
await write(
|
||||
root,
|
||||
@@ -169,6 +185,49 @@ input = ["text"]
|
||||
});
|
||||
});
|
||||
|
||||
test("provider request defaults and variants are emitted unchanged", async () => {
|
||||
await withFixture(async (root) => {
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/provider.toml",
|
||||
providerToml("Provider"),
|
||||
);
|
||||
await write(
|
||||
root,
|
||||
"providers/provider/models/model.toml",
|
||||
`${providerFieldsToml()}
|
||||
|
||||
[variants.none.thinking]
|
||||
type = "disabled"
|
||||
|
||||
[variants.thinking.thinking]
|
||||
type = "adaptive"
|
||||
|
||||
[provider]
|
||||
variant = "thinking"
|
||||
body = { thinking = { type = "adaptive" } }
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 2.50
|
||||
`,
|
||||
);
|
||||
|
||||
const providers = await generate(path.join(root, "providers"));
|
||||
|
||||
expect(providers.provider?.models.model).toMatchObject({
|
||||
variants: {
|
||||
none: { thinking: { type: "disabled" } },
|
||||
thinking: { thinking: { type: "adaptive" } },
|
||||
},
|
||||
provider: {
|
||||
variant: "thinking",
|
||||
body: { thinking: { type: "adaptive" } },
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test("repository provider TOMLs do not use legacy extends tables", async () => {
|
||||
const root = path.join(import.meta.dirname, "..", "..", "..");
|
||||
const matches: string[] = [];
|
||||
@@ -191,7 +250,10 @@ input = ["text"]
|
||||
for (const [providerID, provider] of Object.entries(providers)) {
|
||||
for (const [modelID, model] of Object.entries(provider.models)) {
|
||||
const encoded = stable(model);
|
||||
if (encoded.includes("base_model") || encoded.includes("base_model_omit")) {
|
||||
if (
|
||||
encoded.includes("base_model") ||
|
||||
encoded.includes("base_model_omit")
|
||||
) {
|
||||
leaked.push(`${providerID}/${modelID}`);
|
||||
}
|
||||
}
|
||||
@@ -228,7 +290,7 @@ input = ["text"]
|
||||
"zai",
|
||||
];
|
||||
const namespaceDirs = providerNamespaces.filter((namespace) =>
|
||||
existsSync(path.join(root, "models", namespace))
|
||||
existsSync(path.join(root, "models", namespace)),
|
||||
);
|
||||
const baseModelRefs: string[] = [];
|
||||
|
||||
|
||||
@@ -29,6 +29,33 @@ describe("model schema", () => {
|
||||
|
||||
expect(AuthoredModel.safeParse(model).success).toBe(false);
|
||||
});
|
||||
|
||||
test("accepts provider request variants", () => {
|
||||
const model = baseModel({
|
||||
reasoning: true,
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
variants: {
|
||||
none: { chat_template_kwargs: { thinking_mode: "disabled" } },
|
||||
thinking: { chat_template_kwargs: { thinking_mode: "enabled" } },
|
||||
},
|
||||
});
|
||||
|
||||
expect(AuthoredModel.parse(model).variants).toEqual({
|
||||
none: { chat_template_kwargs: { thinking_mode: "disabled" } },
|
||||
thinking: { chat_template_kwargs: { thinking_mode: "enabled" } },
|
||||
});
|
||||
});
|
||||
|
||||
test("rejects an undeclared provider default variant", () => {
|
||||
const model = baseModel({
|
||||
reasoning: true,
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
variants: { none: { thinking: { type: "disabled" } } },
|
||||
provider: { variant: "thinking" },
|
||||
});
|
||||
|
||||
expect(AuthoredModel.safeParse(model).success).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
function baseModel(overrides: Partial<AuthoredModelData>) {
|
||||
|
||||
@@ -19,6 +19,12 @@ import {
|
||||
resolveDigitalOceanBaseModel,
|
||||
type DigitalOceanSourceModel,
|
||||
} from "../src/sync/providers/digitalocean.js";
|
||||
import {
|
||||
buildEmpiriolabsModel,
|
||||
empiriolabs,
|
||||
resolveEmpiriolabsBaseModel,
|
||||
type EmpiriolabsModel,
|
||||
} from "../src/sync/providers/empiriolabs.js";
|
||||
import {
|
||||
buildOpenRouterModel,
|
||||
openrouter,
|
||||
@@ -960,7 +966,7 @@ test("resolves Venice Pro routes to canonical OpenAI metadata", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test("preserves authored OpenRouter reasoning options over model metadata", () => {
|
||||
test("prefers OpenRouter API reasoning options over authored ones", () => {
|
||||
const model = buildOpenRouterModel(openRouterModel({
|
||||
reasoning: {
|
||||
mandatory: false,
|
||||
@@ -981,6 +987,32 @@ test("preserves authored OpenRouter reasoning options over model metadata", () =
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
});
|
||||
|
||||
expect(model).toMatchObject({
|
||||
reasoning_options: [
|
||||
{ type: "effort", values: ["max", "xhigh", "high", "medium", "low"] },
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
test("keeps authored OpenRouter reasoning options when API omits reasoning metadata", () => {
|
||||
const model = buildOpenRouterModel(openRouterModel({
|
||||
supported_parameters: ["tools", "tool_choice", "reasoning", "temperature"],
|
||||
reasoning: undefined,
|
||||
}), {
|
||||
name: "Claude Sonnet 5",
|
||||
description: "Balanced Claude model for coding and agentic workflows",
|
||||
release_date: "2026-06-30",
|
||||
last_updated: "2026-06-30",
|
||||
attachment: true,
|
||||
reasoning: true,
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
tool_call: true,
|
||||
open_weights: false,
|
||||
cost: { input: 2, output: 10 },
|
||||
limit: { context: 1_000_000, output: 128_000 },
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
});
|
||||
|
||||
expect(model).toMatchObject({
|
||||
reasoning_options: [{ type: "toggle" }],
|
||||
});
|
||||
@@ -1083,6 +1115,39 @@ test("parses Vercel pricing tiers with an implicit zero minimum", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test("Vercel factored models inherit temperature from base metadata", () => {
|
||||
const [model] = vercel.parseModels({
|
||||
data: [{
|
||||
id: "moonshotai/kimi-k3",
|
||||
name: "Kimi K3",
|
||||
created: 1_784_160_000,
|
||||
context_window: 1_000_000,
|
||||
max_tokens: 131_072,
|
||||
type: "language",
|
||||
tags: ["reasoning", "tool-use", "vision"],
|
||||
pricing: {
|
||||
input: "0.000003",
|
||||
output: "0.000015",
|
||||
input_cache_read: "0.0000003",
|
||||
},
|
||||
}],
|
||||
});
|
||||
|
||||
const synced = buildVercelModel(model!, {
|
||||
base_model: "moonshotai/kimi-k3",
|
||||
name: "Kimi K3",
|
||||
description: "Kimi multimodal agent model for visual understanding, coding, and planning",
|
||||
open_weights: false,
|
||||
reasoning_options: [],
|
||||
cost: { input: 3, output: 15, cache_read: 0.3 },
|
||||
limit: { context: 1_000_000 },
|
||||
modalities: { input: ["text", "image", "pdf"], output: ["text"] },
|
||||
});
|
||||
|
||||
expect(synced).toMatchObject({ base_model: "moonshotai/kimi-k3" });
|
||||
expect(synced).not.toHaveProperty("temperature");
|
||||
});
|
||||
|
||||
test("skips LLM Gateway base_model factoring when no metadata entry exists", () => {
|
||||
const model = buildLLMGatewayModel(
|
||||
llmGatewayModel({ id: "claude-fable-does-not-exist" }),
|
||||
@@ -1190,6 +1255,71 @@ test("skips an unavailable OpenRouter stub with no authored file", () => {
|
||||
expect(translated).toBeUndefined();
|
||||
});
|
||||
|
||||
test("parses nullable EmpirioLabs release dates", () => {
|
||||
expect(empiriolabs.parseModels({
|
||||
data: [{ id: "unknown-text-model", category: "text", model_released_at: null }],
|
||||
})).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("syncs EmpirioLabs pricing tiers and reasoning controls", () => {
|
||||
const model: EmpiriolabsModel = {
|
||||
id: "minimax-m3",
|
||||
display_name: "MiniMax M3",
|
||||
category: "text",
|
||||
context_length: 1_000_000,
|
||||
max_output_tokens: null,
|
||||
capabilities: { reasoning: true },
|
||||
features: ["reasoning", "function_calling"],
|
||||
structured_output: "json_object",
|
||||
input_modalities: ["text", "image", "video"],
|
||||
output_modalities: ["text"],
|
||||
supported_parameters: [
|
||||
{ name: "temperature" },
|
||||
{ name: "max_completion_tokens", max: 524_288 },
|
||||
{ name: "enable_thinking" },
|
||||
{ name: "reasoning_effort", options: ["none", "low", "medium", "high", "max"] },
|
||||
{ name: "thinking_budget", min: 1_024, max: 32_768 },
|
||||
],
|
||||
pricing: [
|
||||
{ prompt: "0.000000225", completion: "0.0000009", input_cache_read: "0.000000045" },
|
||||
{
|
||||
prompt: "0.00000045",
|
||||
completion: "0.0000018",
|
||||
input_cache_read: "0.000000045",
|
||||
min_context: 512_000,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
expect(buildEmpiriolabsModel(model, { base_model: "minimax/MiniMax-M3" })).toMatchObject({
|
||||
base_model: "minimax/MiniMax-M3",
|
||||
structured_output: true,
|
||||
reasoning_options: [
|
||||
{ type: "toggle" },
|
||||
{ type: "effort", values: ["none", "low", "medium", "high", "max"] },
|
||||
{ type: "budget_tokens", min: 1_024, max: 32_768 },
|
||||
],
|
||||
cost: {
|
||||
input: 0.225,
|
||||
output: 0.9,
|
||||
cache_read: 0.045,
|
||||
tiers: [{
|
||||
tier: { type: "context", size: 512_000 },
|
||||
input: 0.45,
|
||||
output: 1.8,
|
||||
cache_read: 0.045,
|
||||
}],
|
||||
},
|
||||
limit: { context: 1_000_000, output: 524_288 },
|
||||
});
|
||||
});
|
||||
|
||||
test("maps EmpirioLabs aliases to canonical model metadata", () => {
|
||||
expect(resolveEmpiriolabsBaseModel("fugu-ultra")).toBe("sakana/fugu-ultra");
|
||||
expect(resolveEmpiriolabsBaseModel("muse-spark-1-1")).toBe("meta/muse-spark-1.1");
|
||||
expect(resolveEmpiriolabsBaseModel("step-3-5-flash")).toBe("stepfun/step-3.5-flash");
|
||||
});
|
||||
|
||||
function unavailableStub(): OpenRouterModel {
|
||||
return openRouterModel({
|
||||
id: "~anthropic/claude-fable-latest",
|
||||
|
||||
@@ -62,10 +62,13 @@ export type ModelFamily =
|
||||
| "gpt-codex-mini"
|
||||
| "gpt-codex-spark"
|
||||
| "gpt-image"
|
||||
| "gpt-luna"
|
||||
| "gpt-mini"
|
||||
| "gpt-nano"
|
||||
| "gpt-oss"
|
||||
| "gpt-pro"
|
||||
| "gpt-sol"
|
||||
| "gpt-terra"
|
||||
| "granite"
|
||||
| "grok"
|
||||
| "grok-beta"
|
||||
@@ -87,6 +90,7 @@ export type ModelFamily =
|
||||
| "kimi-free"
|
||||
| "kimi-k2"
|
||||
| "kimi-thinking"
|
||||
| "laguna"
|
||||
| "ling"
|
||||
| "ling-flash-free"
|
||||
| "liquid"
|
||||
@@ -130,6 +134,7 @@ export type ModelFamily =
|
||||
| "mm-poly"
|
||||
| "model-router"
|
||||
| "morph"
|
||||
| "muse"
|
||||
| "nano-banana"
|
||||
| "nemoretriever"
|
||||
| "nemotron"
|
||||
|
||||
@@ -192,6 +192,8 @@ export interface ModelProviderConfig {
|
||||
api?: string
|
||||
/** API shape when the npm package supports multiple. */
|
||||
shape?: "responses" | "completions"
|
||||
/** Variant selected when a request does not choose one explicitly. */
|
||||
variant?: string
|
||||
/** Extra request body fields required by this model. */
|
||||
body?: Record<string, JsonValue>
|
||||
/** Extra request headers required by this model. */
|
||||
@@ -214,6 +216,8 @@ export interface Model {
|
||||
reasoning: boolean
|
||||
/** Present exactly when `reasoning` is true. */
|
||||
reasoning_options?: ReasoningOption[]
|
||||
/** Provider-authored request body variants keyed by variant ID. */
|
||||
variants?: Record<string, Record<string, JsonValue>>
|
||||
/** Supports tool/function calling. */
|
||||
tool_call: boolean
|
||||
/** Supports interleaved thinking between tool calls. */
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
||||
<path fill="currentColor" d="M12 18a6 6 0 0 1 6-6h28a6 6 0 0 1 6 6v28a6 6 0 0 1-6 6H18a6 6 0 0 1-6-6V18Zm6-1.5a1.5 1.5 0 0 0-1.5 1.5v28a1.5 1.5 0 0 0 1.5 1.5h28a1.5 1.5 0 0 0 1.5-1.5V18a1.5 1.5 0 0 0-1.5-1.5H18Z"/>
|
||||
<path fill="currentColor" d="M20 23.5a2.5 2.5 0 0 1 2.5-2.5h19a2.5 2.5 0 0 1 0 5h-19a2.5 2.5 0 0 1-2.5-2.5ZM20 32a2.5 2.5 0 0 1 2.5-2.5h8.8a2.5 2.5 0 0 1 0 5h-8.8A2.5 2.5 0 0 1 20 32ZM20 40.5a2.5 2.5 0 0 1 2.5-2.5h19a2.5 2.5 0 0 1 0 5h-19a2.5 2.5 0 0 1-2.5-2.5Z"/>
|
||||
<path fill="currentColor" d="M34.6 31.9c0-.9.7-1.6 1.6-1.6h5.7l-2.2-2.2a1.6 1.6 0 1 1 2.2-2.2l5 5a1.6 1.6 0 0 1 0 2.3l-5 5a1.6 1.6 0 0 1-2.2-2.3l2.2-2.1h-5.7c-.9 0-1.6-.8-1.6-1.7Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 749 B |
@@ -0,0 +1,8 @@
|
||||
# Pricing and supported reasoning values: https://ai-router.dev/pricing/
|
||||
base_model = "openai/gpt-5.4"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh"] }]
|
||||
|
||||
[cost]
|
||||
input = 2.50
|
||||
output = 15.00
|
||||
cache_read = 0.25
|
||||
@@ -0,0 +1,8 @@
|
||||
# Pricing and supported reasoning values: https://ai-router.dev/pricing/
|
||||
base_model = "openai/gpt-5.5"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh"] }]
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 30.00
|
||||
cache_read = 0.50
|
||||
@@ -0,0 +1,9 @@
|
||||
# Pricing and supported reasoning values: https://ai-router.dev/pricing/
|
||||
base_model = "openai/gpt-5.6-luna"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 1.00
|
||||
output = 6.00
|
||||
cache_read = 0.10
|
||||
cache_write = 1.25
|
||||
@@ -0,0 +1,9 @@
|
||||
# Pricing and supported reasoning values: https://ai-router.dev/pricing/
|
||||
base_model = "openai/gpt-5.6-sol"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 30.00
|
||||
cache_read = 0.50
|
||||
cache_write = 6.25
|
||||
@@ -0,0 +1,9 @@
|
||||
# Pricing and supported reasoning values: https://ai-router.dev/pricing/
|
||||
base_model = "openai/gpt-5.6-terra"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 2.50
|
||||
output = 15.00
|
||||
cache_read = 0.25
|
||||
cache_write = 3.125
|
||||
@@ -0,0 +1,5 @@
|
||||
name = "AI-ROUTER"
|
||||
env = ["AI_ROUTER_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
doc = "https://ai-router.dev/openai-compatible-api-gateway/"
|
||||
api = "https://api.ai-router.dev/v1"
|
||||
@@ -0,0 +1,18 @@
|
||||
base_model = "anthropic/claude-fable-5"
|
||||
structured_output = true
|
||||
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
|
||||
interleaved = true
|
||||
|
||||
[cost]
|
||||
input = 11
|
||||
output = 55
|
||||
cache_read = 1.1
|
||||
cache_write = 13.75
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,19 @@
|
||||
base_model = "anthropic/claude-sonnet-5"
|
||||
structured_output = true
|
||||
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
|
||||
interleaved = true
|
||||
temperature = false
|
||||
|
||||
[cost]
|
||||
input = 2
|
||||
output = 10
|
||||
cache_read = 0.2
|
||||
cache_write = 2.5
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,15 @@
|
||||
base_model = "google/gemini-3.5-flash"
|
||||
reasoning_options = [{ type = "effort", values = ["minimal", "low", "medium", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 1.5
|
||||
output = 9
|
||||
cache_read = 1.5
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
base_model = "openai/gpt-5.6-luna"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
temperature = false
|
||||
|
||||
[cost]
|
||||
input = 1
|
||||
output = 6
|
||||
cache_read = 0.1
|
||||
cache_write = 1.25
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
base_model = "openai/gpt-5.6-sol"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
temperature = false
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
output = 30
|
||||
cache_read = 0.5
|
||||
cache_write = 6.25
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
base_model = "openai/gpt-5.6-terra"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
temperature = false
|
||||
|
||||
[cost]
|
||||
input = 2.5
|
||||
output = 15
|
||||
cache_read = 0.25
|
||||
cache_write = 3.125
|
||||
|
||||
[limit]
|
||||
context = 1_050_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,15 @@
|
||||
base_model = "xai/grok-4.5"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 2
|
||||
output = 6
|
||||
cache_read = 0.5
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 1_000_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,15 @@
|
||||
base_model = "xai/grok-build-0.1"
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 1
|
||||
output = 2
|
||||
cache_read = 0.2
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 256_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
base_model = "tencent/hy3-preview"
|
||||
name = "Hy3 Preview"
|
||||
structured_output = true
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 0.17
|
||||
output = 0.566661
|
||||
cache_read = 0.051
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,18 @@
|
||||
base_model = "moonshotai/kimi-k2.7-code-highspeed"
|
||||
reasoning_options = [{ type = "toggle" }]
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 1.9
|
||||
output = 7.999
|
||||
cache_read = 0.32167
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,18 @@
|
||||
base_model = "moonshotai/kimi-k2.7-code"
|
||||
reasoning_options = [{ type = "toggle" }]
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.95
|
||||
output = 3.9995
|
||||
cache_read = 0.160835
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "video"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="AKI" viewBox="0 0 1032 541" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M227.434 426.492C241.817 426.492 254.065 421.468 264.178 411.421C274.291 401.373 279.347 389.205 279.347 374.916C279.347 360.626 274.291 348.458 264.178 338.411C254.065 328.363 241.817 323.34 227.434 323.34C213.051 323.34 200.916 328.363 191.028 338.411C181.139 348.458 176.195 360.626 176.195 374.916C176.195 389.205 181.139 401.373 191.028 411.421C200.916 421.468 213.051 426.492 227.434 426.492Z" fill="currentColor"/>
|
||||
<path d="M551.404 540.827C578.288 540.827 591.73 530.096 591.73 508.632V392.224C591.73 380.34 595.962 368.846 603.668 359.8L767.147 167.897L857.208 63.2622C863.033 57.4492 865.946 50.5182 865.946 42.4694C865.946 37.5506 864.265 32.6319 860.905 27.7131C857.545 22.7944 853.4 17.8756 848.471 12.9569C838.614 4.4609 828.98 0.212891 819.571 0.212891C811.058 0.212891 803.441 4.23732 796.72 12.2862L632.222 204.977C618.344 221.235 591.73 211.42 591.73 190.044V33.079C591.73 11.6154 578.288 0.883628 551.404 0.883628C524.968 0.883628 511.75 11.6154 511.75 33.079V508.632C511.75 530.096 524.968 540.827 551.404 540.827Z" fill="currentColor"/>
|
||||
<path d="M850.435 530.887C854.006 530.887 858.023 529.991 862.486 528.199C866.95 526.407 871.636 523.944 876.546 520.809H875.877C887.482 511.85 893.284 501.548 893.284 489.903C893.284 482.736 891.275 476.018 887.258 469.747L887.927 470.419L758.711 280.953C752.909 271.099 745.766 266.172 737.286 266.172C728.359 266.172 719.432 269.307 710.505 275.578H711.174C700.016 283.64 694.438 294.39 694.438 307.827C694.438 316.786 696.669 324.4 701.133 330.671L828.341 516.777C831.912 520.809 835.594 524.168 839.388 526.855C843.182 529.543 846.864 530.887 850.435 530.887Z" fill="currentColor"/>
|
||||
<path d="M991.13 540.827C1017.87 540.827 1031.23 530.082 1031.23 508.592V32.4483C1031.23 10.958 1017.87 0.212891 991.13 0.212891C964.84 0.212891 951.695 10.958 951.695 32.4483V508.592C951.695 530.082 964.84 540.827 991.13 540.827Z" fill="currentColor"/>
|
||||
<path d="M166.574 39.4507C179.017 5.26711 192.773 -0.84076 228.468 0.0863643C266.819 1.08248 283.352 20.8063 290.116 38.7831L290.363 39.4507L454.36 483.461C462.812 506.68 449.598 528.626 426.379 537.078C403.392 545.446 381.727 537.525 373.021 514.762L247.184 180.7C240.68 163.433 216.256 163.433 209.752 180.7L84.1747 514.069C75.8072 537.056 54.2883 545.29 31.2548 537.326L30.5575 537.078C7.5707 528.711 -5.63476 507.192 2.32928 484.159L166.574 39.4507Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,14 @@
|
||||
# attachment are not supported on AKI.IO for security reasons and therefore are disabled
|
||||
# AKI.IO uses the reasoning_option 'none' to disable reasoning
|
||||
base_model = "google/gemma-4-26b-a4b-it"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["none", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 0.10
|
||||
output = 0.50
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 32_768
|
||||
@@ -0,0 +1,14 @@
|
||||
# attachment are not supported on AKI.IO for security reasons and therefore are disabled
|
||||
base_model = "openai/gpt-oss-120b"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 0.15
|
||||
output = 0.55
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
output = 32_768
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# attachment are not supported on AKI.IO for security reasons and therefore are disabled
|
||||
# AKI.IO supports a reduced set of input modalities, thats why the description of the base model are overridden
|
||||
base_model = "moonshotai/kimi-k2.7-code"
|
||||
attachment = false
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.86
|
||||
output = 3.00
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 81_920
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
@@ -0,0 +1,12 @@
|
||||
# attachment are not supported on AKI.IO for security reasons and therefore are disabled
|
||||
base_model = "minimax/MiniMax-M2.5"
|
||||
attachment = false
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.25
|
||||
output = 1.20
|
||||
|
||||
[limit]
|
||||
context = 196_608
|
||||
output = 65_536
|
||||
@@ -0,0 +1,17 @@
|
||||
# attachment are not supported on AKI.IO for security reasons and therefore are disabled
|
||||
# AKI.IO uses the reasoning_option 'none' to disable reasoning
|
||||
base_model = "mistral/mistral-small-2603"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["none", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 0.20
|
||||
output = 0.60
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 81_920
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
@@ -0,0 +1,17 @@
|
||||
# attachment are not supported on AKI.IO for security reasons and therefore are disabled
|
||||
# AKI.IO uses the reasoning_option 'none' to disable reasoning
|
||||
base_model = "alibaba/qwen3.6-35b-a3b"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["none", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 0.15
|
||||
output = 0.50
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 32_768
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
@@ -0,0 +1,5 @@
|
||||
name = "AKI.IO"
|
||||
env = ["AKI_IO_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
doc = "https://aki.io/docs/"
|
||||
api = "https://aki.io/v1"
|
||||
@@ -0,0 +1,33 @@
|
||||
# Sources (accessed 2026-07-20):
|
||||
# https://platform.qianwenai.com/docs/token-plan/personal/token-plan-personal-overview
|
||||
# https://platform.qianwenai.com/docs/token-plan/personal/token-plan-personal-quickstart
|
||||
# https://platform.qianwenai.com/docs/developer-guides/clients-and-developer-tools/opencode
|
||||
# https://platform.qianwenai.com/docs/developer-guides/clients-and-developer-tools/kilo-cli
|
||||
# https://platform.qianwenai.com/docs/developer-guides/text-generation/thinking
|
||||
# https://platform.qianwenai.com/docs/api-reference/chat/openai-chat
|
||||
# Thinking is always enabled. In thinking mode, temperature defaults to 0.6
|
||||
# and values below 0.6 are raised to 0.6. This provider uses the OpenAI-compatible
|
||||
# Chat API, whose native qwen3.8 effort values are low/medium/xhigh (default
|
||||
# xhigh); the standard high value is accepted as an alias and maps to xhigh.
|
||||
# The OpenCode guide labels its tiers low/high/xhigh and configures a 262144-token
|
||||
# thinking budget for the China endpoint. `thinking_budget` (0..262144) cannot
|
||||
# be combined with `reasoning_effort`. A zero budget maps to low effort; it does
|
||||
# not disable thinking. API: {"reasoning_effort":"medium"} or
|
||||
# {"thinking_budget":16384}. `preserve_thinking` defaults to true, so clients must
|
||||
# replay every historical `reasoning_content` value unchanged.
|
||||
|
||||
base_model = "alibaba/qwen3.8-max-preview"
|
||||
reasoning_options = [
|
||||
{ type = "effort", values = ["low", "medium", "xhigh"] },
|
||||
{ type = "budget_tokens", min = 0, max = 262_144 },
|
||||
]
|
||||
status = "beta"
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0
|
||||
output = 0
|
||||
cache_read = 0
|
||||
cache_write = 0
|
||||
@@ -1,17 +1,24 @@
|
||||
name = "Alibaba Token Plan (China)"
|
||||
env = ["ALIBABA_TOKEN_PLAN_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
# Reasoning HTTP format (accessed 2026-06-25):
|
||||
# OpenAI plan base .../compatible-mode/v1 uses POST /chat/completions with
|
||||
# top-level `enable_thinking`: true or false and integer `thinking_budget`.
|
||||
# Reasoning HTTP format (accessed 2026-07-20):
|
||||
# The OpenAI plan base .../compatible-mode/v1 uses POST /chat/completions.
|
||||
# Hybrid-thinking models use top-level `enable_thinking` and `thinking_budget`.
|
||||
# qwen3.8-max-preview is always thinking and instead accepts either the canonical
|
||||
# `reasoning_effort` values low, medium, and xhigh or `thinking_budget` from 0 to
|
||||
# 262144. The two controls are mutually exclusive; zero maps to low effort and
|
||||
# does not disable thinking.
|
||||
# POST /responses uses `reasoning.effort`: none, minimal, low, medium, or high;
|
||||
# `thinking_budget` is not accepted there. Anthropic plan base .../apps/anthropic
|
||||
# uses POST /v1/messages with `thinking.type`: enabled or disabled, integer
|
||||
# `thinking.budget_tokens`, and DeepSeek V4-only `reasoning_effort`: high or max.
|
||||
# Sources:
|
||||
# https://platform.qianwenai.com/docs/api-reference/chat/openai-chat
|
||||
# https://platform.qianwenai.com/docs/developer-guides/text-generation/thinking
|
||||
# https://help.aliyun.com/zh/model-studio/token-plan-quickstart
|
||||
# https://help.aliyun.com/zh/model-studio/deep-thinking
|
||||
# https://help.aliyun.com/zh/model-studio/compatibility-with-openai-responses-api
|
||||
# https://www.alibabacloud.com/help/en/model-studio/anthropic-api-messages
|
||||
|
||||
name = "Alibaba Token Plan (China)"
|
||||
env = ["ALIBABA_TOKEN_PLAN_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
doc = "https://www.alibabacloud.com/help/zh/model-studio/token-plan-overview"
|
||||
api = "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"
|
||||
@@ -0,0 +1,33 @@
|
||||
# Sources (accessed 2026-07-20):
|
||||
# https://docs.qwencloud.com/token-plan/personal/token-plan-personal-overview
|
||||
# https://docs.qwencloud.com/token-plan/personal/token-plan-personal-quickstart
|
||||
# https://docs.qwencloud.com/developer-guides/clients-and-developer-tools/opencode
|
||||
# https://docs.qwencloud.com/developer-guides/clients-and-developer-tools/kilo-cli
|
||||
# https://docs.qwencloud.com/developer-guides/text-generation/thinking
|
||||
# https://docs.qwencloud.com/api-reference/chat/openai-chat
|
||||
# Thinking is always enabled. In thinking mode, temperature defaults to 0.6
|
||||
# and values below 0.6 are raised to 0.6. This provider uses the OpenAI-compatible
|
||||
# Chat API, whose native qwen3.8 effort values are low/medium/xhigh (default
|
||||
# xhigh); the standard high value is accepted as an alias and maps to xhigh.
|
||||
# The OpenCode guide labels its tiers low/high/xhigh and configures a 99072-token
|
||||
# thinking budget for the international endpoint. `thinking_budget` (0..262144)
|
||||
# cannot be combined with `reasoning_effort`. A zero budget maps to low effort;
|
||||
# it does not disable thinking. API: {"reasoning_effort":"medium"} or
|
||||
# {"thinking_budget":16384}. `preserve_thinking` defaults to true, so clients must
|
||||
# replay every historical `reasoning_content` value unchanged.
|
||||
|
||||
base_model = "alibaba/qwen3.8-max-preview"
|
||||
reasoning_options = [
|
||||
{ type = "effort", values = ["low", "medium", "xhigh"] },
|
||||
{ type = "budget_tokens", min = 0, max = 262_144 },
|
||||
]
|
||||
status = "beta"
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0
|
||||
output = 0
|
||||
cache_read = 0
|
||||
cache_write = 0
|
||||
@@ -1,17 +1,24 @@
|
||||
name = "Alibaba Token Plan"
|
||||
env = ["ALIBABA_TOKEN_PLAN_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
# Reasoning HTTP format (accessed 2026-06-25):
|
||||
# OpenAI plan base .../compatible-mode/v1 uses POST /chat/completions with
|
||||
# top-level `enable_thinking`: true or false and integer `thinking_budget`.
|
||||
# Reasoning HTTP format (accessed 2026-07-20):
|
||||
# The OpenAI plan base .../compatible-mode/v1 uses POST /chat/completions.
|
||||
# Hybrid-thinking models use top-level `enable_thinking` and `thinking_budget`.
|
||||
# qwen3.8-max-preview is always thinking and instead accepts either the canonical
|
||||
# `reasoning_effort` values low, medium, and xhigh or `thinking_budget` from 0 to
|
||||
# 262144. The two controls are mutually exclusive; zero maps to low effort and
|
||||
# does not disable thinking.
|
||||
# POST /responses uses `reasoning.effort`: none, minimal, low, medium, or high;
|
||||
# `thinking_budget` is not accepted there. Anthropic plan base .../apps/anthropic
|
||||
# uses POST /v1/messages with `thinking.type`: enabled or disabled, integer
|
||||
# `thinking.budget_tokens`, and DeepSeek V4-only `reasoning_effort`: high or max.
|
||||
# Sources:
|
||||
# https://docs.qwencloud.com/api-reference/chat/openai-chat
|
||||
# https://docs.qwencloud.com/developer-guides/text-generation/thinking
|
||||
# https://www.alibabacloud.com/help/en/model-studio/token-plan-quickstart
|
||||
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
|
||||
# https://www.alibabacloud.com/help/en/model-studio/compatibility-with-openai-responses-api
|
||||
# https://www.alibabacloud.com/help/en/model-studio/anthropic-api-messages
|
||||
|
||||
name = "Alibaba Token Plan"
|
||||
env = ["ALIBABA_TOKEN_PLAN_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
doc = "https://www.alibabacloud.com/help/en/model-studio/token-plan-overview"
|
||||
api = "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1"
|
||||
@@ -0,0 +1,20 @@
|
||||
# Bedrock model IDs and reasoning support: https://github.com/openai/codex/pull/30285
|
||||
# In-region pricing: https://aws.amazon.com/bedrock/pricing/
|
||||
base_model = "openai/gpt-5.6-luna"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
base_model_omit = ["cost.tiers", "cost.context_over_200k", "experimental.modes.fast", "limit.input"]
|
||||
|
||||
[cost]
|
||||
input = 1.00
|
||||
output = 6.00
|
||||
cache_read = 0.10
|
||||
cache_write = 1.25
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
output = 128_000
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/amazon-bedrock/mantle"
|
||||
api = "https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1"
|
||||
shape = "responses"
|
||||
@@ -0,0 +1,20 @@
|
||||
# Bedrock model IDs and reasoning support: https://github.com/openai/codex/pull/30285
|
||||
# In-region pricing: https://aws.amazon.com/bedrock/pricing/
|
||||
base_model = "openai/gpt-5.6-sol"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
base_model_omit = ["cost.tiers", "cost.context_over_200k", "experimental.modes.fast", "limit.input"]
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
output = 30.00
|
||||
cache_read = 0.50
|
||||
cache_write = 6.25
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
output = 128_000
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/amazon-bedrock/mantle"
|
||||
api = "https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1"
|
||||
shape = "responses"
|
||||
@@ -0,0 +1,20 @@
|
||||
# Bedrock model IDs and reasoning support: https://github.com/openai/codex/pull/30285
|
||||
# In-region pricing: https://aws.amazon.com/bedrock/pricing/
|
||||
base_model = "openai/gpt-5.6-terra"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
base_model_omit = ["cost.tiers", "cost.context_over_200k", "experimental.modes.fast", "limit.input"]
|
||||
|
||||
[cost]
|
||||
input = 2.50
|
||||
output = 15.00
|
||||
cache_read = 0.25
|
||||
cache_write = 3.125
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
output = 128_000
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/amazon-bedrock/mantle"
|
||||
api = "https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1"
|
||||
shape = "responses"
|
||||
@@ -0,0 +1,17 @@
|
||||
base_model = "zhipuai/glm-5.2"
|
||||
name = "Ambient Large"
|
||||
description = "Flagship GLM model for hybrid reasoning, coding, and agentic engineering"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["high", "max"]
|
||||
|
||||
[cost]
|
||||
input = 1.05
|
||||
output = 4.4
|
||||
cache_read = 0.2
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 101_376
|
||||
output = 101_376
|
||||
@@ -0,0 +1,19 @@
|
||||
base_model = "deepseek/deepseek-v4-flash"
|
||||
description = "Fast DeepSeek model for efficient chat, coding help, and agent loops"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "toggle"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["high", "max"]
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
output = 0.8
|
||||
cache_read = 0.2
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 1_048_576
|
||||
@@ -1,9 +1,11 @@
|
||||
# Kimi K2.7 Code always reasons; disabling thinking is rejected and it exposes
|
||||
# no effort or budget control. https://platform.kimi.ai/docs/guide/use-kimi-k2-thinking-model
|
||||
base_model = "moonshotai/kimi-k2.7-code"
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.75
|
||||
output = 3.5
|
||||
cache_read = 0.16
|
||||
input = 0.85
|
||||
output = 3.8
|
||||
cache_read = 0.17
|
||||
cache_write = 0
|
||||
@@ -0,0 +1,18 @@
|
||||
base_model = "stepfun/step-3.7-flash"
|
||||
base_model_omit = ["limit.input"]
|
||||
description = "StepFun flash model for efficient multimodal reasoning, coding, and tool use"
|
||||
structured_output = true
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["low", "medium", "high"]
|
||||
|
||||
[cost]
|
||||
input = 0.19
|
||||
output = 1.14
|
||||
cache_read = 0.03
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
output = 262_144
|
||||
@@ -0,0 +1,12 @@
|
||||
base_model = "xiaomi/mimo-v2.5"
|
||||
description = "MiMo omni model for text, image, video, audio, and agents"
|
||||
structured_output = true
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "toggle"
|
||||
|
||||
[cost]
|
||||
input = 0.4
|
||||
output = 2
|
||||
cache_read = 0.08
|
||||
cache_write = 0
|
||||
@@ -0,0 +1,16 @@
|
||||
base_model = "zhipuai/glm-5.2"
|
||||
description = "Flagship GLM model for hybrid reasoning, coding, and agentic engineering"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["high", "max"]
|
||||
|
||||
[cost]
|
||||
input = 1.05
|
||||
output = 4.4
|
||||
cache_read = 0.2
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 101_376
|
||||
output = 101_376
|
||||
@@ -0,0 +1,14 @@
|
||||
base_model = "zhipuai/glm-5.2"
|
||||
reasoning_options = [
|
||||
{ type = "effort", values = ["high", "max"] },
|
||||
]
|
||||
|
||||
[cost]
|
||||
input = 1.2
|
||||
output = 4.2
|
||||
cache_read = 0.26
|
||||
cache_write = 0
|
||||
|
||||
[limit]
|
||||
context = 202_752
|
||||
output = 202_752
|
||||
@@ -1,11 +1,14 @@
|
||||
# Ambient's OpenAPI schema exposes reasoning.enabled, reasoning.effort, and
|
||||
# reasoning.max_tokens. Model-specific options follow each model's supported
|
||||
# reasoning modes (sources accessed 2026-07-17).
|
||||
# https://api.ambient.xyz/openapi.json
|
||||
# https://docs.z.ai/guides/capabilities/thinking
|
||||
# https://api-docs.deepseek.com/guides/thinking_mode/
|
||||
# https://platform.xiaomimimo.com/docs/en-US/api/chat/openai-api
|
||||
# https://platform.stepfun.ai/docs/en/guides/models/step-3.7-flash
|
||||
# https://platform.kimi.ai/docs/guide/use-kimi-k2-thinking-model
|
||||
name = "Ambient"
|
||||
env = ["AMBIENT_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
# Raw HTTP reasoning controls (sources accessed 2026-06-25):
|
||||
# POST https://api.ambient.xyz/v1/chat/completions. Ambient's developer
|
||||
# surface documents no reasoning toggle, effort, or token-budget request field.
|
||||
# A reasoning-capable model listing alone does not establish a usable control.
|
||||
# https://ambient.xyz/developers
|
||||
# https://docs.ambient.xyz
|
||||
api = "https://api.ambient.xyz/v1"
|
||||
doc = "https://ambient.xyz"
|
||||
@@ -1,8 +1,10 @@
|
||||
# Context window: Azure Foundry serves 1M (legacy 200K cap removed).
|
||||
# https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/claude-models?tabs=pay-go#available-claude-models
|
||||
name = "Claude Opus 4.6"
|
||||
description = "Flagship Claude model for deep reasoning, coding, and long-horizon agents"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-02-05"
|
||||
last_updated = "2026-07-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
# POST /anthropic/v1/messages supports adaptive thinking with output_config.effort
|
||||
@@ -28,7 +30,7 @@ cache_read = 1.00
|
||||
cache_write = 12.50
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -2,9 +2,11 @@ base_model = "anthropic/claude-opus-4-8"
|
||||
temperature = true
|
||||
knowledge = "2025-12-31"
|
||||
# POST /anthropic/v1/messages uses adaptive thinking with output_config.effort
|
||||
# low/medium/high/max; Azure catalog availability alone is not a control.
|
||||
# low/medium/high/xhigh/max; Azure catalog availability alone is not a control.
|
||||
# https://docs.anthropic.com/en/docs/build-with-claude/adaptive-thinking
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "max"] }]
|
||||
#
|
||||
# Possible values described at https://platform.claude.com/docs/en/build-with-claude/effort#effort-levels
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
@@ -20,7 +22,8 @@ cache_read = 1.00
|
||||
cache_write = 12.50
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
# Model info described at https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison
|
||||
context = 1_000_000
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/anthropic"
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
base_model = "openai/gpt-5.6-luna"
|
||||
status = "beta"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 1
|
||||
output = 6
|
||||
cache_read = 0.1
|
||||
|
||||
[[cost.tiers]]
|
||||
tier = { type = "context", size = 272_000 }
|
||||
input = 2
|
||||
output = 9
|
||||
cache_read = 0.2
|
||||
@@ -0,0 +1,14 @@
|
||||
base_model = "openai/gpt-5.6-sol"
|
||||
status = "beta"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
output = 30
|
||||
cache_read = 0.5
|
||||
|
||||
[[cost.tiers]]
|
||||
tier = { type = "context", size = 272_000 }
|
||||
input = 10
|
||||
output = 45
|
||||
cache_read = 1
|
||||
@@ -0,0 +1,14 @@
|
||||
base_model = "openai/gpt-5.6-terra"
|
||||
status = "beta"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 2.5
|
||||
output = 15
|
||||
cache_read = 0.25
|
||||
|
||||
[[cost.tiers]]
|
||||
tier = { type = "context", size = 272_000 }
|
||||
input = 5
|
||||
output = 22.5
|
||||
cache_read = 0.5
|
||||
@@ -0,0 +1,15 @@
|
||||
base_model = "openai/gpt-5.5-instant"
|
||||
name = "GPT Chat Latest"
|
||||
status = "beta"
|
||||
temperature = false
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
output = 30
|
||||
cache_read = 0.5
|
||||
|
||||
[limit]
|
||||
context = 128_000
|
||||
input = 111_616
|
||||
output = 16_384
|
||||
@@ -1,8 +1,10 @@
|
||||
# Context window: Azure Foundry serves 1M (legacy 200K cap removed).
|
||||
# https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/claude-models?tabs=pay-go#available-claude-models
|
||||
name = "Claude Opus 4.6"
|
||||
description = "Flagship Claude model for deep reasoning, coding, and long-horizon agents"
|
||||
family = "claude-opus"
|
||||
release_date = "2026-02-05"
|
||||
last_updated = "2026-02-05"
|
||||
last_updated = "2026-07-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "max"] }, { type = "budget_tokens", min = 1_024 }]
|
||||
@@ -25,7 +27,7 @@ cache_read = 1.00
|
||||
cache_write = 12.50
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
base_model = "anthropic/claude-opus-4-8"
|
||||
temperature = true
|
||||
knowledge = "2025-12-31"
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "max"] }]
|
||||
# Possible values described at https://platform.claude.com/docs/en/build-with-claude/effort#effort-levels
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 5.00
|
||||
@@ -17,7 +18,8 @@ cache_read = 1.00
|
||||
cache_write = 12.50
|
||||
|
||||
[limit]
|
||||
context = 200_000
|
||||
# Model info described at https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison
|
||||
context = 1_000_000
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/anthropic"
|
||||
|
||||
@@ -16,8 +16,8 @@ input = 2.50
|
||||
output = 10.00
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 8_000
|
||||
context = 131_072
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
|
||||
@@ -18,6 +18,7 @@ cache_read = 0.13
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -17,7 +17,8 @@ output = 2.00
|
||||
cache_read = 0.03
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -17,7 +17,8 @@ output = 0.40
|
||||
cache_read = 0.01
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -19,6 +19,7 @@ cache_read = 0.025
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -19,6 +19,7 @@ cache_read = 0.125
|
||||
|
||||
[limit]
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
@@ -18,7 +18,8 @@ output = 10.00
|
||||
cache_read = 0.125
|
||||
|
||||
[limit]
|
||||
context = 272_000
|
||||
context = 400_000
|
||||
input = 272_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
|
||||
Loaded 100 of 699 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user