Compare commits

...
385 Commits
Author SHA1 Message Date
github-actions[bot] e2bb3a828d fix: cline-pass: glm-5.3-flash missing from provider data 2026-09-01 23:11:52 +00:00
opencode-agent[bot]andopencode-agent[bot] 664c900357 chore(sync): update Kilo model catalog (#6047)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 22:25:21 +00:00
opencode-agent[bot]andopencode-agent[bot] 2b09cf9012 chore(sync): update OpenRouter model catalog (#6049)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 22:24:27 +00:00
opencode-agent[bot]andopencode-agent[bot] 4d6fdb2b0a chore(sync): update NanoGPT model catalog (#6050)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 22:23:55 +00:00
opencode-agent[bot]andopencode-agent[bot] fde0f4fbaf chore(sync): update Venice model catalog (#6048)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 22:23:51 +00:00
Ryan Vogel fa3a863dab Merge pull request #6043 from anomalyco/revert-6018-feat/fable-5-1-opencode-ryan
Revert "feat: add Claude Fable 5.1 to OpenCode"
2026-09-01 18:06:43 -04:00
Rohan Taneja af96116f08 Merge pull request #6045 from vercel/rohantaneja/aig-755-modelsdev-vercel-provider-not-linked-to-anthropicclaude 2026-09-01 14:58:30 -07:00
R-Taneja 21318f6f68 chore(sync): factor vercel claude-fable-5.1 into base_model form
Regenerated by bun models:sync vercel now that #6042 resolves dotted
Claude IDs across families. The entry was written standalone before the
canonicalization fix, which left vercel unlinked from the
anthropic/claude-fable-5-1 model page.
2026-09-01 14:57:00 -07:00
Ryan Vogel 2e18d0a5b8 Revert "feat: add Claude Fable 5.1 to OpenCode" 2026-09-01 17:42:18 -04:00
opencode-agent[bot]andrekram1-node a39fca7ee2 fix(sync): resolve dotted Claude versions across families (#6042)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-09-01 16:35:37 -05:00
cab7e60819 chore(sync): update DigitalOcean model catalog (#6036)
* chore(sync): update DigitalOcean model catalog

* fix(digitalocean): inherit Fable 5.1 base model

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-09-01 16:35:16 -05:00
Mathias Stearn fab929caa2 Update cost for deepseek-v4-flash-0731 on fireworks (#6032) 2026-09-01 16:25:10 -05:00
opencode-agent[bot]andopencode-agent[bot] 59ecd6723f chore(sync): update OpenRouter model catalog (#6041)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 21:24:18 +00:00
opencode-agent[bot]andopencode-agent[bot] f540c9820f chore(sync): update Venice model catalog (#6040)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 21:24:11 +00:00
opencode-agent[bot]andopencode-agent[bot] d23abd0c2c chore(sync): update Vercel AI Gateway model catalog (#6037)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 20:28:02 +00:00
opencode-agent[bot]andopencode-agent[bot] 0947af91ee chore(sync): update Merge Gateway model catalog (#6033)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 20:27:12 +00:00
opencode-agent[bot]andopencode-agent[bot] 0a4de73725 chore(sync): update Kilo model catalog (#6035)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 20:26:41 +00:00
opencode-agent[bot]andopencode-agent[bot] 23bb7d23af chore(sync): update OpenRouter model catalog (#6034)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 20:26:10 +00:00
opencode-agent[bot]andopencode-agent[bot] ee3b1e5e04 chore(sync): update Requesty model catalog (#6027)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 14:34:53 -05:00
22393f9468 chore(sync): update Vercel AI Gateway model catalog (#6023)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): add Claude Fable 5.1 reasoning efforts

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden <rekram1-node@users.noreply.github.com>
2026-09-01 14:34:40 -05:00
opencode-agent[bot]andopencode-agent[bot] f0215f3cb3 chore(sync): update Venice model catalog (#6030)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 19:24:46 +00:00
opencode-agent[bot]andopencode-agent[bot] a048484b2d chore(sync): update LLM Gateway model catalog (#6024)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 19:24:07 +00:00
opencode-agent[bot]andopencode-agent[bot] 2eade5bad2 chore(sync): update DevPass (LLM Gateway) model catalog (#6031)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 19:24:05 +00:00
opencode-agent[bot]andopencode-agent[bot] 9116271217 chore(sync): update NanoGPT model catalog (#6029)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 19:23:51 +00:00
opencode-agent[bot]andopencode-agent[bot] 76e8a8f26d chore(sync): update Kilo model catalog (#6025)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 19:23:18 +00:00
opencode-agent[bot]andopencode-agent[bot] 2918d42b2c chore(sync): update OpenRouter model catalog (#6028)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 19:23:05 +00:00
opencode-agent[bot]andopencode-agent[bot] 128df6b4d7 chore(sync): update Eden AI model catalog (#6026)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 19:22:55 +00:00
opencode-agent[bot]andopencode-agent[bot] 228b5e41a6 chore(sync): update Kilo model catalog (#6021)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 18:34:15 +00:00
opencode-agent[bot]andopencode-agent[bot] c3dbd955dc chore(sync): update Vercel AI Gateway model catalog (#6020)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 18:32:39 +00:00
opencode-agent[bot]andopencode-agent[bot] c3b969c235 chore(sync): update OpenRouter model catalog (#6019)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 18:32:20 +00:00
opencode-agent[bot]andopencode-agent[bot] 4b6f6e8f1c chore(sync): update Merge Gateway model catalog (#6022)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 18:32:00 +00:00
Ryan Vogel de7579c04c Merge pull request #6018 from anomalyco/feat/fable-5-1-opencode-ryan
feat: add Claude Fable 5.1 to OpenCode
2026-09-01 14:17:14 -04:00
R44VC0RP f20fe9bb94 feat: add Claude Fable 5.1 to OpenCode 2026-09-01 18:05:36 +00:00
opencode-agent[bot]andAiden Cline bf06cd2a3a feat: add Claude Fable 5.1 (#6017)
* feat: add Claude Fable 5.1

* fix: mark Fable 5.1 structured output support

* docs: cite Fable 5.1 Bedrock regional pricing

---------

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
2026-09-01 13:04:32 -05:00
opencode-agent[bot]andopencode-agent[bot] 8b31d72df2 chore(sync): update OpenRouter model catalog (#6015)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 17:25:41 +00:00
opencode-agent[bot]andopencode-agent[bot] ddbba20628 chore(sync): update Kilo model catalog (#6016)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 17:24:23 +00:00
opencode-agent[bot]andopencode-agent[bot] 6a2c6c70fb chore(sync): update Kilo model catalog (#6012)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 16:46:16 +00:00
opencode-agent[bot]andopencode-agent[bot] 73a6943d1e chore(sync): update OpenRouter model catalog (#6010)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 16:45:49 +00:00
opencode-agent[bot]andopencode-agent[bot] 3cf10ed4b8 chore(sync): update LLM Gateway model catalog (#6011)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 16:45:37 +00:00
opencode-agent[bot]andopencode-agent[bot] 29807acdac chore(sync): update OpenRouter model catalog (#6007)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 15:43:45 +00:00
opencode-agent[bot]andopencode-agent[bot] 3165c72faa chore(sync): update Kilo model catalog (#6005)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 15:43:16 +00:00
opencode-agent[bot]andopencode-agent[bot] 63b3612b76 chore(sync): update Eden AI model catalog (#6006)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 15:43:10 +00:00
opencode-agent[bot]andopencode-agent[bot] d3b24adb0a chore(sync): update NanoGPT model catalog (#6008)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 15:43:08 +00:00
opencode-agent[bot]andopencode-agent[bot] 5a5fff4852 chore(sync): update OpenRouter model catalog (#6003)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 14:30:12 +00:00
opencode-agent[bot]andopencode-agent[bot] 27bb914865 chore(sync): update Kilo model catalog (#6002)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 14:29:21 +00:00
opencode-agent[bot]andopencode-agent[bot] 88de45743b chore(sync): update OpenRouter model catalog (#5997)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 13:27:26 +00:00
opencode-agent[bot]andopencode-agent[bot] 78f8513184 chore(sync): update Kilo model catalog (#5998)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 13:27:12 +00:00
opencode-agent[bot]andopencode-agent[bot] ca22f5d0f9 chore(sync): update Charm Hyper model catalog (#5999)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 13:27:00 +00:00
opencode-agent[bot]andopencode-agent[bot] 9113d84453 chore(sync): update OpenRouter model catalog (#5996)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 12:37:00 +00:00
opencode-agent[bot]andopencode-agent[bot] 002f312d14 chore(sync): update Kilo model catalog (#5995)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 12:36:41 +00:00
opencode-agent[bot]andopencode-agent[bot] d6ecf46718 chore(sync): update NanoGPT model catalog (#5991)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 10:32:09 +00:00
opencode-agent[bot]andopencode-agent[bot] 8dc534d3cd chore(sync): update Kilo model catalog (#5989)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 10:30:25 +00:00
opencode-agent[bot]andopencode-agent[bot] 298c78f4bb chore(sync): update Chutes model catalog (#5988)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 10:30:10 +00:00
opencode-agent[bot]andopencode-agent[bot] bbfaa87ec1 chore(sync): update OpenRouter model catalog (#5990)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 10:29:52 +00:00
opencode-agent[bot]andopencode-agent[bot] 4f19782ea9 chore(sync): update Kilo model catalog (#5982)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 08:35:42 +00:00
opencode-agent[bot]andopencode-agent[bot] bc3946dcfd chore(sync): update OpenRouter model catalog (#5983)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 08:35:13 +00:00
opencode-agent[bot]andopencode-agent[bot] f1b825eec1 chore(sync): update Kilo model catalog (#5980)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 07:30:17 +00:00
opencode-agent[bot]andopencode-agent[bot] fcf0187c61 chore(sync): update OpenRouter model catalog (#5981)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 07:29:52 +00:00
opencode-agent[bot]andopencode-agent[bot] 168c130274 chore(sync): update Cortecs model catalog (#5979)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 07:29:38 +00:00
opencode-agent[bot]andopencode-agent[bot] 0498d30bdd chore(sync): update OpenRouter model catalog (#5978)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 06:43:07 +00:00
opencode-agent[bot]andopencode-agent[bot] 7b1ab6ce1a chore(sync): update Kilo model catalog (#5976)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 06:43:00 +00:00
opencode-agent[bot]andopencode-agent[bot] 0bd12aef64 chore(sync): update NanoGPT model catalog (#5977)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 06:42:25 +00:00
opencode-agent[bot]andopencode-agent[bot] b610c33ab8 chore(sync): update Kilo model catalog (#5973)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 05:28:17 +00:00
opencode-agent[bot]andopencode-agent[bot] 647f828faf chore(sync): update OpenRouter model catalog (#5975)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 05:28:09 +00:00
opencode-agent[bot]andopencode-agent[bot] 4278c571d7 chore(sync): update Eden AI model catalog (#5974)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 05:27:07 +00:00
opencode-agent[bot]andopencode-agent[bot] 8a3ca0a932 chore(sync): update Kilo model catalog (#5971)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 04:30:47 +00:00
opencode-agent[bot]andopencode-agent[bot] 5ed395a28a chore(sync): update NanoGPT model catalog (#5970)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 04:30:42 +00:00
opencode-agent[bot]andopencode-agent[bot] 7d2e8618b6 chore(sync): update OpenRouter model catalog (#5972)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 04:30:30 +00:00
opencode-agent[bot]andrekram1-node 3d96d85646 fix(sync): reuse Cloudflare sync credentials (#5969)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-31 23:28:36 -05:00
3cdd9930ca chore(sync): update Vercel AI Gateway model catalog (#5967)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): add MiMo UltraSpeed reasoning toggle

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden <rekram1-node@users.noreply.github.com>
2026-08-31 23:02:49 -05:00
Tao 623617ff22 feat: update IteraCompute models (#5700) 2026-08-31 23:02:09 -05:00
MickeyXinandfx247562340 af6efa6d12 fix(provider): narrow Vancine model catalog (#5958)
Co-authored-by: fx247562340 <fx247562340@users.noreply.github.com>
2026-08-31 23:01:52 -05:00
opencode-agent[bot]andopencode-agent[bot] 477a7ff526 chore(sync): update OpenRouter model catalog (#5966)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 03:38:28 +00:00
opencode-agent[bot]andopencode-agent[bot] 7525dc310a chore(sync): update Kilo model catalog (#5968)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 03:38:08 +00:00
opencode-agent[bot]andopencode-agent[bot] 3b0487c2b8 chore(sync): update OpenRouter model catalog (#5964)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 01:42:48 +00:00
opencode-agent[bot]andopencode-agent[bot] 9a47a070e2 chore(sync): update Kilo model catalog (#5965)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 01:42:42 +00:00
opencode-agent[bot]andopencode-agent[bot] 1717d6792d chore(sync): update Kilo model catalog (#5959)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 01:11:32 +00:00
opencode-agent[bot]andopencode-agent[bot] eda76b2800 chore(sync): update Venice model catalog (#5963)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 01:11:21 +00:00
opencode-agent[bot]andopencode-agent[bot] 22777cc782 chore(sync): update NanoGPT model catalog (#5962)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 01:11:13 +00:00
opencode-agent[bot]andopencode-agent[bot] 1a9d57b459 chore(sync): update OpenRouter model catalog (#5961)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 01:10:50 +00:00
opencode-agent[bot]andopencode-agent[bot] ed419f7047 chore(sync): update Requesty model catalog (#5960)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-09-01 01:10:34 +00:00
opencode-agent[bot]andopencode-agent[bot] 0c257d337e chore(sync): update OpenRouter model catalog (#5955)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 23:23:24 +00:00
opencode-agent[bot]andopencode-agent[bot] a7e25b37ea chore(sync): update Eden AI model catalog (#5956)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 23:23:21 +00:00
opencode-agent[bot]andopencode-agent[bot] eda98d420a chore(sync): update Google model catalog (#5954)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 22:30:30 +00:00
opencode-agent[bot]andopencode-agent[bot] f0856b6c96 chore(sync): update OpenRouter model catalog (#5953)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 22:25:47 +00:00
opencode-agent[bot]andopencode-agent[bot] abe614b9a7 chore(sync): update NanoGPT model catalog (#5952)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 22:24:54 +00:00
opencode-agent[bot]andopencode-agent[bot] 1578453e01 chore(sync): update Merge Gateway model catalog (#5951)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 21:23:41 +00:00
opencode-agent[bot]andopencode-agent[bot] c0a40a57bb chore(sync): update Kilo model catalog (#5950)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 21:23:35 +00:00
opencode-agent[bot]andopencode-agent[bot] 978eadabcf chore(sync): update OpenRouter model catalog (#5949)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 21:23:28 +00:00
c56ca3c369 chore(sync): update Vercel AI Gateway model catalog (#5900)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): add Qwen 3.8 Flash Next reasoning efforts

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden <rekram1-node@users.noreply.github.com>
2026-08-31 16:08:30 -05:00
893cea19a0 chore(sync): update Cortecs model catalog (#5914)
* chore(sync): update Cortecs model catalog

* fix(cortecs): add DeepSeek V4 Pro reasoning efforts

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden <rekram1-node@users.noreply.github.com>
2026-08-31 16:07:58 -05:00
jarvisleeandjarvislee90s-dot c65ab7d2b3 fix(catalog): align attachment flag with modalities for kimi-k2.5 and grok-code (#5793)
* fix(moonshotai): align kimi-k2.5 attachment flag with its own modalities

The provider entry sets attachment=false while its [modalities] declares
image+video input, its lab entry (models/moonshotai/kimi-k2.5.toml) sets
attachment=true, and Moonshot's official model list documents kimi-k2.5 as
supporting 'visual and text input'. Per the catalog convention (attachment
derived from non-text input modalities) and the provider-file override-only
rule, attachment must be true.

Consumers (e.g. OpenCode) read this flag to gate image attachments; the
current value blocks image input for a vision-capable model (see
anomalyco/opencode#23427).

* fix(opencode): disable attachment flag for text-only grok-code

grok-code (xAI Grok Code Fast 1) accepts text input only, but its entry
sets attachment=true. Per the catalog's derivation convention (attachment
from non-text input modalities) the flag must be false; the current value
makes consumers offer attachment flows that cannot succeed. Entry is
already status=deprecated; no other fields touched.

---------

Co-authored-by: jarvislee90s-dot <266288279+jarvislee90s-dot@users.noreply.github.com>
2026-08-31 16:07:28 -05:00
Pessimist228 d9c9e0fa33 llmtech: enable vision on Qwen3.8-27B-NVFP4 (#5865)
* llmtech: enable vision (attachment + image modality)

* llmtech: drop redundant attachment, keep modality delta
2026-08-31 16:06:45 -05:00
MickeyXinandfx247562340 620f871d63 feat(provider): add four Vancine models (#5866)
Co-authored-by: fx247562340 <fx247562340@users.noreply.github.com>
2026-08-31 16:06:36 -05:00
opencode-agent[bot]andopencode-agent[bot] 29b2c5fce2 chore(sync): update Requesty model catalog (#5879)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 16:06:05 -05:00
opencode-agent[bot]andopencode-agent[bot] afb7ece0c3 chore(sync): update DevPass (LLM Gateway) model catalog (#5891)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 16:05:55 -05:00
opencode-agent[bot]andopencode-agent[bot] 5f9d2d43ec chore(sync): update LLM Gateway model catalog (#5893)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 16:05:46 -05:00
d2bz 1ad2635b62 chore(aihubmix): sync model catalog (#5901)
* chore(aihubmix): sync model catalog

* fix(aihubmix): address catalog review

* fix(aihubmix): expose deepseek effort levels

* chore(ci): retry review workflow
2026-08-31 16:05:16 -05:00
DivyandClaude Opus 4.8 45b840218c feat(coralbricks): add GLM 5.3, remove deprecated GLM 5.2 (#5902)
* feat(coralbricks): add GLM 5.3 (glm-5.3-fp4)

New model live on the CoralBricks gateway: 1M context, $1.12/M in,
$4.40/M out, cached input free (cache_read=0), reasoning toggle +
effort. Verified in the live /v1/models and a chat smoke.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(coralbricks): align GLM 5.3 reasoning_options to the lab baseline

Bot review: GLM-5.3 always reasons with effort low|high|max (per the
first-party zhipuai/zai entries and our own models.json routing). Drop
the copied-from-5.2 toggle + minimal/medium levels, and drop the
redundant reasoning=true (inherited from base_model zhipuai/glm-5.3).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* chore(coralbricks): remove GLM 5.2 (deprecated on prod)

glm-5.2-fp4 is deprecated in favor of GLM 5.3 (dropped from the prod tier
on the CoralBricks gateway; returns 404 model_not_public). Remove its
model entry. Provider now lists glm-5.3-fp4, kimi-k3, gpt-oss-120b.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-31 16:05:05 -05:00
Abliteration AI cca4a3015d Add abliterated-model-large-v2 (#5927)
* feat(abliteration-ai): add abliterated-model-large-v2

GLM-5.3-based successor to abliterated-model-large. Reasoning runs in
three distinct modes (low, high, max) and cannot be disabled, so the
entry declares effort only - no toggle.

* Cite docs pricing page for abliterated-model-large-v2 rates
2026-08-31 16:04:36 -05:00
github-actions[bot] de7f1b57da fix: [missing-model] Groq: qwen/qwen3.8-27b (#5725)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-31 16:04:12 -05:00
opencode-agent[bot]andopencode-agent[bot] 413f78011e chore(sync): update OpenRouter model catalog (#5947)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 20:28:05 +00:00
opencode-agent[bot]andopencode-agent[bot] bd46820ec5 chore(sync): update Venice model catalog (#5946)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 20:27:01 +00:00
opencode-agent[bot]andopencode-agent[bot] 35a746466d chore(sync): update Merge Gateway model catalog (#5948)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 20:26:57 +00:00
opencode-agent[bot]andopencode-agent[bot] 5de341ca59 chore(sync): update Kilo model catalog (#5944)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 20:26:54 +00:00
opencode-agent[bot]andopencode-agent[bot] c276895618 chore(sync): update NanoGPT model catalog (#5945)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 20:26:37 +00:00
opencode-agent[bot]andopencode-agent[bot] a55cea59e8 chore(sync): update OpenRouter model catalog (#5943)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 19:21:26 +00:00
opencode-agent[bot]andopencode-agent[bot] 88f66ceacc chore(sync): update Deep Infra model catalog (#5942)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 18:33:17 +00:00
opencode-agent[bot]andopencode-agent[bot] 92c4c46cd0 chore(sync): update Kilo model catalog (#5941)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 18:31:29 +00:00
opencode-agent[bot]andopencode-agent[bot] 9322c13a09 chore(sync): update OpenRouter model catalog (#5940)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 18:31:25 +00:00
opencode-agent[bot]andopencode-agent[bot] ad3ee31a26 chore(sync): update Kilo model catalog (#5939)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 17:24:05 +00:00
opencode-agent[bot]andopencode-agent[bot] 473af465dc chore(sync): update OpenRouter model catalog (#5938)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 17:23:40 +00:00
opencode-agent[bot]andopencode-agent[bot] 3260c2b270 chore(sync): update Kilo model catalog (#5936)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 16:28:36 +00:00
opencode-agent[bot]andopencode-agent[bot] bf38988bb2 chore(sync): update Merge Gateway model catalog (#5933)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 16:28:05 +00:00
opencode-agent[bot]andopencode-agent[bot] 378cd0676d chore(sync): update CrossModel model catalog (#5935)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 16:27:39 +00:00
opencode-agent[bot]andopencode-agent[bot] 583ffb3232 chore(sync): update OpenRouter model catalog (#5934)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 16:27:29 +00:00
opencode-agent[bot]andopencode-agent[bot] 5abd0a2ed0 chore(sync): update OpenRouter model catalog (#5929)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 15:28:18 +00:00
opencode-agent[bot]andopencode-agent[bot] 3ecc6ada21 chore(sync): update NanoGPT model catalog (#5932)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 15:27:41 +00:00
opencode-agent[bot]andopencode-agent[bot] 04bf43c80f chore(sync): update Merge Gateway model catalog (#5928)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 15:27:16 +00:00
opencode-agent[bot]andopencode-agent[bot] ed143882e2 chore(sync): update Kilo model catalog (#5931)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 15:26:52 +00:00
opencode-agent[bot]andopencode-agent[bot] d14ec223a1 chore(sync): update Eden AI model catalog (#5930)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 15:26:39 +00:00
opencode-agent[bot]andopencode-agent[bot] 4a3a072b45 chore(sync): update NanoGPT model catalog (#5925)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 14:30:04 +00:00
opencode-agent[bot]andopencode-agent[bot] 27e103e337 chore(sync): update OpenRouter model catalog (#5926)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 14:30:00 +00:00
opencode-agent[bot]andopencode-agent[bot] 8199361411 chore(sync): update OpenRouter model catalog (#5923)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 13:29:42 +00:00
opencode-agent[bot]andopencode-agent[bot] c6980a5928 chore(sync): update Charm Hyper model catalog (#5924)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 13:29:22 +00:00
opencode-agent[bot]andopencode-agent[bot] bea920f318 chore(sync): update OpenRouter model catalog (#5922)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 12:37:53 +00:00
opencode-agent[bot]andopencode-agent[bot] 05d212c32c chore(sync): update Kilo model catalog (#5921)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 12:37:47 +00:00
opencode-agent[bot]andopencode-agent[bot] f09af0fa76 chore(sync): update Kilo model catalog (#5919)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 11:24:59 +00:00
opencode-agent[bot]andopencode-agent[bot] fa73fb7586 chore(sync): update OpenRouter model catalog (#5920)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 11:24:54 +00:00
opencode-agent[bot]andopencode-agent[bot] 786336f085 chore(sync): update Kilo model catalog (#5916)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 10:28:49 +00:00
opencode-agent[bot]andopencode-agent[bot] 3bbe7bd5a8 chore(sync): update NanoGPT model catalog (#5918)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 10:28:36 +00:00
opencode-agent[bot]andopencode-agent[bot] b063951aab chore(sync): update OpenRouter model catalog (#5915)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 10:28:31 +00:00
opencode-agent[bot]andopencode-agent[bot] 283c9c8618 chore(sync): update CrossModel model catalog (#5917)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 10:27:53 +00:00
opencode-agent[bot]andopencode-agent[bot] 5e4089efba chore(sync): update NanoGPT model catalog (#5912)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 08:37:38 +00:00
opencode-agent[bot]andopencode-agent[bot] 8834d2cf3e chore(sync): update EmpirioLabs AI model catalog (#5911)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 08:36:46 +00:00
opencode-agent[bot]andopencode-agent[bot] 35a156d23e chore(sync): update OpenRouter model catalog (#5907)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 06:50:27 +00:00
opencode-agent[bot]andopencode-agent[bot] 64268cc292 chore(sync): update NanoGPT model catalog (#5908)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 06:49:47 +00:00
opencode-agent[bot]andopencode-agent[bot] b6f92d1084 chore(sync): update Kilo model catalog (#5909)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 06:49:32 +00:00
opencode-agent[bot]andopencode-agent[bot] c00c192726 chore(sync): update NanoGPT model catalog (#5905)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 04:32:10 +00:00
opencode-agent[bot]andopencode-agent[bot] c335229997 chore(sync): update Kilo model catalog (#5904)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 04:31:44 +00:00
opencode-agent[bot]andopencode-agent[bot] 9c90ec7bc9 chore(sync): update OpenRouter model catalog (#5903)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 04:31:42 +00:00
opencode-agent[bot]andopencode-agent[bot] 592f8f85ab chore(sync): update CrossModel model catalog (#5897)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 03:32:37 +00:00
opencode-agent[bot]andopencode-agent[bot] 228579f0ea chore(sync): update Kilo model catalog (#5898)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 03:32:22 +00:00
opencode-agent[bot]andopencode-agent[bot] 41b0e848c9 chore(sync): update OpenRouter model catalog (#5899)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 03:32:17 +00:00
opencode-agent[bot]andopencode-agent[bot] fd02f6fff8 chore(sync): update Kilo model catalog (#5896)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 01:40:09 +00:00
opencode-agent[bot]andopencode-agent[bot] 466b5a57f0 chore(sync): update OpenRouter model catalog (#5895)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 01:39:53 +00:00
opencode-agent[bot]andopencode-agent[bot] 248e19b9e1 chore(sync): update Kilo model catalog (#5890)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 01:05:50 +00:00
opencode-agent[bot]andopencode-agent[bot] a2e60e3a4b chore(sync): update OpenRouter model catalog (#5892)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 01:05:15 +00:00
opencode-agent[bot]andopencode-agent[bot] 85f9d90a76 chore(sync): update NanoGPT model catalog (#5894)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-31 01:05:13 +00:00
opencode-agent[bot]andopencode-agent[bot] c48229f94a chore(sync): update OpenRouter model catalog (#5888)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 23:22:02 +00:00
Joseph PerlaandJoseph Perla b9bb273a20 fix(trustedrouter): use fully-prefixed model IDs (trustedrouter/auto) (#5884)
Co-authored-by: Joseph Perla <claude@jperla.com>
2026-08-30 16:26:06 -05:00
opencode-agent[bot]andopencode-agent[bot] aa36bf036f chore(sync): update OpenRouter model catalog (#5886)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 21:22:13 +00:00
opencode-agent[bot]andopencode-agent[bot] ca8c9740d8 chore(sync): update Vercel AI Gateway model catalog (#5885)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 21:21:54 +00:00
opencode-agent[bot]andopencode-agent[bot] c5f47314c6 chore(sync): update Kilo model catalog (#5887)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 21:21:51 +00:00
opencode-agent[bot]andopencode-agent[bot] 2d5ad65eda chore(sync): update OpenRouter model catalog (#5883)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 20:23:56 +00:00
opencode-agent[bot]andopencode-agent[bot] 314de3376e chore(sync): update NanoGPT model catalog (#5881)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 20:23:46 +00:00
opencode-agent[bot]andopencode-agent[bot] 450479839c chore(sync): update Kilo model catalog (#5882)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 20:23:44 +00:00
opencode-agent[bot]andopencode-agent[bot] 14ef007b85 chore(sync): update OpenRouter model catalog (#5880)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 19:20:05 +00:00
opencode-agent[bot]andopencode-agent[bot] d887749a82 chore(sync): update OpenRouter model catalog (#5877)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 18:27:00 +00:00
opencode-agent[bot]andopencode-agent[bot] acf0c72328 chore(sync): update NanoGPT model catalog (#5878)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 18:26:55 +00:00
opencode-agent[bot]andopencode-agent[bot] e152986657 chore(sync): update Venice model catalog (#5874)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 17:21:12 +00:00
opencode-agent[bot]andopencode-agent[bot] 2541b33ace chore(sync): update Requesty model catalog (#5876)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 17:21:09 +00:00
opencode-agent[bot]andopencode-agent[bot] ec8bc2ea05 chore(sync): update NanoGPT model catalog (#5875)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 17:21:03 +00:00
opencode-agent[bot]andopencode-agent[bot] 08b47b243f chore(sync): update OpenRouter model catalog (#5873)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 17:20:49 +00:00
23ff9fcfef above: add GLM 5.3 Flash (#5862)
* above: add glm-5.3-flash

Fireworks-served, sold at the Fireworks rate plus a flat 10%
(0.165/0.0319/0.55). Reasoning toggle verified (reasoning_effort
low|high; none rejected by this host), image input verified, video/pdf
excluded as host deltas.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VuCev2YmeAs4WchNqw7uz

* above/glm-5.3-flash: match Fireworks effort surface (high|max)

Reviewer was right: earlier 'low disables thinking' was a sampling
artifact on trivial prompts. Re-tested with 3 trials per level on a
proof prompt: this is a thinking-only hybrid model; low/medium are
accepted on the wire but collapse per Fireworks docs, none is a 400.
Encoded as effort [high, max] matching the Fireworks peer, with the
wire behavior documented in the comment.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VuCev2YmeAs4WchNqw7uz

---------

Co-authored-by: realtimegb <pkreil3@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-30 11:54:03 -05:00
MicroHEROX 3e481492d0 feat: add SenseNova (China) provider (#5787)
* test write access

* feat: add SenseNova (China) provider

* fix: align relay reasoning_options to lab-effective levels (none|high)
2026-08-30 11:53:23 -05:00
Christian Landgren 167dda913d feat(berget): add GLM-5.3 and GLM-5.3-Flash (#5797)
* feat(berget): add GLM-5.3 and GLM-5.3-Flash

Both served on Berget AI's Swedish infrastructure (NVIDIA B300, SGLang
TP4, 4 GPUs each on a shared node):

- zai-org/GLM-5.3 (753B, text): extends zai/glm-5.3, 1.5/5.0 EUR/M
- zai-org/GLM-5.3-Flash (320B/18B active, text+image): extends
  zai/glm-5.3-flash, 0.25/0.5 EUR/M

Context advertised at 327K (needle-validated; native 1M). Reasoning
always on, effort low/high/max, returned in reasoning_content — inherited
from the base models.

* fix(berget): use base_model + explicit reasoning_options

The extends target (zai/glm-5.3) is itself only a cost-override entry
without the required name/description/attachment/reasoning/tool_call/
open_weights fields, so validation failed. Switch to base_model =
zhipuai/glm-5.3 (the canonical model definition) and add the
reasoning_options + interleaved fields explicitly, matching the Baseten
entries for the same models.

* fix(berget): USD costs, modalities, release dates per review

- Costs converted to USD at 1.1643 (ECB, 2026-08-28) with EUR source
  prices + rate/date in leading comments: GLM-5.3 1.75/5.82, Flash
  0.29/0.58 USD/MTok.
- Flash modalities: text + image + video (video verified against the
  live endpoint; PDF not supported by the SGLang serving stack).
- release_date omitted so lab dates inherit; last_updated kept as the
  host entry date.

* fix(berget): drop redundant modalities override on GLM-5.3

The [modalities] block restated input/output = text, identical to the
lab base (zhipuai/glm-5.3) — override-only rule violation. Let it
inherit. (GLM-5.3-Flash keeps its override: it drops pdf, which the
Berget serving stack does not support.)
2026-08-30 11:53:12 -05:00
Rubin Simons 103f738879 Update neuralwatt catalog, GLM-5.3 officially open weights (#5860)
* fix(models): mark GLM-5.3 as open weights

Sources:
  * https://z.ai/blog/glm-5.3
  * https://news.ycombinator.com/item?id=49479878
  * https://twitter.com/Zai_org/status/2093354097122455713

* feat(neuralwatt): add GLM 5.3

Neuralwatt serves glm-5.3 at 1.45 input and 4.50 output per million
tokens, with effort levels low, high and max, and it accepts
thinking_token_budget. The entry inherits the rest from
models/zhipuai/glm-5.3.toml.

* chore(neuralwatt): normalise existing catalog entries

Rewritten by the upcoming sync provider. The resolved catalog is
unchanged: reasoning_options move to table syntax, fields that
already match the base model are dropped, and the default text
output modality is left implicit.

* fix(neuralwatt): mark GLM 5.3 as a gated preview

The API description flags glm-5.3 as a gated preview whose price is a
GLM 5.2 parity default pending review at launch, matching how
deepseek-v4-pro and qwen-3.8-27b are already recorded. Adds the source
header and drops the output cap, which the API does not state, so it
inherits 131072 from the lab entry.

* fix(neuralwatt): restore the GLM 5.3 output cap

Neuralwatt reports no max_output_tokens for glm-5.3, which the provider
README records as capped only by the context window and cataloged with
output equal to context. Lists glm-5.3 in that README and notes it as
the one model with no none effort level.
2026-08-30 11:53:01 -05:00
opencode-agent[bot]andopencode-agent[bot] 7d66223d43 chore(sync): update Kilo model catalog (#5871)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 16:24:44 +00:00
opencode-agent[bot]andopencode-agent[bot] 47a67a2149 chore(sync): update OpenRouter model catalog (#5870)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 16:24:29 +00:00
opencode-agent[bot]andopencode-agent[bot] ea7674463a chore(sync): update OpenRouter model catalog (#5868)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 15:22:52 +00:00
opencode-agent[bot]andopencode-agent[bot] c1b23c9984 chore(sync): update Eden AI model catalog (#5869)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 15:22:46 +00:00
opencode-agent[bot]andopencode-agent[bot] 6b7d151c79 chore(sync): update OpenRouter model catalog (#5867)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 14:22:51 +00:00
opencode-agent[bot]andopencode-agent[bot] f9e6b92ef9 chore(sync): update OpenRouter model catalog (#5864)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 12:32:29 +00:00
opencode-agent[bot]andopencode-agent[bot] 6b3710072a chore(sync): update Kilo model catalog (#5863)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 12:32:27 +00:00
opencode-agent[bot]andopencode-agent[bot] 39b1610e2d chore(sync): update OpenRouter model catalog (#5861)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 11:21:26 +00:00
opencode-agent[bot]andopencode-agent[bot] 5b087ae043 chore(sync): update NanoGPT model catalog (#5859)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 10:23:03 +00:00
opencode-agent[bot]andopencode-agent[bot] 526a966f31 chore(sync): update OpenRouter model catalog (#5858)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 10:22:59 +00:00
opencode-agent[bot]andopencode-agent[bot] 01cab517dc chore(sync): update OpenRouter model catalog (#5856)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 09:25:20 +00:00
opencode-agent[bot]andopencode-agent[bot] d32a4e5371 chore(sync): update OpenRouter model catalog (#5855)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 08:29:02 +00:00
opencode-agent[bot]andopencode-agent[bot] bb1226f159 chore(sync): update OpenRouter model catalog (#5854)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 07:25:20 +00:00
opencode-agent[bot]andopencode-agent[bot] fcabf0c304 chore(sync): update OpenRouter model catalog (#5852)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 06:36:38 +00:00
opencode-agent[bot]andopencode-agent[bot] 24dab0f492 chore(sync): update NanoGPT model catalog (#5853)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 06:36:28 +00:00
opencode-agent[bot]andopencode-agent[bot] d595f6f351 chore(sync): update OpenRouter model catalog (#5851)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 05:24:37 +00:00
opencode-agent[bot]andopencode-agent[bot] da305feaaf chore(sync): update Kilo model catalog (#5850)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 05:24:33 +00:00
opencode-agent[bot]andopencode-agent[bot] 6514b80a00 chore(sync): update Eden AI model catalog (#5849)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 05:24:15 +00:00
opencode-agent[bot]andopencode-agent[bot] ff4bb8eba4 chore(sync): update NanoGPT model catalog (#5848)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 04:28:39 +00:00
opencode-agent[bot]andopencode-agent[bot] 5d11a14e03 chore(sync): update Cloudflare Workers AI model catalog (#5845)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 04:28:27 +00:00
opencode-agent[bot]andopencode-agent[bot] 1644b93782 chore(sync): update OpenRouter model catalog (#5847)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 04:28:24 +00:00
opencode-agent[bot]andopencode-agent[bot] c9d2523964 chore(sync): update Kilo model catalog (#5846)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 04:28:21 +00:00
Jack 1e0bb5f743 feat(opencode): remove Hy3 from free 2026-08-30 11:39:05 +08:00
opencode-agent[bot]andopencode-agent[bot] 57a27f36cd chore(sync): update Requesty model catalog (#5770)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 22:37:09 -05:00
Lee-Si-Yoon dcd590f2ac feat(friendli): add GLM-5.3 provider model (#5776)
* feat(friendli): add GLM-5.3 provider model

Friendli serverless now serves zai-org/GLM-5.3, base_model'd onto the
existing zhipuai/glm-5.3 lab entry. Effort-only reasoning options per
Friendli's documented reasoning_effort=low|high|max, limit/modalities
inherited from base.

* fix(friendli): correct GLM-5.3 reasoning_options and provider.toml docs

- Removed duplicate name field (matched models/zhipuai/glm-5.3.toml
  exactly; base_model already inherits it).
- provider.toml: removed the stale "no effort or budget field is
  documented" claim. Friendli's chat-completions endpoint documents
  both reasoning_effort (enum) and reasoning_budget (integer) as real
  request fields — https://friendli.ai/docs/openapi/model-apis/chat-completions#body-reasoning-effort-one-of-0
  and #body-reasoning-budget-one-of-0.
- Added budget_tokens (min=-1, max=1_048_576) to GLM-5.3's
  reasoning_options, matching live GET /serverless/v1/models
  (max_completion_tokens=1_048_576).
- Added [limit] override (context=1_048_576, output=1_048_576): live
  context_length/max_completion_tokens exceed the inherited lab file's
  rounded 1_000_000 figure.

* fix(friendli): prove budget_tokens is a real reasoning-only cap on GLM-5.3

Verified via two live POST /chat/completions requests against
zai-org/GLM-5.3: reasoning_budget=30 and =50 (with generous max_tokens=
3000/4000) both cut reasoning_content mid-sentence at the requested cap,
while completion_tokens continued to 1553/177 respectively -- proof the
reasoning phase is capped independently of completion/context capacity.
Also clarified that min=-1/max=1_048_576 are Friendli's own reported
values from GET /serverless/v1/models, not values models.dev derived
from max_completion_tokens itself.
2026-08-29 22:36:49 -05:00
381cfb58bd Add gateway.fast provider (#5828)
* Add gateway.fast provider

OpenAI-compatible gateway serving DeepSeek V4, GLM 5.2, MiMo V2.5 and
Qwen 3.8 Max at upstream cost plus a flat 10%, with the full upstream
cache-hit discount passed through. DeepSeek models use time-of-day
pricing upstream; listed costs are the off-peak rate (peak is 2x,
weekdays 01:00-04:00 and 06:00-10:00 UTC), noted in provider.toml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VuCev2YmeAs4WchNqw7uz

* Address review: wire comments, Pro effort high|max, MiMo interleaved

- deepseek-v4-pro effort narrowed to [high, max] (Pro maps low->high)
- every toggle model now has a leading wire comment with the exact
  request fields (DeepSeek/MiMo thinking.type, Fireworks surface for
  GLM and Qwen)
- qwen3.8-max stays toggle-only, citing the Fireworks host surface
- MiMo entries gain [interleaved] reasoning_content, matching
  providers/xiaomi

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VuCev2YmeAs4WchNqw7uz

* Address second review: verified wire syntax, price citations, host deltas

- DeepSeek comments now cite the current price sheet (effective
  2026-08-16: flash 0.22/0.007/0.66, pro 0.66/0.022/1.98 off-peak);
  authored costs are that sheet plus a flat 10%. The first-party
  catalog entries predate the 2026-08-16 change.
- GLM/Qwen toggle wire documented and verified end-to-end on this
  host: reasoning_effort="none" (or chat_template_kwargs
  thinking=false) disables thinking.
- qwen3.8-max gains host deltas: attachment=false, text+image
  modalities (image verified; video/pdf unsupported), context 1M,
  output 32768, interleaved reasoning_content.
- env renamed to GATEWAY_FAST_API_KEY, matching the provider docs.
- MiMo comments carry CNY rates, conversion rate + date, and markup.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VuCev2YmeAs4WchNqw7uz

* Address third review: GLM effort enum with none, trim qwen restates

- glm-5.2 and glm-5.2-fast: single effort enum [none, high, max]
  replacing toggle + [high, max]; wire comments updated (off is
  reasoning_effort=none on the same field).
- qwen3.8-max: dropped restated limit.context and modalities.output;
  kept the real deltas (attachment, input modalities, output cap).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VuCev2YmeAs4WchNqw7uz

* Rebrand provider: gateway-fast -> above (above.dev)

The service has rebranded from gateway.fast to above.dev. Provider id,
name, env (ABOVE_API_KEY), api base (https://api.above.dev/v1) and doc
links updated; models and costs unchanged. gateway.fast web pages 301
to above.dev and the old api.gateway.fast host remains alive for
existing clients.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VuCev2YmeAs4WchNqw7uz

---------

Co-authored-by: realtimegb <pkreil3@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-29 22:35:44 -05:00
github-actions[bot] 489a3f4ea0 fix: cloudflare-workers-ai: glm-5.3-flash limit 1310720 exceeds gateway max 1048576 (same as #4422 for glm-5.2) (#5825)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-29 22:34:09 -05:00
h3nnes 448526f529 feat(synthetic): add GLM-5.3-Flash (#5818)
Add GLM-5.3-Flash to the Synthetic provider. The model is served by
api.synthetic.new/openai/v1 (model id hf:zai-org/GLM-5.3-Flash) but was
missing from the catalog, so it never appeared in opencode's model picker
even though the live /models endpoint exposes it.

The provider file is override-only: base_model points at the existing
canonical lab entry models/zhipuai/glm-5.3-flash.toml. Provider-specific
values (cost, limits, modalities, reasoning efforts, interleaved reasoning
field) are sourced from the live model surface:
  GET https://api.synthetic.new/openai/v1/models

- context 524288, output 65536 (synthetic serving limits)
- input modalities text+image (canonical lists video+pdf too; synthetic
  API does not accept those)
- reasoning efforts low/high/max
- interleaved reasoning via reasoning_content
- pricing $0.15/$0.50/$0.04 per MTok (input/output/cache_read)
2026-08-29 22:34:00 -05:00
4ebuRushka 039a1e0296 feat: add bothub and tokenrouter providers (#5814)
* add providers/bothub/provider.toml

* add providers/bothub/models/nemotron-3-ultra-550b-a55b:free.toml

* add providers/bothub/models/gemma-4-31b-it:free.toml

* add providers/tokenrouter/provider.toml

* add providers/tokenrouter/models/z-ai/glm-5.3-free.toml

* fix providers/bothub/models/nemotron-3-ultra-550b-a55b:free.toml content

* fix providers/bothub/models/gemma-4-31b-it:free.toml content

* fix providers/bothub/models/nemotron-3-ultra-550b-a55b:free.toml per review

* fix providers/bothub/models/gemma-4-31b-it:free.toml per review

* fix providers/tokenrouter/models/z-ai/glm-5.3-free.toml per review

* add providers/bothub/logo.svg

* add providers/tokenrouter/logo.svg

* fix providers/bothub/models/nemotron-3-ultra-550b-a55b:free.toml interleaved and reasoning per review

* fix gemma interleaved and reasoning per review

* replace bothub logo with brand robot mark

* gemma: document toggle wire path

* bothub: align provider comment with per-model controls

* tokenrouter: narrow provider comment to verified effort set
2026-08-29 22:33:51 -05:00
Jakob ThunandJakob Thun 10bacdaeee feat: add klokintegration.se provider (#5812)
* feat: add klokintegration.se provider

Register Klok's first-party OpenAI-compatible models so OpenCode can list them from the catalog.

* docs: match Kloker catalog text to published AI-API page

* fix: set klokintegration catalog cost from published EUR list price

* docs: align klokintegration model text with published AI-API page

* fix: set klokintegration context window to 256k

* fix: set klokintegration limits to 200k context and 50k output

* fix: use Klok K mark for klokintegration logo

Replace the placeholder icon with the brand mark, currentColor and a square viewBox so models.dev can theme it.

---------

Co-authored-by: Jakob Thun <jakob.thun@integrera.com>
2026-08-29 22:32:41 -05:00
4ebuRushkaand4ebuRushka c2caab1ab2 feat(orcarouter): add GLM-5.3-Flash (#5809)
* feat(orcarouter): add GLM-5.3-Flash model

* fix(orcarouter): add interleaved reasoning_content for glm-5.3-flash

---------

Co-authored-by: 4ebuRushka <metelev.vm@goodline.info>
2026-08-29 22:32:19 -05:00
opencode-agent[bot]andopencode-agent[bot] c66acb2fb4 chore(sync): update NanoGPT model catalog (#5808)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 22:32:05 -05:00
Fenil Modiandfenilmodi00 edaffcf7bd Add ai& GLM-5.3 and Qwen3.8 27B models (#5806)
* Add ai& GLM-5.3 and Qwen3.8 27B model catalog entries.

* Document ai& live reasoning_effort probes for GLM-5.3 and Qwen3.8 27B.

---------

Co-authored-by: fenilmodi00 <fenilmodi00@gmail.com>
2026-08-29 22:31:48 -05:00
Renaud Cerrato be340379cf feat(ollama-cloud): add glm-5.3 model (#5798) 2026-08-29 22:31:37 -05:00
Ryan Scott 5340d31c23 feat(fireworks-ai): add GLM 5.3 Flash serverless model (#5836)
Expose Fireworks' multimodal GLM 5.3 Flash route with its reasoning controls and serverless pricing.
2026-08-29 22:31:02 -05:00
opencode-agent[bot]andopencode-agent[bot] 682156da73 chore(sync): update OpenRouter model catalog (#5844)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 03:29:43 +00:00
opencode-agent[bot]andopencode-agent[bot] 04551ad755 chore(sync): update Kilo model catalog (#5843)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 03:29:19 +00:00
Jack c01c7dcbc0 feat(go): end Hy3 promo 2026-08-30 11:20:33 +08:00
opencode-agent[bot]andopencode-agent[bot] 0843a537ff chore(sync): update OpenRouter model catalog (#5842)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 02:33:44 +00:00
opencode-agent[bot]andopencode-agent[bot] 4ee7d4f922 chore(sync): update Kilo model catalog (#5841)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 02:33:24 +00:00
opencode-agent[bot]andopencode-agent[bot] 3e9d44222f chore(sync): update OpenRouter model catalog (#5839)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 01:03:41 +00:00
opencode-agent[bot]andopencode-agent[bot] 77ea61235c chore(sync): update Kilo model catalog (#5840)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-30 01:03:34 +00:00
opencode-agent[bot]andopencode-agent[bot] 8ce109f039 chore(sync): update Kilo model catalog (#5838)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 23:21:20 +00:00
opencode-agent[bot]andopencode-agent[bot] b5211ad8c1 chore(sync): update OpenRouter model catalog (#5837)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 23:21:07 +00:00
opencode-agent[bot]andopencode-agent[bot] 6c11fb9b71 chore(sync): update Kilo model catalog (#5834)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 22:22:34 +00:00
opencode-agent[bot]andopencode-agent[bot] 165e30577c chore(sync): update OpenRouter model catalog (#5835)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 22:22:25 +00:00
opencode-agent[bot]andopencode-agent[bot] 3448fbcbe1 chore(sync): update OpenRouter model catalog (#5833)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 21:21:47 +00:00
Tejushandtejush 2c2542b86d chore(sync): update CrofAI model catalog (#5829)
* sync crof providers

* Add GLM 5.3 for Crof provider

---------

Co-authored-by: tejush <mac@MacBook-Air.local>
2026-08-29 15:49:12 -05:00
Zain Hasan cc1c947811 [Together AI] add glm5.3 (#5773) 2026-08-29 15:49:01 -05:00
59fa8dc141 Automate Cloudflare AI Gateway model sync (#5764)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Co-authored-by: superhighfives <449385+superhighfives@users.noreply.github.com>
2026-08-29 15:48:01 -05:00
opencode-agent[bot]andopencode-agent[bot] db8cf18764 chore(sync): update DigitalOcean model catalog (#5767)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 15:41:56 -05:00
opencode-agent[bot]andopencode-agent[bot] 9e01e804bf chore(sync): update OpenRouter model catalog (#5832)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 20:23:34 +00:00
opencode-agent[bot]andopencode-agent[bot] d630ca6b89 chore(sync): update Kilo model catalog (#5831)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 19:19:57 +00:00
opencode-agent[bot]andopencode-agent[bot] 82a91a0595 chore(sync): update OpenRouter model catalog (#5830)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 19:19:48 +00:00
opencode-agent[bot]andopencode-agent[bot] 6b50c5bf0c chore(sync): update Kilo model catalog (#5827)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 18:27:24 +00:00
opencode-agent[bot]andopencode-agent[bot] b6a58e4608 chore(sync): update OpenRouter model catalog (#5826)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 18:26:47 +00:00
opencode-agent[bot]andopencode-agent[bot] 256da29a78 chore(sync): update OpenRouter model catalog (#5823)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 17:21:19 +00:00
opencode-agent[bot]andopencode-agent[bot] e95bbd79d0 chore(sync): update LLM Gateway model catalog (#5821)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 16:24:20 +00:00
opencode-agent[bot]andopencode-agent[bot] dbf59f1b32 chore(sync): update Kilo model catalog (#5819)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 16:24:13 +00:00
opencode-agent[bot]andopencode-agent[bot] b3db1ac80f chore(sync): update DevPass (LLM Gateway) model catalog (#5822)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 16:24:02 +00:00
opencode-agent[bot]andopencode-agent[bot] f50e1759e0 chore(sync): update OpenRouter model catalog (#5820)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 16:23:59 +00:00
opencode-agent[bot]andopencode-agent[bot] ca7157fe5a chore(sync): update OpenRouter model catalog (#5817)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 15:21:51 +00:00
opencode-agent[bot]andopencode-agent[bot] d51a4b6dea chore(sync): update OpenRouter model catalog (#5816)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 14:22:26 +00:00
opencode-agent[bot]andopencode-agent[bot] d174759350 chore(sync): update OpenRouter model catalog (#5815)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 13:21:24 +00:00
opencode-agent[bot]andopencode-agent[bot] ab56db3452 chore(sync): update Kilo model catalog (#5811)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 12:31:24 +00:00
opencode-agent[bot]andopencode-agent[bot] df6579b542 chore(sync): update OpenRouter model catalog (#5810)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 12:31:12 +00:00
opencode-agent[bot]andopencode-agent[bot] ef75469d66 chore(sync): update OpenRouter model catalog (#5807)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 11:21:10 +00:00
opencode-agent[bot]andopencode-agent[bot] efdbe97a8b chore(sync): update NanoGPT model catalog (#5804)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 10:23:10 +00:00
opencode-agent[bot]andopencode-agent[bot] 9dfb877417 chore(sync): update OpenRouter model catalog (#5803)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 10:22:59 +00:00
opencode-agent[bot]andopencode-agent[bot] e1d4ef08c2 chore(sync): update OpenRouter model catalog (#5801)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 09:23:42 +00:00
opencode-agent[bot]andopencode-agent[bot] faa6ca2771 chore(sync): update NanoGPT model catalog (#5800)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 08:28:25 +00:00
opencode-agent[bot]andopencode-agent[bot] 0722469f7f chore(sync): update OpenRouter model catalog (#5799)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 08:28:17 +00:00
opencode-agent[bot]andopencode-agent[bot] cfdc17812e chore(sync): update NanoGPT model catalog (#5795)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 07:25:16 +00:00
opencode-agent[bot]andopencode-agent[bot] 403cf1ca7c chore(sync): update Kilo model catalog (#5796)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 07:25:02 +00:00
opencode-agent[bot]andopencode-agent[bot] 6b3d257932 chore(sync): update OpenRouter model catalog (#5794)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 07:25:00 +00:00
opencode-agent[bot]andopencode-agent[bot] 19162441a4 chore(sync): update NanoGPT model catalog (#5791)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 06:35:05 +00:00
opencode-agent[bot]andopencode-agent[bot] 00123b8410 chore(sync): update OpenRouter model catalog (#5790)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 06:34:55 +00:00
opencode-agent[bot]andopencode-agent[bot] 77d23a28b3 chore(sync): update OpenRouter model catalog (#5788)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 05:24:16 +00:00
opencode-agent[bot]andopencode-agent[bot] ebca5e1873 chore(sync): update Eden AI model catalog (#5789)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 05:24:12 +00:00
opencode-agent[bot]andopencode-agent[bot] d9b639780b chore(sync): update Kilo model catalog (#5784)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 04:27:21 +00:00
opencode-agent[bot]andopencode-agent[bot] 02c4f49b85 chore(sync): update NanoGPT model catalog (#5786)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 04:26:57 +00:00
opencode-agent[bot]andopencode-agent[bot] a12055a570 chore(sync): update OpenRouter model catalog (#5785)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 04:26:55 +00:00
opencode-agent[bot]andopencode-agent[bot] 773275fbc5 chore(sync): update OpenRouter model catalog (#5782)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 03:27:20 +00:00
opencode-agent[bot]andopencode-agent[bot] 3eeaa00199 chore(sync): update Kilo model catalog (#5783)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 03:27:10 +00:00
opencode-agent[bot]andopencode-agent[bot] 214d6f846f chore(sync): update OpenRouter model catalog (#5781)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 02:29:41 +00:00
opencode-agent[bot]andopencode-agent[bot] b24aed886f chore(sync): update Kilo model catalog (#5780)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 02:29:32 +00:00
opencode-agent[bot]andopencode-agent[bot] a4d0d13ea8 chore(sync): update Deep Infra model catalog (#5777)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 01:24:57 +00:00
opencode-agent[bot]andopencode-agent[bot] 5213c55127 chore(sync): update OpenRouter model catalog (#5779)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 01:24:50 +00:00
opencode-agent[bot]andopencode-agent[bot] 467387f9d6 chore(sync): update NanoGPT model catalog (#5778)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 01:24:46 +00:00
opencode-agent[bot]andopencode-agent[bot] a2bec47cd9 chore(sync): update OpenRouter model catalog (#5774)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 00:52:38 +00:00
opencode-agent[bot]andopencode-agent[bot] 5ef63a3f31 chore(sync): update Kilo model catalog (#5775)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-29 00:52:30 +00:00
opencode-agent[bot]andopencode-agent[bot] 62a3fd677f chore(sync): update Venice model catalog (#5771)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 23:20:40 +00:00
opencode-agent[bot]andopencode-agent[bot] 678cc87d34 chore(sync): update OpenRouter model catalog (#5766)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 23:20:23 +00:00
opencode-agent[bot]andopencode-agent[bot] 1c0937c870 chore(sync): update LLM Gateway model catalog (#5768)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 23:20:14 +00:00
opencode-agent[bot]andopencode-agent[bot] 986d8033d1 chore(sync): update Vercel AI Gateway model catalog (#5769)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 23:20:12 +00:00
opencode-agent[bot]andopencode-agent[bot] 04c8586c96 chore(sync): update Kilo model catalog (#5765)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 23:20:06 +00:00
Ahmad Shahzad 28762977e3 feat(fireworks-ai): add GLM 5.3, remove deprecated DeepSeek V4 Flash (#5763)
Add GLM 5.3 (accounts/fireworks/models/glm-5p3) to the Fireworks AI
provider. Released 2026-08-28 on the Serverless API.
Reference: https://fireworks.ai/models/fireworks/glm-5p3
Pricing: https://docs.fireworks.ai/serverless/pricing

- Thinking-only model: reasoning cannot be disabled (reasoning_effort
  "none" and thinking.type "disabled" both return HTTP 400)
- Two effective effort tiers (high, max) matching the GLM 5.2 pattern;
  low/medium are silently collapsed to high, max/xhigh select max
- reasoning_content returned via interleaved field
- Cost: $1.40/$0.26/$4.40 per 1M tokens (input/cache_read/output)

Remove DeepSeek V4 Flash (accounts/fireworks/models/deepseek-v4-flash),
deprecated from the Serverless API on 2026-08-14 and no longer available.
The dated variant deepseek-v4-flash-0731 remains.
2026-08-28 18:13:46 -05:00
813dc773ff chore(sync): update Cortecs model catalog (#5746)
* chore(sync): update Cortecs model catalog

* fix(cortecs): correct GLM-5.3 reasoning options

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 23:07:39 +00:00
941740ce06 chore(sync): update Requesty model catalog (#5755)
* chore(sync): update Requesty model catalog

* fix(requesty): correct GLM-5.3 reasoning options

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 23:07:36 +00:00
cbdddb0350 chore(sync): update Hugging Face model catalog (#5754)
* chore(sync): update Hugging Face model catalog

* fix(huggingface): correct GLM-5.3 reasoning options

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 23:07:33 +00:00
opencode-agent[bot]andopencode-agent[bot] ca762deb03 chore(sync): update Weights & Biases model catalog (#5752)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 18:02:57 -05:00
opencode-agent[bot]andopencode-agent[bot] 7940d75701 chore(sync): update Kilo model catalog (#5760)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 22:13:08 +00:00
opencode-agent[bot]andopencode-agent[bot] f88ee04a42 chore(sync): update OpenRouter model catalog (#5762)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 22:12:14 +00:00
opencode-agent[bot]andopencode-agent[bot] 2aa6915111 chore(sync): update Eden AI model catalog (#5761)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 22:12:06 +00:00
opencode-agent[bot]andopencode-agent[bot] 67f2df4ef2 chore(sync): update EmpirioLabs AI model catalog (#5751)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:01:11 +00:00
opencode-agent[bot]andopencode-agent[bot] 6a9fb0d24e chore(sync): update LLM Gateway model catalog (#5747)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:01:03 +00:00
opencode-agent[bot]andopencode-agent[bot] 9946ad4c04 chore(sync): update Vercel AI Gateway model catalog (#5745)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:57 +00:00
opencode-agent[bot]andopencode-agent[bot] 89a20e7c4e chore(sync): update DevPass (LLM Gateway) model catalog (#5758)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:49 +00:00
opencode-agent[bot]andopencode-agent[bot] 6bb9cecce1 chore(sync): update Eden AI model catalog (#5748)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:46 +00:00
opencode-agent[bot]andopencode-agent[bot] 3046139118 chore(sync): update OpenRouter model catalog (#5749)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:43 +00:00
opencode-agent[bot]andopencode-agent[bot] 3487a0d7e5 chore(sync): update Charm Hyper model catalog (#5743)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:42 +00:00
opencode-agent[bot]andopencode-agent[bot] e6ebea3f0e chore(sync): update Kilo model catalog (#5744)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:40 +00:00
opencode-agent[bot]andopencode-agent[bot] bc83ab017b chore(sync): update NanoGPT model catalog (#5757)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:36 +00:00
opencode-agent[bot]andopencode-agent[bot] 89ebe17f47 chore(sync): update Venice model catalog (#5756)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:34 +00:00
opencode-agent[bot]andopencode-agent[bot] 64b0a7f5e8 chore(sync): update DigitalOcean model catalog (#5750)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:32 +00:00
opencode-agent[bot]andopencode-agent[bot] dd54159871 chore(sync): update Deep Infra model catalog (#5753)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 21:00:29 +00:00
opencode-agent[bot]andrekram1-node 559ab0c119 fix(opencode-go): add Qwen3.8 reasoning efforts (#5741)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 14:04:32 -05:00
chyrocandchenyunpeng.1024 cef5286795 feat(volcengine-coding-plan): add Volcengine Ark Coding Plan (#5534)
* feat(volcengine-coding-plan): add Volcengine Ark Coding Plan

Coding Plan is a subscription tier on its own base URL. Volcengine warns
that calling the pay-as-you-go endpoint with a Coding Plan key does not
draw down the subscription and bills separately, so it needs a distinct
provider entry rather than an alias.

Model names on this plan are the short console labels, not the dated IDs
the pay-as-you-go endpoint requires.

Change-Id: I90b655e95ea358ccc7079093bf2ce9186b2e88c7

* fix(volcengine-coding-plan): use a distinct API key env var

/api/coding/v3 does not check which plan a key belongs to — a pay-as-you-go
key reaches it and bills per token. Sharing ARK_API_KEY with the
pay-as-you-go provider lights up both at once, so a user could pick a
Coding Plan entry and silently pay pay-as-you-go rates. Matches how
alibaba-coding-plan-cn and tencent-coding-plan scope their keys.

Change-Id: I7631ea649b86639aa2ee49777b218dd0b99e35d7

* fix(volcengine-coding-plan): match reasoning_options to measured behaviour

All eight files shared one toggle + four-level declaration. Probing each
model against /api/coding/v3 turned up four distinct shapes:

- deepseek-v4-*, doubao-* (5 models): all seven levels accepted, none and
  minimal return reasoning_tokens = 0, so the toggle was redundant
- minimax-m3: none does NOT disable thinking (24-96 tokens across runs)
  but thinking.type=disabled does, so it keeps the toggle and drops none
- glm-5.3: rejects none, minimal and thinking.type=disabled outright
- kimi-k2.7-code: rejects none and thinking.type=disabled; minimal works

Also adds the wire-path comments each toggle needs per AGENTS.md.

Change-Id: I1e132a9cb514ed7a3200a1ecdd3bc3fd9fc63632

* docs(volcengine-coding-plan): spell out why these five carry no toggle

'none' and 'minimal' both zero out reasoning on these models, so the
effort list already covers the off state and thinking.type would be a
second control for the same thing.

Change-Id: Ie55717c54f0df2d56a65f7fca8316ef8d1fa6655

* docs(volcengine-coding-plan): correct the effort levels in the provider comment

The provider comment said reasoning_effort was minimal, low, medium or high,
which contradicted every model file in this directory and undersold the
endpoint. Re-tested against /api/coding/v3 on 2026-08-27: the levels are
per-model, and each file already declares the right set.

- Doubao entries accept none through max
- glm-5.3 rejects none and minimal with "not supported by this model"
- minimax-m3 accepts none but still spends reasoning tokens on it, so it is
  omitted there rather than declared

A bogus level is rejected with InvalidParameter, so these are enforced sets
rather than ignored strings.

Change-Id: I1e2c1096cea32dbff449eb74d0faebc7006c9a0c

* fix(volcengine-coding-plan): declare effective effort, not accepted strings

The review was right that these three relay entries dumped the accepted enum
instead of the levels that do something. Measured each on /api/coding/v3 with
n=3 runs per level on a hard arithmetic prompt, reading reasoning_content
length because these models report reasoning_tokens = 0:

- glm-5.3: medians 218/518/635/810/754 for low/medium/high/xhigh/max, with a
  589-1854 spread inside 'max' alone. Non-monotonic, so five tiers are not
  separable. Now ["low", "high", "max"], matching providers/zai and the
  zai/zhipuai coding plans.
- kimi-k2.7-code: minimal 707/697/917, high 823/892/755, max 712/861/690 --
  fully overlapping. Now reasoning_options = [], matching the lab
  providers/moonshotai.
- minimax-m3: minimal 1161/1033/805, high 1195/741/840, max 957/709/1088 --
  fully overlapping. Effort dropped, toggle kept, matching first-party MiniMax.

deepseek-v4-flash/pro keep their seven levels: that census is genuinely split
and the most common peer form is the same seven, so there is no baseline to
align to there.

Change-Id: Icf52878829133c067e8ca6ab6a409fdf8042db55

* docs(volcengine-coding-plan): record the n=5 glm-5.3 effort measurements

Reran at n=5 on a prompt hard enough to consume the thinking budget, which
separates the levels the earlier n=3 sample could not:

  low    0 0 0 0 0        medium 0 0 0 0 0     -> medium aliases low
  high   169 149 0 188 0
  xhigh  2840 1943 3338 4655 6279
  max    2363 4567 2962 4606 2327              -> xhigh aliases max

So ["low", "high", "max"] is now backed by measurement rather than only by
matching the peers.

Also notes that Volcengine's mapping table covers glm-5-2-260617 but not 5.3,
and that the 5-2 row disagrees with 5.3's observed behaviour (it maps
low/medium to high; 5.3 returns no reasoning on either), so the table is not
used as the source here.

Change-Id: I82f78b228abe74f85da0cd8d018f37767036e8fc

* fix(volcengine-coding-plan): set effort from measured effect, not accepted strings

Second review pass was right that the remaining relay entries still dumped the
accepted enum. Measured each on /api/coding/v3 with a prompt hard enough to
consume the thinking budget, n=4-5 per level:

- deepseek-v4-flash / -pro: none/minimal are hard zeros, but the graded values
  overlap completely -- on Flash 'high' (121-349) lands below 'low' (216-873).
  Not separable, so only the toggle is declared, and thinking.type does work
  here (enabled -> 57/79 reasoning tokens, disabled -> 0), matching the lab.
- doubao-seed-2.1-turbo / 2.0-lite: this family does grade. Turbo low 578-1148,
  high 1405-1780, max 1224-2166, with medium overlapping low and xhigh spanning
  high..max. Narrowed to none|low|high|max.
- doubao-seed-evolving: none 0, low ~1200-1600, high 2727-4065, but max
  1965-2674 lands *below* high, so max is dropped -- declaring it would point
  callers at a level that thinks less than the one beneath it. none|low|high.
- minimax-m3: restored the explicit wire comment (thinking.type = enabled|disabled
  plus endpoint) that my previous commit dropped.

Worth recording: an easy prompt hides all of this. On a one-step question every
doubao-seed-2.0-lite level lands at 57-73 tokens, which is how the full enum
looked defensible in the first place.

* fix(volcengine-coding-plan): drop max from the remaining Doubao entries

The review caught me applying my own standard inconsistently: I dropped 'max'
from doubao-seed-evolving for overlapping 'high', then kept it on 2.1-turbo and
2.0-lite whose numbers overlap just as much. The 2.0-lite comment even said "max
sits inside the high band" while still declaring max.

Re-measured 2.1-turbo at n=6 to settle it:
  high 1406-2402 (median 1928)   max 1321-2537 (median 1785)
max's median lands below high's, the ranges overlap fully, and the means are
within 2%. Not a deeper tier. On 2.0-lite max's floor (867) is likewise below
high's (896).

Both are now none|low|high, matching evolving.

Also rewrote the provider-level comment, which still described the old shapes.
It now lists the per-model sets as actually declared, with the reason each was
narrowed.

Change-Id: I7c5aa02ba99bda36f64ac992aac583993d023f95

* docs(volcengine-coding-plan): correct the claim about model naming

The comment said this endpoint takes the short console labels "not the dated IDs
the pay-as-you-go endpoint requires". The second half is wrong: /api/coding/v3
accepts both forms. Verified doubao-seed-2-1-turbo-260628,
doubao-seed-2-0-lite-260428 and glm-5-3-260930 all resolve there, alongside their
short labels.

The asymmetry runs the other way: /api/v3 accepts only the dated form and 404s on
a short label. Reworded to state that, and to say the short labels are used
because they match the Coding Plan console rather than because they are required.

Found by driving the catalog against the live endpoint the way a client reading
it would, which is the same pass that produced #5645.

Change-Id: I3a4943d415772135d71774970269410a27969193

---------

Co-authored-by: chenyunpeng.1024 <chenyunpeng.1024@bytedance.com>
2026-08-28 11:43:38 -05:00
1e17f994af chore(sync): update Baseten model catalog (#5735)
* chore(sync): update Baseten model catalog

* fix(baseten): correct GLM 5.3 reasoning metadata

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 11:43:10 -05:00
rupulsafaya 232f848e16 feat(openreason): add OpenReason provider (#5658) 2026-08-28 11:42:50 -05:00
9d7504f188 chore(sync): update Deep Infra model catalog (#5734)
* chore(sync): update Deep Infra model catalog

* fix(deepinfra): add GLM-5.3 reasoning effort options

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 11:42:28 -05:00
MickeyXinandfx247562340 1b008fb619 feat(provider): add Vancine OpenAI-compatible models (#5711)
Co-authored-by: fx247562340 <fx247562340@users.noreply.github.com>
2026-08-28 11:42:02 -05:00
bd428cd1dc chore(sync): update Cloudflare Workers AI model catalog (#5733)
* chore(sync): update Cloudflare Workers AI model catalog

* fix(cloudflare): add GLM-5.3 reasoning controls

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 11:40:51 -05:00
8dceb2091f chore(sync): update Vercel AI Gateway model catalog (#5736)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): add Hy4 preview reasoning effort options

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 11:39:52 -05:00
903b835b0d chore(sync): update Cortecs model catalog (#5718)
* chore(sync): update Cortecs model catalog

* fix(cortecs): correct flash model metadata and reasoning options

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-28 11:39:26 -05:00
MicroHEROX 0192737626 feat: add Qwen3.8-Flash-Next to AMD provider (#5731)
* test write access

* feat: add Qwen3.8-Flash-Next to AMD provider
2026-08-28 11:35:01 -05:00
Tejushandtejush 32aa3c49f0 sync crof providers (#5726)
Co-authored-by: tejush <mac@MacBook-Air.local>
2026-08-28 11:34:39 -05:00
Jaber Jaber 78c4edc8f6 fix(runinfra): correct a 2.4T claim about what the caller actually reads (#5723)
The entry said a caller sending reasoning_effort "none" learns this model has no
off switch. Re-measured on the buyer path 2026-08-27: they do not. The gateway
authors every rejection sentence a buyer reads and answers an unrecognised
refusal generically, so the caller learns the request was rejected and no more.
The claim was true when written and stopped being true when the gateway replaced
upstream text forwarding, which is exactly the kind of quiet drift worth
recording rather than silently overwriting.

What is still true is unchanged and restated: "none" is refused with 400 rather
than folded, so the request is never silently served and billed at the most
expensive setting.
2026-08-28 11:34:09 -05:00
github-actions[bot] 46c46fe13b fix: bug(huggingface): zai-org/GLM-5.3-Flash missing vision modality (#5713)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-28 11:34:01 -05:00
opencode-agent[bot]andopencode-agent[bot] 9b6e8aa417 chore(sync): update NanoGPT model catalog (#5720)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 11:33:33 -05:00
Daniele Scasciafratte dabd176a00 fix(regolo): model updated (#5703)
* fix(regolo): model updated

* fix(regolo): model updated
2026-08-28 11:31:38 -05:00
chyroc ec0ec5d5bc feat(bytedance-seed): declare structured_output on 11 Seed models (#5702)
seed-2.0-code already declares it; the other Seed entries omit the field, so
downstream consumers that derive structured-output support from this catalog
treat them as unsupported.

Verified against POST /api/v3/chat/completions on the Volcengine Ark host, one
call per model, using response_format with a strict json_schema
(additionalProperties: false, both properties required). All 11 returned 200 and
emitted schema-conforming JSON.
2026-08-28 11:31:30 -05:00
chyroc 9034244600 fix(volcengine): drop redundant context override on Seed 2.0 lite/mini (#5698)
Follow-up to #5644, which merged with the review point unaddressed.

The lab entries models/bytedance-seed/seed-2.0-{lite,mini}.toml already
declare limit.context = 256_000. Plain objects deep-merge, so restating an
identical inherited value violates the override-only rule for base_model
files. Only output is a real delta (32_000 in the lab, 131_072 on this
host), so keep output and let context inherit.
2026-08-28 11:31:21 -05:00
opencode-agent[bot]andopencode-agent[bot] 4b0b4ffb58 chore(sync): update Kilo model catalog (#5737)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 16:25:19 +00:00
opencode-agent[bot]andopencode-agent[bot] 0f110ac7b6 chore(sync): update OpenRouter model catalog (#5738)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 16:25:03 +00:00
opencode-agent[bot]andopencode-agent[bot] f03e0bc809 chore(sync): update Eden AI model catalog (#5739)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 16:25:01 +00:00
黑墨水鱼 b87b0fb8e2 Merge pull request #5732 from heimoshuiyu/qwen38-flash-effort
feat(alibaba): add qwen3.8-flash effort levels and first-party entries
2026-08-28 23:24:53 +08:00
heimoshuiyu d1d2d9548f feat(alibaba): add qwen3.8-flash effort levels and first-party entries 2026-08-28 23:19:52 +08:00
Jack 541e10177d Merge pull request #5714 from anomalyco/hy4-go-model
feat(go): add Hy4 preview
2026-08-28 23:03:28 +08:00
Jack c87b79e20f Merge pull request #5715 from anomalyco/ling-fin-free
feat(opencode): add Ling 3.0 Flash Fin Free
2026-08-28 23:03:04 +08:00
opencode-agent[bot]andopencode-agent[bot] 78bdefe1cf chore(sync): update Kilo model catalog (#5717)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 12:08:08 +00:00
opencode-agent[bot]andopencode-agent[bot] 0ef87b690c chore(sync): update DevPass (LLM Gateway) model catalog (#5719)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 12:08:02 +00:00
opencode-agent[bot]andopencode-agent[bot] 6546b4aacf chore(sync): update OpenRouter model catalog (#5722)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 12:07:57 +00:00
opencode-agent[bot]andopencode-agent[bot] aa1810a869 chore(sync): update Inceptron model catalog (#5721)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 12:07:48 +00:00
opencode-agent[bot]andopencode-agent[bot] a32093b993 chore(sync): update LLM Gateway model catalog (#5716)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 12:07:37 +00:00
Jack 585cd47755 feat(opencode): add Ling 3.0 Flash Fin Free 2026-08-28 20:02:25 +08:00
Jack 24b3044efe feat(go): add Hy4 preview 2026-08-28 19:31:22 +08:00
Jack b3f72465a0 Merge pull request #5701 from chl-0537/feature/add-hy4-preview
Feature/add new model
2026-08-28 18:23:03 +08:00
opencode-agent[bot]andopencode-agent[bot] a5361abe76 chore(sync): update OpenRouter model catalog (#5705)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 07:57:18 +00:00
opencode-agent[bot]andopencode-agent[bot] f4ccabc021 chore(sync): update NanoGPT model catalog (#5709)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 07:57:14 +00:00
opencode-agent[bot]andopencode-agent[bot] 491da01704 chore(sync): update Eden AI model catalog (#5706)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 07:57:08 +00:00
opencode-agent[bot]andopencode-agent[bot] e8af69043a chore(sync): update CrossModel model catalog (#5707)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 07:57:04 +00:00
opencode-agent[bot]andopencode-agent[bot] 4fa188de04 chore(sync): update Kilo model catalog (#5708)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 07:57:01 +00:00
Jack 7431bd4b82 feat(go): add qwen3.8-flash 2026-08-28 13:47:04 +08:00
opencode-agent[bot]andopencode-agent[bot] c6282e24a5 chore(sync): update OpenRouter model catalog (#5696)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 04:58:23 +00:00
opencode-agent[bot]andopencode-agent[bot] 950fbab52a chore(sync): update CrossModel model catalog (#5694)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 04:58:16 +00:00
opencode-agent[bot]andopencode-agent[bot] 0af2a5de52 chore(sync): update Kilo model catalog (#5693)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 04:58:08 +00:00
opencode-agent[bot]andopencode-agent[bot] 65dfa50bc0 chore(sync): update Vercel AI Gateway model catalog (#5695)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 04:58:05 +00:00
opencode-agent[bot]andopencode-agent[bot] b253ad0e2d chore(sync): update NanoGPT model catalog (#5697)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 04:57:59 +00:00
mickalchenandCursor 9f588170d2 drop Hy4 preview Hugging Face weights link
The weights page is not published yet; keep open_weights without a URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 12:54:44 +08:00
mickalchenandCursor a6705529c6 mark Hy4 preview as open weights
Hy4 preview ships public weights; align the lab entry with Hy3 preview.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 12:44:15 +08:00
github-actions[bot] f2c217d47c fix: 阿里巴巴tokenplan里应有qwen3.8-flash (#5657)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-27 22:55:22 -05:00
mickalchenandCursor 4daf03dcfe add Hy4 preview on Tencent TokenHub and Token Plan
Keep the catalog entries on an unmerged branch so they are not loaded by models.dev until the model is ready to publish.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 11:54:23 +08:00
github-actions[bot] 7a724909f3 fix: [missing-model] ofox: z-ai/glm-5.3-flash (#5611)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-27 22:17:03 -05:00
opencode-agent[bot]andopencode-agent[bot] e6b26ff747 chore(sync): update DigitalOcean model catalog (#5686)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 22:16:47 -05:00
opencode-agent[bot]andopencode-agent[bot] f36210a4bf chore(sync): update Vercel AI Gateway model catalog (#5685)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 01:57:24 +00:00
opencode-agent[bot]andopencode-agent[bot] 6fa95040b2 chore(sync): update Merge Gateway model catalog (#5690)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 01:57:06 +00:00
opencode-agent[bot]andopencode-agent[bot] 41d4cd606b chore(sync): update NanoGPT model catalog (#5688)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 01:57:04 +00:00
opencode-agent[bot]andopencode-agent[bot] 1cdebb5615 chore(sync): update Kilo model catalog (#5687)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 01:57:02 +00:00
opencode-agent[bot]andopencode-agent[bot] 4d4e34c804 chore(sync): update OpenRouter model catalog (#5689)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-28 01:56:53 +00:00
Ahmad Shahzad 2aaf0276b5 chore(fireworks-ai): remove deprecated serverless models (08/27/2026) (#5683)
Remove models decommissioned from serverless endpoints on 2026-08-27:
- MiniMax M2.7
- GPT OSS 20B
- Kimi K2.6 Fast
- Kimi K2.6 Turbo
- Kimi K2.7 Code Fast
- DeepSeek V4 Pro
2026-08-27 20:08:12 -05:00
Zikri ab95d3c3dd Add missing Kenari models (#5612)
* Add missing Kenari models

* Remove Kenari models with unresolved reasoning controls
2026-08-27 19:33:16 -05:00
4ebuRushkaand4ebuRushka b6e99de447 feat(nvidia): add deepseek-v4-pro-0813 provider entry (#5624)
- base_model deepseek/deepseek-v4-pro-0813 with override-only provider fields
- reasoning_effort none|high|max per NIM chat schema, interleaved reasoning_content
- cost 0/0 trial tier (no separate list rate on build.nvidia.com card)
- validated via live endpoint tests (top-level reasoning_effort none/high/max, chat_template_kwargs thinking)

Refs: https://build.nvidia.com/deepseek-ai/deepseek-v4-pro-0813
Precedent: #5288 (flash-0731)

Co-authored-by: 4ebuRushka <4eburushka@users.noreply.github.com>
2026-08-27 19:32:13 -05:00
Andrew Szeto 2c9e708536 fix(sync): reject synced model paths with case-collisions (#5615)
Previous PRs #5318 and #5517 fixed an issue where model entries collided on
case-insensitive filesystems (like the default one for MacOS), but they only
fixed it specifically for the Eden AI case. This commit adds a check to handle
it more generally.
2026-08-27 19:31:57 -05:00
chyroc 242ba90e29 fix(volcengine): declare reasoning on Seed 1.6 flash and vision (#5639)
* fix(volcengine): declare reasoning on Seed 1.6 flash and vision

Both models are served as reasoning=false on models.dev today, but they reason
by default: a bare request with no reasoning parameters returns 283 and 166
reasoning tokens respectively, with reasoning_content populated. The entries were
missing a reasoning_options block, and the bytedance-seed lab entries do not
declare one either, so nothing supplied it.

Declared as a toggle, which is what actually works here:
  flash   thinking.type=enabled -> 278 reasoning tokens, disabled -> 0
  vision  thinking.type=enabled -> 162 reasoning tokens, disabled -> 0

No graded effort on either. reasoning_effort is accepted but not separable, and
'none' does not switch thinking off, measured n=4 per level:
  flash   none 762/479/627/646  minimal 715/513/760/717  low 942/561/660/596
          high 599/502/586/837  max 575/863/714/598
  vision  none 895/927/670/736  low 550/901/775/598
          high 578/738/787/1031 max 852/813/1011/699

Found while auditing the live api.json against the real API rather than from a
report, so downstream consumers have been reading the wrong flag since #5513.

Change-Id: I6e2129eded9b5d26768e29afb9c0a5aa4de10999

* fix(volcengine): set reasoning = true explicitly on the two Seed 1.6 entries

CI caught that reasoning_options alone isn't enough: the validator rejects
"Cannot set reasoning_options when reasoning is false". The boolean is not
derived from the options block, and neither the volcengine entries nor the
bytedance-seed lab entries they inherit from declare it, so it defaulted to
false. Set it explicitly, the way peers such as providers/302ai do.

Verified with the repo's own validator locally (bun packages/core/script/
validate.ts, exit 0) rather than relying on CI to check it.

Change-Id: Ia6ebc6cf2e1c5a78d2454c23247f26dbb7bbdcbd
2026-08-27 19:31:26 -05:00
chyroc 7e490708c8 fix(volcengine): correct the output limit on Seed 2.0 lite and mini (#5644)
Both entries inherit output = 32_000 from models/bytedance-seed, but this host
accepts four times that. Probed the boundary on /api/v3/chat/completions:

  lite  max_tokens=131072 -> 200,  132000 -> 400 "max_tokens ... not valid"
  mini  max_tokens=131072 -> 200,  132000 -> 400

131_072 is also what openrouter, kilo and nano-gpt already declare for the same
base model, so the lab default is simply stale rather than host-specific. Added
a per-host [limit] override, which is the pattern those three use.

Left context at the inherited 256_000: a 180k-token prompt was accepted, which
does not discriminate between 256_000 and the 262_144 the other hosts claim, so
there is no measurement to justify changing it.

Checked the neighbours rather than assuming the family shares a ceiling:
doubao-seed-1-6-flash-250828 and -vision-250815 reject max_tokens=131072 and
genuinely cap at 32_000, so they are left alone.

Verified with the repo's validator locally (bun packages/core/script/validate.ts,
exit 0) and confirmed the generated limit reads 131072 for these two and stays
32000 for the 1.6 entries.

Change-Id: I87cca991db79bd2aa586d75d44c1e26c4580fac9
2026-08-27 19:30:28 -05:00
opencode-agent[bot]andopencode-agent[bot] 991dd4ce30 chore(sync): update Weights & Biases model catalog (#5665)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 19:28:25 -05:00
chyroc cc460f27fb fix(volcengine): correct the effort levels on Seed character (#5645)
Driving every model from the live api.json with exactly what it declares turned
up that five of this entry's six effort values are rejected outright:

  reasoning_effort=low   -> 400 "Invalid combination of reasoning_effort and
                                 thinking type: low + disabled"
  same for medium, high, xhigh, max; only none and minimal are accepted alone

The cause is that this model defaults thinking OFF, so a graded effort has to be
paired with thinking.type=enabled. The existing comment noted the default but the
values list still implied the levels worked on their own.

With thinking enabled they are accepted, but not all are separable. n=4 runs per
level on a prompt hard enough to consume the budget:

  minimal 0 0 0 0                 low  1347/1258/1166/1149
  high    1709/2696/1695/1513     max  2304/1881/1985/1480

max overlaps high rather than exceeding it, and medium/xhigh fall in the same
band, so the effective set is minimal|low|high.

Worth noting an easy prompt hides this completely: on a one-step question every
level lands at 67-79 reasoning tokens.

Verified with the repo's validator locally (bun packages/core/script/validate.ts,
exit 0) and confirmed the generated api.json now lists the three levels.

Change-Id: Ie8ad1ec73fe304c65fe3cc10b95015b7ec0c9937
2026-08-27 19:27:04 -05:00
Rubin Simons 309c1bd857 Update orcarouter catalog (#5637)
* fix(orcarouter): remove models no longer served

Absent from both https://api.orcarouter.ai/v1/models and
https://api.orcarouter.ai/api/pricing as of 2026-08-27.

* feat(orcarouter): add Fusion and free router models

Adds fusion, fusion-mini, fusion-flash and free, all present in
/v1/models. Descriptions come from the public model pages.

The Fusion slugs carry no [cost]: they bill as the sum of the models
actually run, at upstream cost, no markup.

https://www.orcarouter.ai/models/orcarouter/fusion
https://docs.orcarouter.ai/routing/fusion
https://docs.orcarouter.ai/routing/free-models

* feat(orcarouter): add models missing from the catalog

Adds 38 models served by OrcaRouter, currently absent from models.dev,
including Claude Opus 5 / Sonnet 5 / Fable 5, GPT-5.6 luna/sol/terra,
Gemini 3.5 and 3.6 Flash, Grok 4.5 / 4.6, Kimi K3, MiniMax M3, GLM 5.2 /
5.3, the Qwen3.7 and Qwen3.8 lines, Hy3 and the -free variants.

Costs come from https://api.orcarouter.ai/api/pricing, whose ratios
convert as input = model_ratio * 2 and output = input *
completion_ratio, verified against prompt_per_million in
https://api.orcarouter.ai/v1/models.

reasoning_options mirror each model's lab entry. Anthropic entries
use low/medium/high, the three levels the gateway documents mapping
onto Claude thinking budgets.

https://docs.orcarouter.ai/advanced/reasoning

* fix(orcarouter): refresh pricing and limits from /api/pricing

Prices derived from the ratio catalog as input = model_ratio * 2,
output = input * completion_ratio and cache_* = input * cache_ratio,
verified against prompt_per_million in /v1/models.

I treated the endpoint as authoritative for prices.

* fix(orcarouter): correct tiered base prices

Five entries had the >200K/272K tier's input and output copied into
the base [cost] row, so the high band was applied from the first
token. cache_read was left at the correct base rate.

gpt-5.4, gpt-5.4-pro, gemini-2.5-pro, gemini-3.1-pro-preview and
gemini-3.1-pro-preview-customtools now match providers/openai and
providers/google for both the base row and the tier.

* fix(orcarouter): author real reasoning controls

Replaces reasoning_options = [] on 41 models that do expose caller
control. Entries are derived from each model's first-party provider
entry and confirmed against supported_parameters in /api/pricing.

Also corrects OpenAI effort sets: gpt-5-pro accepts only high, and
the .2/.4/.5-pro models are medium/high/xhigh rather than
low/medium/high.

Leaves [] for: deepseek-reasoner (effort is a documented no-op), the
Gemma models, and the chat-latest aliases.

Keeps the Gemini 2.5 effort controls rather than swapping them for
the native thinkingBudget, since the gateway maps reasoning_effort
onto thinkingConfig.

Adds the leading toggle wire-path comments mentioned as required.

* fix(orcarouter): use the lab control surface for qwen3.7-flash

The effort list none|high came from relay peers. The first-party CN
host providers/alibaba-cn and OpenRouter both expose enable_thinking
plus thinking_budget.

Also makes the file consistent with qwen3.7-plus and qwen3.7-max in
this provider, which already use toggle plus budget_tokens.

* fix(orcarouter): drop minimal from gemini-flash-latest effort

The alias tracks Gemini 3.7 Flash, whose effort set is low, medium
and high. minimal belongs to gemini-flash-lite-latest, which tracks
3.5-flash-lite.

Note that the host prices this alias below Googles own flash-latest
rate, which /api/pricing and /v1/models both report as 0.5/3.

* fix(orcarouter): declare interleaved on dated DeepSeek entries

deepseek-v4-flash-0731 and deepseek-v4-pro-0813 omitted
[interleaved]. Neither has a first-party provider entry to inherit
it from, unlike their undated siblings, so both were generated
without the reasoning_content side channel their model returns.

* docs(orcarouter): note deepseek-reasoner cache rate

Its rate of 0.147/0.295 comes straight from prompt_per_million and
completion_per_million in /v1/models, and its cache_ratio of
0.19047619 differs from the 0.136054422 that deepseek-chat and
deepseek-v4-flash carry. That is why cache_read stays at 0.028 while
the siblings moved to 0.02.

* docs(orcarouter): note claude-opus-5 cache write rate

The host bills cache write at 2x input for this model, against 1.25x
for every other Claude entry it serves. Confirmed by
create_cache_ratio = 2 in /api/pricing and by the public model page,
which lists Cache write / 1M $10.00.

* fix(orcarouter): correct Gemini audio input rates

gemini-flash-latest carried input_audio = 1.5, derived from the
superseded 1.5 input price. /api/pricing publishes no audio_ratio for
that alias, so the field is dropped.

Adds the audio rates to: gemini-3.1-flash-lite 0.5, gemini-3.5-flash 3
and gemini-3.1-pro-preview 2.

Notes that gemini-3.6-flash is billed at 2x Googles own rate, which
/api/pricing and /v1/models both confirm.

* docs(orcarouter): explain the Fusion cost omission

The Fusion slugs bill as the sum of the panel legs actually run, at
upstream cost with no markup, so there is no per-token rate to
publish. AGENTS.md allows omitting [cost] for that case, but the
omission was indistinguishable from missing data.

* fix(orcarouter): drop invented toggle on qwen3-vl thinking SKU

This is a dedicated thinking checkpoint paired with
qwen3-vl-235b-a22b-instruct, and PR documentation treats separate
-thinking/instruct ids as not constituting a toggle.

The toggle came from merge-gateway, which is alone in declaring one:
eight peers use [] and nano-gpt uses budget-only with the same 1024
to 81920 bounds. Keeps budget_tokens, which OrcaRouter advertises as
thinking_budget.
2026-08-27 19:26:50 -05:00
opencode-agent[bot]andopencode-agent[bot] 3c500e1f99 chore(sync): update Requesty model catalog (#5670)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:42:28 -05:00
cee0830fa5 chore(sync): update Vercel AI Gateway model catalog (#5672)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): expose Ling Flash Fin reasoning toggle

Replace empty reasoning options with the binary reasoning.enabled control on both Ling 3.0 Flash Fin routes. Do not advertise unsupported graded effort or token budgets.

Extract shared InclusionAI model metadata as required by the catalog guidelines, retaining Vercel-specific limits and prices.

---------

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-08-27 18:42:03 -05:00
C.C.andClaude Opus 5 0aecf6f42d feat(vivgrid): add glm-5.3-flash (#5616)
Vivgrid now serves Zhipu AI's GLM-5.3-Flash through its unified
OpenAI-compatible endpoint. Override-only entry on the existing
zhipuai/glm-5.3-flash lab metadata.

Pricing (USD per 1M tokens, https://docs.vivgrid.com/models):
input $0.15 / cached input $0.04 / output $0.50.

Reasoning controls and the reasoning_content side channel follow the
sibling providers/vivgrid/models/glm-5.3.toml entry — same host, same
lab, same generation, same OpenAI-compatible surface.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-27 18:40:53 -05:00
Andrew Szeto 03d0e09da3 feat(github-copilot): Add sync provider for GitHub Copilot (#5623)
* feat(github-copilot): sync pricing from the github/docs pricing table

GitHub Copilot has no pricing API, but the docs pricing page is
rendered from a YAML data file in the public github/docs repo, so this
module syncs [cost] from that file and leaves everything else in the
TOMLs hand-authored. Copilot pricing has needed manual updates a few times
recently (#3282, #3965, #5186), so this should help automate that.

* chore(sync): update GitHub Copilot model catalog
2026-08-27 18:40:39 -05:00
Zain Hasan 417db23321 [Together AI] add glm 5.3 flash (#5634) 2026-08-27 18:40:11 -05:00
Raphael Palma 154531a871 feat(ollama-cloud): add glm-5.3-flash (#5675)
GLM-5.3-Flash (320B-A18B, MIT, released 2026-08-26) is served on Ollama Cloud as glm-5.3-flash:cloud. Inherits shared metadata from zhipuai/glm-5.3-flash; overrides open_weights (weights are public on HuggingFace) and adds the effort-based reasoning options and reasoning_content interleave that Ollama's OpenAI-compatible endpoint returns. Verified against https://ollama.com/v1.
2026-08-27 18:39:42 -05:00
Jaber Jaber 4fe69cc585 feat(runinfra): add GLM 5.3 Flash and Ornith 1.5 35B A3B, correct the Nemotron cached price (#5674)
* feat(runinfra): add GLM 5.3 Flash and Ornith 1.5 35B A3B

GLM 5.3 Flash overrides the existing zhipuai/glm-5.3-flash lab entry with the
context window, output budget, prices and input modalities this deployment was
launched with. Ornith 1.5 35B A3B is self-contained because no Ornith 1.5 lab
entry exists upstream, matching the shape nano-gpt already uses.

Every reasoning, caching and capability claim was probed live on 2026-08-27 at
temperature 0 with three repeats per level; the evidence is in each file comment.
GLM distinguishes only low and high and refuses to disable reasoning, which its
own 400 body states. Ornith is an on/off toggle: none completes in 4 tokens
against 78 for every other value including the default.

* fix(runinfra): publish the Nemotron cached input price

Prefix caching is live on this serve and priced at $0.01 per million cached
input tokens, but the entry carried no cache_read, so the catalog understated
what the model costs to run with a repeated prefix. Confirmed by probe rather
than declaration: an identical 4,200-token prompt repeated 6 times reported
cached_tokens 0 then 4,352 on every attempt after the first.

* fix(ornith): add the Ornith 1.5 lab entry and make the provider file override-only

The review bot is right. RunInfra did not create this checkpoint, it is nameable
on Hugging Face and already hosted elsewhere, so a full inline provider
definition skipped the required lab entry. Matching the shape another provider
already uses is not an exemption.

Ornith 1.5 35B A3B now has a lab file under deepreinforce, the lab that makes
the Ornith family and already carries the 1.0 variants. Model facts come from
the Hugging Face repo ornith-ai/Ornith-1.5-35B-A3B read 2026-08-27: created
2026-08-18, last modified 2026-08-23, license mit, tagged image-text-to-text
and conversational.

The provider file is now base_model plus real deltas only: prices, the reasoning
toggle, the interleaved field, and the output budget this deployment was launched
with. Context and modalities match the lab entry and are no longer restated.
2026-08-27 18:39:35 -05:00
d050e33943 Add TokenGo OpenAI-compatible provider (#5676)
* Add TokenGo OpenAI-compatible provider

Catalog TokenGo as a gateway with currentColor logo, provider metadata, and 13 hosted models using lab base_model plus TokenGo USD pricing.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Cite TokenGo pricing sources and drop unverified Qwen budget.

Map each model’s USD rates to the public Model Hub plus console cache ratios, and stop claiming DashScope thinking_budget on this OpenAI-compatible gateway.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Document TokenGo reasoning extra_body wire paths.

Restore the Qwen toggle with enable_thinking and state each model's TokenGo request field so clients can form valid openai-compat reasoning requests.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Align GLM-5.3 Flash hub comment with corrected output.

---------

Co-authored-by: Eddie Zheng <eddiezheng@Eddies-MacBook-Pro.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 18:39:20 -05:00
轻尘 7af48014c4 feat: add DeepSeek-V4-Pro-0813 to SCNet Token Plan (#5662) 2026-08-27 18:38:21 -05:00
hndr 1df64ddff1 add Qwen3.8 and GLM 5.3 Flash to Modal (#5660) 2026-08-27 18:38:05 -05:00
Rubin Simons d701eedc4c Update neuralwatt catalog (#5636)
* fix(neuralwatt): remove models no longer served

Absent from https://api.neuralwatt.com/v1/models and from the model
list embedded in https://portal.neuralwatt.com/pricing as of
2026-08-27. Drops the Kimi K2.5, Kimi K2.6 and Qwen3.5 lines.

Also drops the HuggingFace-style Kimi-K2.7-Code and Qwen3.6-35B-A3B
ids, which the provider has renamed to kimi-k2.7-code and
qwen3.6-35b; both are re-added under the new ids.

Keeps deepseek-v4-pro and qwen-3.8-27b: both are access-gated
preview models, so their absence from the public catalog is
expected.

* feat(neuralwatt): add models missing from the catalog

Adds kimi-k2.7-code, kimi-k2.7-code-fast, kimi-k3-flex and
qwen3.6-35b. The first and last replace the HuggingFace-style ids
removed in the previous commit.

Pricing, limits, capabilities and reasoning controls come from
metadata on GET https://api.neuralwatt.com/v1/models. Effort lists
are reasoning.supported_efforts; both kimi-k2.7-code variants report
reasoning with no effort control, so they take an empty list.

kimi-k3-flex applies the documented 0.65 flex multiplier.

* fix(neuralwatt): update flex pricing to the 0.65 multiplier

The flex tier moved from 50% off to 35% off (a 0.65 multiplier).
Four files were still deriving flex rates at 0.5.

Rates are now 0.65x the standard rates published by
GET https://api.neuralwatt.com/v1/models, cached input included.
deepseek-v4-flash-flex and kimi-k3-flex were already correct.

https://portal.neuralwatt.com/docs/guides/flex-tier

* fix(neuralwatt): refresh pricing, limits and capabilities

Cached input is published per model as
metadata.pricing.cached_input_per_million; these files derived it as
25% of input instead, overstating it 2.5x on six models. The real
ratio is 10% for GLM, Gemma and Qwen3.6.

The GLM short variants publish max_output_tokens = 32000; they were
using their 199984 context window as the output cap.

Adds explicit structured_output from capabilities.json_mode, and
pins kimi-k2.7-code-flex to NeuralWatt's 262128 context rather than
inheriting the lab entry's 262144.

Source: GET https://api.neuralwatt.com/v1/models

* fix(neuralwatt): correct reasoning capability and controls

Effort lists come from metadata.reasoning.supported_efforts. The GLM
files claimed seven levels where the API supports three; the other
four are aliases it folds into those three, not distinct levels.

glm-5.2-fast, -short-fast and -short-fast-flex were marked
reasoning = false. They report capabilities.reasoning true with
default_effort none, so reasoning is available, just off by default.

Drops toggles on gemma-4-31b and kimi-k3: every effort list here
includes none, which means "off".

thinking_token_budget was probed against the live API. Every model
accepts it except deepseek-v4-flash and gemma-4-31b, which 400 on
the V2 model runner. This adds budget_tokens where it was missing,
including the kimi-k2.7-code variants that previously declared no
controls at all, and corrects kimi-k3, whose comment claimed the
budget was rejected.

* docs(neuralwatt): rewrite README against the live catalog

The model list named the removed K2.5, K2.6 and Qwen3.5 lines and
used the old HuggingFace-style ids. Flex was documented at a 50%
discount rather than the current 0.65 multiplier. Cache reads were
described as a flat 25% of input, but the rate is published per model
and ranges from 10% to 55.6%. Fast variants were called non-reasoning,
which holds for only two of five.

Adds sections on reasoning controls, including the aliasing in
accepted_efforts, and on access-gated preview models, so their
absence from the public catalog is not read as a delisting.

* fix(neuralwatt): correct stale kimi-k3 reasoning header

The leading comment survived the reasoning_options rewrite and
contradicted it. It documented an enable_thinking toggle, an effort
range of low|high|max, and claimed thinking_token_budget was rejected
by the V2 model runner, which are not correct (anymore).

The current effort list includes none as the off switch,
and the budget returns 200 when probed against the live API.

* fix(neuralwatt): declare the reasoning side channel correctly

Neuralwatt returns the reasoning trace on a `reasoning` field, in
streaming deltas and non-streaming messages alike. Probing the live
API shows `reasoning_content` is never populated, so the seven files
naming that field pointed clients at something that does not exist,
and eleven reasoning models declared no channel at all.

The schema's field enum offers only reasoning_content and
reasoning_details, so this uses the bare `interleaved = true`, as
providers/scx-ai does for a host with the same behaviour.

All 18 reasoning models now declare it; kimi-k3-fast and
qwen3.6-35b-fast report no reasoning and declare none.

* fix(neuralwatt): repair split effort comment on deepseek-v4-pro

Inserting interleaved = true above the reasoning_options tables
allowed for only one comment line before the header. The Effort note
on deepseek-v4-pro is two lines, so the key landed between them.

Restores the note as a contiguous block and groups interleaved with
the other top-level keys, matching the three sibling files.
2026-08-27 18:37:10 -05:00
opencode-agent[bot]andopencode-agent[bot] 2a47f8241f chore(sync): update Charm Hyper model catalog (#5677)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 22:35:24 +00:00
opencode-agent[bot]andopencode-agent[bot] bd5b109c65 chore(sync): update Eden AI model catalog (#5678)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 22:35:18 +00:00
opencode-agent[bot]andopencode-agent[bot] 2666ed927a chore(sync): update LLM Gateway model catalog (#5682)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 22:35:12 +00:00
opencode-agent[bot]andopencode-agent[bot] 2de1b25508 chore(sync): update OpenRouter model catalog (#5679)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 22:35:08 +00:00
opencode-agent[bot]andopencode-agent[bot] 23916d26a3 chore(sync): update Kilo model catalog (#5680)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 22:35:03 +00:00
opencode-agent[bot]andopencode-agent[bot] 14993bf176 chore(sync): update Merge Gateway model catalog (#5681)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 22:34:59 +00:00
opencode-agent[bot]andopencode-agent[bot] 826d9fe918 chore(sync): update Eden AI model catalog (#5667)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:57:01 +00:00
opencode-agent[bot]andopencode-agent[bot] 48ab90fc11 chore(sync): update Kilo model catalog (#5669)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:55:50 +00:00
opencode-agent[bot]andopencode-agent[bot] 43bd326c81 chore(sync): update Charm Hyper model catalog (#5671)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:55:44 +00:00
opencode-agent[bot]andopencode-agent[bot] 05508ec104 chore(sync): update Merge Gateway model catalog (#5668)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:55:42 +00:00
opencode-agent[bot]andopencode-agent[bot] 52772eefe1 chore(sync): update OpenRouter model catalog (#5663)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:55:37 +00:00
opencode-agent[bot]andopencode-agent[bot] 85226bf967 chore(sync): update NanoGPT model catalog (#5664)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:55:27 +00:00
opencode-agent[bot]andopencode-agent[bot] e221c9671b chore(sync): update Inceptron model catalog (#5666)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 18:55:23 +00:00
opencode-agent[bot]andopencode-agent[bot] f4c21ace13 chore(sync): update Kilo model catalog (#5654)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 14:57:42 +00:00
opencode-agent[bot]andopencode-agent[bot] b402aba317 chore(sync): update OpenRouter model catalog (#5655)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 14:57:36 +00:00
opencode-agent[bot]andopencode-agent[bot] 695c779a04 chore(sync): update Charm Hyper model catalog (#5653)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 14:57:25 +00:00
opencode-agent[bot]andopencode-agent[bot] e3d35506e9 chore(sync): update Eden AI model catalog (#5588)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 14:56:56 +00:00
opencode-agent[bot]andopencode-agent[bot] f5e07b0619 chore(sync): update Venice model catalog (#5652)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 14:56:47 +00:00
opencode-agent[bot]andopencode-agent[bot] 81f5b420aa chore(sync): update LLM Gateway model catalog (#5650)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 14:56:42 +00:00
opencode-agent[bot]andopencode-agent[bot] d85ae6220b chore(sync): update DevPass (LLM Gateway) model catalog (#5651)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 14:56:34 +00:00
opencode-agent[bot]andopencode-agent[bot] b89c2e881c chore(sync): update NanoGPT model catalog (#5643)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 10:34:00 +00:00
opencode-agent[bot]andopencode-agent[bot] e576a62384 chore(sync): update OpenRouter model catalog (#5641)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 10:33:20 +00:00
opencode-agent[bot]andopencode-agent[bot] 9863b5cd74 chore(sync): update Inceptron model catalog (#5640)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 10:33:17 +00:00
opencode-agent[bot]andopencode-agent[bot] 5640cf91a7 chore(sync): update Kilo model catalog (#5642)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-08-27 10:33:14 +00:00
Jack de6db2dcd0 drop hy4-preview 2026-08-27 16:39:22 +08:00
Jack 776123c0d1 fix hy4-preview 2026-08-27 16:23:06 +08:00
Jack 0eefb2845c deprecate hy4-preview 2026-08-27 16:18:21 +08:00
893 changed files with 7885 additions and 4268 deletions

No files matched your search

+2
View File
@@ -88,6 +88,8 @@ jobs:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID }}
CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_ACCOUNT_ID }}
CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_AI_SYNC_API_TOKEN }}
+36
View File
@@ -0,0 +1,36 @@
# Sources (accessed 2026-08-28):
# https://huggingface.co/Qwen/Qwen3.8-Flash-Next
# https://huggingface.co/api/models/Qwen/Qwen3.8-Flash-Next
# https://qwen.ai/blog?id=qwen3.8-flash-next
# Hub lastModified 2026-08-27T05:03:36Z is the open-weight drop (Do not use
# Hub createdAt, staged countdown page).
# Experimental preview of the Qwen4 architecture (Qwen4Exp): hybrid
# Gated DeltaNet + Qwen Sparse Attention, 512 experts (10 routed + 1 shared),
# 125B total with 6B active plus 51B n-gram embedding and 4B MTP.
# Thinking always on: reasoning_effort low|medium|xhigh (default xhigh).
# Native context 262K, extensible up to 1M tokens.
name = "Qwen3.8 Flash Next"
description = "Open-weight experimental preview of the Qwen4 architecture: hybrid-attention MoE (125B total, 6B active) with vision encoder for coding, agent tasks, and image and video understanding"
family = "qwen"
release_date = "2026-08-27"
last_updated = "2026-08-27"
attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = true
license = "qwen-community-1.0"
[limit]
context = 262_144
output = 131_072
[modalities]
input = ["text", "image", "video"]
output = ["text"]
[[weights]]
label = "Hugging Face"
url = "https://huggingface.co/Qwen/Qwen3.8-Flash-Next"
+19
View File
@@ -0,0 +1,19 @@
name = "Claude Fable 5.1"
description = "Claude model for demanding reasoning and long-horizon agentic work"
family = "claude-fable"
release_date = "2026-09-01"
last_updated = "2026-09-01"
attachment = true
reasoning = true
temperature = false
tool_call = true
open_weights = false
knowledge = "2026-06"
[limit]
context = 1_000_000
output = 128_000
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -10,6 +10,7 @@ attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
@@ -10,6 +10,7 @@ attachment = true
reasoning = false
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
+1
View File
@@ -10,6 +10,7 @@ attachment = false
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
+1
View File
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
+1
View File
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
+1
View File
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
+1
View File
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
+1
View File
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
+1
View File
@@ -10,6 +10,7 @@ attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
[limit]
@@ -0,0 +1,28 @@
name = "Ornith 1.5 35B A3B"
description = "Mixture-of-experts coding-reasoning model for agentic software tasks, tool use, and image understanding"
family = "ornith"
release_date = "2026-08-18"
last_updated = "2026-08-23"
attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = true
license = "MIT"
[limit]
context = 262_144
[modalities]
input = ["text", "image"]
output = ["text"]
[[weights]]
label = "Hugging Face"
url = "https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B"
[[links]]
label = "Model card"
url = "https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B"
type = "model_card"
@@ -0,0 +1,20 @@
# https://novita.ai/models/model-detail/inclusionai-ling-3.0-flash-fin
# https://openrouter.ai/api/v1/models/inclusionai/ling-3.0-flash-fin:free/endpoints
# https://vercel.com/changelog/ling-3-0-flash-fin-now-available-on-ai-gateway-for-free
name = "Ling 3.0 Flash Fin"
description = "Finance-enhanced model for financial research, multi-step investment workflows, and long-horizon planning and execution"
family = "ling"
release_date = "2026-08-27"
last_updated = "2026-08-27"
attachment = false
reasoning = true
tool_call = true
open_weights = false
[limit]
context = 262_144
output = 32_768
[modalities]
input = ["text"]
output = ["text"]
+1 -1
View File
@@ -7,7 +7,7 @@ attachment = false
reasoning = true
temperature = true
tool_call = true
open_weights = false
open_weights = true
[limit]
context = 1_024_000
+1 -1
View File
@@ -8,7 +8,7 @@ reasoning = true
temperature = true
tool_call = true
structured_output = true
open_weights = false
open_weights = true
[limit]
context = 1_000_000
@@ -1,417 +1,14 @@
#!/usr/bin/env bun
//
// Regenerate the cloudflare-ai-gateway provider model TOMLs from Cloudflare's own sources,
// with human curation reduced to providers/cloudflare-ai-gateway/curation.toml.
//
// Scope: proxied third-party models only (anthropic, openai, google, xai, alibaba, deepseek,
// moonshotai, …). Cloudflare's own Workers AI (@cf/...) models are a different pathway — hosted
// on Cloudflare, CF-token auth, model agreements — and live in their own provider,
// providers/cloudflare-workers-ai, so they are deliberately not mirrored here.
//
// Source of truth (live):
// - GET /accounts/{id}/ai/catalog/models — canonical dotted model_id, name, description,
// context_length, max_output_tokens, and pricing (flat or context-tiered).
//
// curation.toml holds only what that source cannot express: structured_output (a quality
// judgement — Cloudflare advertises response_format broadly but several models do not honour
// it), reasoning_options (the catalog has no reasoning schema), limit divergences, and a skip
// list for catalog ids with no lab file (or not reachable via unified billing).
//
// Env: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID
// CF_AIG_FIXTURE_DIR (optional) — read cached catalog* JSON instead of the network.
//
// Usage:
// CLOUDFLARE_API_TOKEN=… CLOUDFLARE_ACCOUNT_ID=… bun run cloudflare-ai-gateway:generate
// bun run cloudflare-ai-gateway:generate --check # fail if the tree would change
import path from "node:path";
import { readdirSync, readFileSync, statSync, existsSync, rmSync } from "node:fs";
import { z } from "zod";
import { formatToml } from "../src/sync/index.ts";
import { syncProviderByID } from "../src/sync/index.js";
const PROVIDER_DIR = path.join(
import.meta.dirname, "..", "..", "..", "providers", "cloudflare-ai-gateway",
);
const MODELS_DIR = path.join(PROVIDER_DIR, "models");
const MODELS_ROOT = path.join(import.meta.dirname, "..", "..", "..", "models");
const CURATION_PATH = path.join(PROVIDER_DIR, "curation.toml");
const check = process.argv.includes("--check");
const result = await syncProviderByID("cloudflare-ai-gateway", { dryRun: check });
const TEXT_GENERATION = "Text Generation";
// Proxied providers that Cloudflare fronts with a *native* passthrough route rather than the
// gateway's generic OpenAI-compatible transform: Anthropic keeps the Messages API, OpenAI keeps
// the Responses API. Advertise each model's native SDK so consumers route to the endpoint that
// serves it best instead of falling back to the provider default (ai-gateway-provider). Other
// third-party providers Cloudflare only exposes over the compat route inherit that default.
// https://developers.cloudflare.com/ai-gateway/usage/providers/anthropic/
// https://developers.cloudflare.com/ai-gateway/usage/providers/openai/
const NATIVE_NPM: Record<string, string> = {
anthropic: "@ai-sdk/anthropic",
openai: "@ai-sdk/openai",
};
function nativeNpm(id: string): string | undefined {
return NATIVE_NPM[id.split("/")[0]!];
}
// ---------------------------------------------------------------------------
// curation.toml schema
// ---------------------------------------------------------------------------
const ReasoningOption = z.record(z.any());
const CuratedModel = z
.object({
base_model: z.string().min(1).optional(),
structured_output: z.boolean().optional(),
reasoning_options: z.array(ReasoningOption).optional(),
limit: z.record(z.number()).optional(),
interleaved: z
.union([z.literal(true), z.object({ field: z.enum(["reasoning_content", "reasoning_details"]) }).strict()])
.optional(),
// Leading `#` comment lines, e.g. a toggle/effort wire-path note (AGENTS.md requires one
// for every `toggle` reasoning option) or a source citation. Rendered verbatim above the
// generated fields so hand-verified host behavior survives every regeneration.
note: z.array(z.string()).optional(),
})
.strict();
const Curation = z
.object({
skip: z.array(z.string()).default([]),
models: z.record(CuratedModel).default({}),
})
.strict();
// ---------------------------------------------------------------------------
// Fetch (with fixture fallback)
// ---------------------------------------------------------------------------
async function fetchAllPages(url: string, token: string, perPage: number) {
const out: any[] = [];
for (let page = 1; page < 50; page++) {
const res = await fetch(`${url}?page=${page}&per_page=${perPage}`, {
headers: { Authorization: `Bearer ${token}` },
});
if (!res.ok) throw new Error(`Fetch failed ${res.status} ${res.statusText} for ${url}`);
const json: any = await res.json();
out.push(...(json.result ?? []));
const total = json.result_info?.total_count ?? out.length;
if (out.length >= total || (json.result ?? []).length === 0) break;
}
return out;
}
// Fetch with retry on 429/5xx. raw.githubusercontent.com rate-limits bursts, so honour
// Retry-After when present and otherwise back off exponentially. Returns the Response;
// callers decide how to treat a final !ok (throw vs. tolerate).
async function fetchWithRetry(url: string, init?: RequestInit, tries = 5): Promise<Response> {
let delay = 500;
for (let attempt = 1; ; attempt++) {
const res = await fetch(url, init);
if (res.ok || (res.status !== 429 && res.status < 500) || attempt >= tries) return res;
const retryAfter = Number(res.headers.get("retry-after"));
const wait = Number.isFinite(retryAfter) && retryAfter > 0 ? retryAfter * 1000 : delay;
await new Promise((r) => setTimeout(r, wait));
delay = Math.min(delay * 2, 8000);
}
}
// Run async tasks with bounded concurrency to avoid tripping rate limits.
async function mapLimit<T, R>(items: T[], limit: number, fn: (item: T) => Promise<R>): Promise<R[]> {
const results = new Array<R>(items.length);
let next = 0;
const workers = Array.from({ length: Math.min(limit, items.length) }, async () => {
while (true) {
const i = next++;
if (i >= items.length) break;
results[i] = await fn(items[i]!);
}
});
await Promise.all(workers);
return results;
}
// Load rows from every fixture file whose name starts with prefix, de-duplicated by their
// catalog model_id. Dedup guards against overlapping snapshot files inflating the model set.
function loadFixtureRows(dir: string, prefix: string): any[] {
const byId = new Map<string, any>();
for (const f of readdirSync(dir).filter((f) => f.startsWith(prefix) && f.endsWith(".json"))) {
for (const row of JSON.parse(readFileSync(path.join(dir, f), "utf8")).result ?? []) {
const key = row.model_id ?? row.name ?? JSON.stringify(row);
byId.set(key, row);
}
}
return [...byId.values()];
}
async function loadProxied() {
const fixtureDir = process.env.CF_AIG_FIXTURE_DIR;
if (fixtureDir) return loadFixtureRows(fixtureDir, "catalog");
const token = process.env.CLOUDFLARE_API_TOKEN;
const account = process.env.CLOUDFLARE_ACCOUNT_ID;
if (!token || !account) {
throw new Error(
"Set CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID (or CF_AIG_FIXTURE_DIR for offline runs).",
);
}
const base = `https://api.cloudflare.com/client/v4/accounts/${account}/ai`;
return fetchAllPages(`${base}/catalog/models`, token, 50);
}
// Load the per-model catalog schema for a proxied model. The list endpoint omits `schema`;
// the single-model schema endpoint returns schema.input, from which reasoning_options are
// derivable for OpenAI-compatible providers (xai, alibaba, openai). Providers whose schema
// is their native shape (google, anthropic, deepseek, moonshotai) return no reasoning
// property — those fall back to curation.toml. Returns schema.input or undefined.
async function loadCatalogSchemaInput(id: string): Promise<unknown> {
const fixtureDir = process.env.CF_AIG_FIXTURE_DIR;
if (fixtureDir) {
const p = path.join(fixtureDir, "schema", `${id.replace(/\//g, "_")}.json`);
if (!existsSync(p)) return undefined; // schema is optional per-model
return JSON.parse(readFileSync(p, "utf8")).result?.schema?.input;
}
const token = process.env.CLOUDFLARE_API_TOKEN!;
const account = process.env.CLOUDFLARE_ACCOUNT_ID!;
const res = await fetchWithRetry(
`https://api.cloudflare.com/client/v4/accounts/${account}/ai/catalog/models/${id}/schema`,
{ headers: { Authorization: `Bearer ${token}` } },
);
if (!res.ok) return undefined; // treat missing schema as "not derivable"
return ((await res.json()) as any).result?.schema?.input;
}
// Read the `reasoning` flag from a base lab file (models/<base>.toml). A base model that
// declares reasoning=true MUST carry reasoning_options in the provider file (schema validates
// this), so we hard-fail when neither the catalog schema nor curation can supply them.
function baseReasoning(base: string): boolean {
const p = path.join(MODELS_ROOT, `${base}.toml`);
if (!existsSync(p)) return false;
return (Bun.TOML.parse(readFileSync(p, "utf8")) as any).reasoning === true;
}
// ---------------------------------------------------------------------------
// Pricing → cost
// ---------------------------------------------------------------------------
const FLAT_KEYS: Record<string, string> = {
"Input tokens (per 1M)": "input",
"Output tokens (per 1M)": "output",
"Cached input tokens (per 1M)": "cache_read",
"Cache creation tokens (per 1M)": "cache_write",
};
const TIER_RE = /^(Input|Output|Cached input)\s*(<=?|>=?)\s*(\d+)k\s*\(per 1M\)$/;
const TIER_FIELD: Record<string, string> = {
Input: "input",
Output: "output",
"Cached input": "cache_read",
};
function proxiedCost(pricing: Record<string, number>, id: string, warnings: string[]) {
const base: Record<string, number> = {};
for (const [key, value] of Object.entries(pricing)) {
if (FLAT_KEYS[key]) {
base[FLAT_KEYS[key]] = value;
continue;
}
const m = key.match(TIER_RE);
if (m) {
const [, label, op] = m;
const field = TIER_FIELD[label!]!;
// Cloudflare AI Gateway entries don't carry tiered pricing (unsupported here). Fold the
// lower/default-context band (op "<") into the flat rate and drop the higher-context bands.
if (op!.startsWith("<")) base[field] = value;
continue;
}
warnings.push(`${id}: unmapped pricing key "${key}"`);
}
return { ...base };
}
// Derive reasoning_options from a docs schema.input by walking every named property.
function deriveReasoningOptions(schemaInput: unknown): Array<Record<string, unknown>> {
let hasToggle = false;
let effortValues: string[] | undefined;
const visit = (node: unknown) => {
if (Array.isArray(node)) {
node.forEach(visit);
return;
}
if (!node || typeof node !== "object") return;
for (const [key, value] of Object.entries(node as Record<string, unknown>)) {
if (key === "properties" && value && typeof value === "object") {
for (const [propName, propSchema] of Object.entries(value as Record<string, any>)) {
if (propName === "enable_thinking" || propName === "thinking") hasToggle = true;
if (propName === "effort" || propName === "reasoning_effort") {
let enumVals: string[] | undefined = propSchema?.enum;
if (!enumVals) {
for (const branch of [...(propSchema?.anyOf ?? []), ...(propSchema?.oneOf ?? [])]) {
if (Array.isArray(branch?.enum)) enumVals = branch.enum;
}
}
if (enumVals) effortValues = enumVals;
}
visit(propSchema);
}
} else {
visit(value);
}
}
};
visit(schemaInput);
const opts: Array<Record<string, unknown>> = [];
if (hasToggle) opts.push({ type: "toggle" });
if (effortValues) opts.push({ type: "effort", values: effortValues });
return opts;
}
// Prepend curated leading `#` comment lines (a toggle/effort wire-path note, a source
// citation, etc.) above the generated content. AGENTS.md requires one for every `toggle`
// reasoning option since sync strips mid-file comments on every regeneration.
function withNote(note: string[] | undefined, content: string): string {
if (!note || note.length === 0) return content;
return `${note.map((line) => `# ${line}`).join("\n")}\n\n${content}`;
}
// ---------------------------------------------------------------------------
// base_model resolution
// ---------------------------------------------------------------------------
function labFileExists(id: string): boolean {
return existsSync(path.join(MODELS_ROOT, `${id}.toml`));
}
function autoResolveBase(catalogId: string): string | null {
if (labFileExists(catalogId)) return catalogId;
const dashed = catalogId.replace(/\./g, "-");
if (labFileExists(dashed)) return dashed;
return null;
}
// ---------------------------------------------------------------------------
// Main
// ---------------------------------------------------------------------------
function walkToml(dir: string): string[] {
if (!existsSync(dir)) return [];
return readdirSync(dir).flatMap((e) => {
const p = path.join(dir, e);
return statSync(p).isDirectory() ? walkToml(p) : p.endsWith(".toml") ? [p] : [];
});
}
async function main() {
const check = process.argv.includes("--check");
const parsed = Curation.safeParse(Bun.TOML.parse(readFileSync(CURATION_PATH, "utf8")));
if (!parsed.success) {
console.error("Invalid curation.toml:", parsed.error.issues);
if (check) {
if (result.files.length > 0) {
console.error(`--check: ${result.files.length} file(s) out of date`);
process.exit(1);
}
const curation = parsed.data;
const skip = new Set(curation.skip);
const errors: string[] = [];
const warnings: string[] = [];
const proxied = await loadProxied();
const proxiedTextGen = proxied.filter((m) => m.task === TEXT_GENERATION);
const wanted = new Map<string, string>(); // absolute path -> content
// Fetch per-model schemas up front for the proxied models we'll actually emit, with bounded
// concurrency so the catalog/docs endpoints don't rate-limit us.
const proxiedEmit = proxiedTextGen.filter((m) => !skip.has(m.model_id));
const schemaInputs = new Map<string, unknown>();
await mapLimit(proxiedEmit, 6, async (m) => {
schemaInputs.set(m.model_id, await loadCatalogSchemaInput(m.model_id));
});
// --- proxied models ---
for (const m of proxiedTextGen) {
const id: string = m.model_id;
if (skip.has(id)) continue;
const cur = curation.models[id] ?? {};
const base = cur.base_model ?? autoResolveBase(id);
if (!base) {
errors.push(`proxied ${id}: no lab file and no curation base_model (add to skip or map it)`);
continue;
}
// name/description are inherited from base_model (models.dev's canonical copy);
// the catalog only carries Cloudflare's own casing/marketing variants.
const model: Record<string, unknown> = { base_model: base };
if (cur.structured_output !== undefined) model.structured_output = cur.structured_output;
if (cur.interleaved !== undefined) model.interleaved = cur.interleaved;
// reasoning_options: only meaningful when the base actually reasons. The catalog schema
// advertises reasoning_effort for some non-reasoning models (gpt-4.1, gpt-4o) — schema
// acceptance is not capability, so gate on the base's reasoning flag. When the base does
// reason, prefer the per-model catalog schema, then curation, and fail loudly if neither
// supplies a shape (the schema requires reasoning_options whenever reasoning=true).
if (baseReasoning(base)) {
const derivedRo = deriveReasoningOptions(schemaInputs.get(id));
if (cur.reasoning_options !== undefined) model.reasoning_options = cur.reasoning_options;
else if (derivedRo.length > 0) model.reasoning_options = derivedRo;
else {
errors.push(
`proxied ${id}: base ${base} has reasoning=true but no reasoning_options ` +
`(catalog schema exposes none; add reasoning_options to curation.toml)`,
);
continue;
}
}
const cost = proxiedCost(m.pricing ?? {}, id, warnings);
if (Object.keys(cost).length === 0) errors.push(`proxied ${id}: catalog pricing empty`);
model.cost = cost;
// limit.output: the catalog's max_output_tokens is not a reliable ceiling — verified wrong
// against lab/first-party for gpt-5, gpt-5.5, and claude-haiku-4.5 (all understated by
// 4-8x). Only context_length has checked out, so that's all we auto-derive; output is
// either curated explicitly or left to inherit from base_model.
const limit: Record<string, number> = {};
if (m.context_length != null) limit.context = m.context_length;
if (cur.limit) Object.assign(limit, cur.limit); // curation overrides/adds (e.g. served output)
if (Object.keys(limit).length) model.limit = limit;
const npm = nativeNpm(id);
if (npm) model.provider = { npm };
wanted.set(path.join(MODELS_DIR, `${id}.toml`), withNote(cur.note, formatToml(model as any)));
}
// Guards: a curation model id that no longer appears in the live feed (warn only).
const liveIds = new Set<string>(proxiedTextGen.map((m) => m.model_id));
for (const id of Object.keys(curation.models)) {
if (!liveIds.has(id)) warnings.push(`curation id not in live feed: ${id}`);
}
if (errors.length > 0) {
console.error("Errors:\n" + errors.map((e) => ` - ${e}`).join("\n"));
process.exit(1);
}
for (const w of warnings) console.warn(`warning: ${w}`);
const existing = new Set(walkToml(MODELS_DIR));
const wantedPaths = new Set(wanted.keys());
const toRemove = [...existing].filter((p) => !wantedPaths.has(p));
if (check) {
let changed = 0;
for (const [p, content] of wanted) {
const cur = existing.has(p) ? readFileSync(p, "utf8") : undefined;
if (cur !== content) { console.error(`would change: ${path.relative(MODELS_DIR, p)}`); changed++; }
}
for (const p of toRemove) { console.error(`would remove: ${path.relative(MODELS_DIR, p)}`); changed++; }
if (changed > 0) { console.error(`--check: ${changed} file(s) out of date`); process.exit(1); }
console.log("--check: up to date");
return;
}
let changed = 0;
for (const [p, content] of wanted) {
const cur = existing.has(p) ? readFileSync(p, "utf8") : undefined;
if (cur !== content) { await Bun.write(p, content); changed++; }
}
for (const p of toRemove) { rmSync(p); changed++; }
console.log(
`cloudflare-ai-gateway: ${wanted.size} proxied model(s) ` +
`(${changed} written/removed, ${skip.size} skipped, ${warnings.length} warning(s)).`,
);
console.log("--check: up to date");
}
await main();
+8
View File
@@ -55,6 +55,14 @@ export async function classifyAutoMerge(
if (created + deleted > MAX_MODEL_CHURN) {
reasons.push(`${created + deleted} models created or deleted (limit ${MAX_MODEL_CHURN})`);
}
if (
models.some((change) =>
change.status === "deleted"
&& change.path.startsWith("providers/cloudflare-ai-gateway/models/")
)
) {
reasons.push("Cloudflare AI Gateway model deletions require manual review");
}
const reasoningMetadata = async (path: string, loader: typeof load) => {
const model = Bun.TOML.parse(await loader(path)) as Record<string, unknown>;
+71 -15
View File
@@ -9,6 +9,7 @@ import { ambient } from "./providers/ambient.js";
import { anthropic } from "./providers/anthropic.js";
import { baseten } from "./providers/baseten.js";
import { chutes } from "./providers/chutes.js";
import { cloudflareAiGateway } from "./providers/cloudflare-ai-gateway.js";
import { cloudflareWorkersAi } from "./providers/cloudflare-workers-ai.js";
import { cortecs } from "./providers/cortecs.js";
import { crossmodel } from "./providers/crossmodel.js";
@@ -16,6 +17,7 @@ import { deepinfra } from "./providers/deepinfra.js";
import { digitalocean } from "./providers/digitalocean.js";
import { edenai } from "./providers/edenai.js";
import { empiriolabs } from "./providers/empiriolabs.js";
import { githubCopilot } from "./providers/github-copilot.js";
import { google } from "./providers/google.js";
import { hyper } from "./providers/hyper.js";
import { huggingface } from "./providers/huggingface.js";
@@ -82,6 +84,8 @@ export interface SyncProvider<SourceModel> {
preserveSymlinks?: boolean;
preserveBaseModels?: boolean;
preserveDescriptions?: boolean;
/** Replace existing leading comments with translateModel.header. */
authoritativeHeaders?: boolean;
sameModel?(current: ExistingModel, desired: SyncedModel): boolean;
missingNotice?(paths: string[]): string[];
/**
@@ -103,9 +107,9 @@ export interface SyncProvider<SourceModel> {
model: SyncedModel;
metadata?: { id: string; model: SyncedMetadata };
/**
* Leading comment block for the written file when it has none of its own
* (e.g. the wire-path header every toggle reasoning control requires). A
* header already present on the existing file always wins.
* Leading comment block for the written file (e.g. the wire-path header
* every toggle reasoning control requires). Existing headers win unless
* authoritativeHeaders is enabled.
*/
header?: string;
} | undefined;
@@ -128,6 +132,7 @@ export const providers: {
anthropic: SyncProvider<any>;
baseten: SyncProvider<any>;
chutes: SyncProvider<any>;
"cloudflare-ai-gateway": SyncProvider<any>;
"cloudflare-workers-ai": SyncProvider<any>;
cortecs: SyncProvider<any>;
crossmodel: SyncProvider<any>;
@@ -135,6 +140,7 @@ export const providers: {
digitalocean: SyncProvider<any>;
edenai: SyncProvider<any>;
empiriolabs: SyncProvider<any>;
"github-copilot": SyncProvider<any>;
google: SyncProvider<any>;
hyper: SyncProvider<any>;
huggingface: SyncProvider<any>;
@@ -160,6 +166,7 @@ export const providers: {
anthropic,
baseten,
chutes,
"cloudflare-ai-gateway": cloudflareAiGateway,
"cloudflare-workers-ai": cloudflareWorkersAi,
cortecs,
crossmodel,
@@ -167,6 +174,7 @@ export const providers: {
digitalocean,
edenai,
empiriolabs,
"github-copilot": githubCopilot,
google,
hyper,
huggingface,
@@ -206,8 +214,8 @@ export const groups = {
"openrouter",
"vercel",
],
cloudflare: ["cloudflare-workers-ai"],
direct: ["ambient", "anthropic", "baseten", "chutes", "cortecs", "deepinfra", "digitalocean", "google", "hyper", "openai", "ovhcloud", "pioneer", "tinfoil", "venice", "wandb", "xai"],
cloudflare: ["cloudflare-ai-gateway", "cloudflare-workers-ai"],
direct: ["ambient", "anthropic", "baseten", "chutes", "cortecs", "deepinfra", "digitalocean", "github-copilot", "google", "hyper", "openai", "ovhcloud", "pioneer", "tinfoil", "venice", "wandb", "xai"],
} as const;
type ProviderID = keyof typeof providers;
@@ -232,7 +240,12 @@ export async function syncProvider<SourceModel>(
const { models: existing, brokenSymlinks } = existingState;
let { modelMetadata } = existingState;
const sourceModels = provider.parseModels(await provider.fetchModels());
const desired = new Map<string, { model: z.infer<typeof SyncedAuthoredModel>; content: string }>();
const desired = new Map<string, {
model: z.infer<typeof SyncedAuthoredModel>;
content: string;
header: string;
}>();
const caseNormalizedDesiredPaths = new Map<string, string>();
const desiredMetadata = new Map<string, { model: z.infer<typeof ModelMetadata>; content: string }>();
const skippedRemote: string[] = [];
@@ -257,9 +270,15 @@ export async function syncProvider<SourceModel>(
continue;
}
if (desired.has(relativePath)) {
throw new Error(`Duplicate synced model path: ${provider.id}/${relativePath}`);
const collidingPath = caseNormalizedDesiredPaths.get(relativePath.toLowerCase());
if (collidingPath !== undefined) {
throw new Error(
collidingPath === relativePath
? `Duplicate synced model path: ${provider.id}/${relativePath}`
: `Synced model paths differ only in case: ${provider.id}/${collidingPath} and ${provider.id}/${relativePath}`,
);
}
caseNormalizedDesiredPaths.set(relativePath.toLowerCase(), relativePath);
if (translated.metadata !== undefined) {
const parsedMetadata = ModelMetadata.safeParse({
@@ -315,9 +334,16 @@ export async function syncProvider<SourceModel>(
throw parsed.error;
}
const translatedHeader = translated.header === undefined
? undefined
: leadingComments(translated.header);
const header = provider.authoritativeHeaders
? translatedHeader ?? ""
: (existing.get(relativePath)?.header || translatedHeader) ?? "";
desired.set(relativePath, {
model: parsed.data,
content: ((existing.get(relativePath)?.header || translated.header) ?? "") + formatToml(parsed.data),
content: header + formatToml(parsed.data),
header,
});
}
@@ -326,7 +352,7 @@ export async function syncProvider<SourceModel>(
const metadataDir = modelMetadataDir(provider.modelsDir);
for (const [relativePath, file] of desiredMetadata) {
const filePath = path.join(metadataDir, relativePath);
const filePath = await safeWritePath(metadataDir, relativePath);
const currentFile = Bun.file(filePath);
const currentText = await currentFile.exists() ? await currentFile.text() : undefined;
const current = currentText !== undefined
@@ -357,7 +383,7 @@ export async function syncProvider<SourceModel>(
console.log(`Skipping metadata removal in new-only mode: ${relativePath}`);
continue;
}
const filePath = path.join(metadataDir, relativePath);
const filePath = await safeWritePath(metadataDir, relativePath);
files.push({ status: "deleted", path: filePath });
if (options.dryRun) {
console.log(`Would remove metadata ${relativePath}`);
@@ -368,7 +394,7 @@ export async function syncProvider<SourceModel>(
}
for (const [relativePath, file] of desired) {
const filePath = path.join(provider.modelsDir, relativePath);
const filePath = await safeWritePath(provider.modelsDir, relativePath, true);
const current = existing.get(relativePath);
if (current === undefined) {
@@ -388,7 +414,12 @@ export async function syncProvider<SourceModel>(
continue;
}
if (!(provider.sameModel?.(current.authored, file.model) ?? sameModel(relativePath, current.authored, file.model))) {
const headerChanged = provider.authoritativeHeaders && current.header !== file.header;
if (
headerChanged
|| !(provider.sameModel?.(current.authored, file.model)
?? sameModel(relativePath, current.authored, file.model))
) {
if (options.newOnly) {
unchanged++;
continue;
@@ -421,7 +452,7 @@ export async function syncProvider<SourceModel>(
continue;
}
const filePath = path.join(provider.modelsDir, relativePath);
const filePath = await safeWritePath(provider.modelsDir, relativePath, true);
files.push({ status: "deleted", path: filePath });
if (options.dryRun) {
console.log(`Would remove ${relativePath}`);
@@ -592,6 +623,31 @@ async function isSymlink(filePath: string) {
}
}
async function safeWritePath(root: string, relativePath: string, allowLeafSymlink = false) {
const resolvedRoot = path.resolve(root);
const target = path.resolve(resolvedRoot, relativePath);
const relative = path.relative(resolvedRoot, target);
if (relative === "" || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative)) {
throw new Error(`Refusing to sync path outside ${root}: ${relativePath}`);
}
if (await isSymlink(resolvedRoot)) {
throw new Error(`Refusing to sync through symlink: ${resolvedRoot}`);
}
let current = resolvedRoot;
for (const segment of path.relative(resolvedRoot, path.dirname(target)).split(path.sep)) {
if (segment === "") continue;
current = path.join(current, segment);
if (await isSymlink(current)) {
throw new Error(`Refusing to sync through symlink: ${current}`);
}
}
if (!allowLeafSymlink && await isSymlink(target)) {
throw new Error(`Refusing to sync through symlink: ${target}`);
}
return target;
}
async function readModelMetadata(modelsDir: string) {
const metadataDir = modelMetadataDir(modelsDir);
const result: Record<string, Record<string, unknown>> = {};
@@ -819,7 +875,7 @@ async function writeReport(target: string, results: SyncResult[]) {
}
}
lines.push("", "This PR was created automatically by the daily model sync workflow.");
lines.push("", "This PR was created automatically by the model sync workflow.");
await Bun.write(".sync/model-sync-report.md", `${lines.join("\n")}\n`);
}
@@ -0,0 +1,502 @@
import { existsSync, readFileSync, readdirSync } from "node:fs";
import path from "node:path";
import { z } from "zod";
import { ReasoningOption } from "../../schema.js";
import type { ExistingModel, SyncProvider, SyncedBaseModel } from "../index.js";
const API_BASE = "https://api.cloudflare.com/client/v4/accounts";
const PROVIDER_DIR = path.join(
import.meta.dirname,
"..",
"..",
"..",
"..",
"..",
"providers",
"cloudflare-ai-gateway",
);
const MODELS_ROOT = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
const CURATION_PATH = path.join(PROVIDER_DIR, "curation.toml");
const TEXT_GENERATION = "Text Generation";
const REQUEST_TIMEOUT_MS = 30_000;
const MAX_CATALOG_PAGES = 1_000;
const MAX_BACKOFF_DELAY_MS = 8_000;
const MAX_RETRY_DELAY_MS = 60_000;
const NATIVE_NPM: Record<string, string> = {
anthropic: "@ai-sdk/anthropic",
openai: "@ai-sdk/openai",
};
const CatalogEntry = z.object({
model_id: z.string().refine(isSafeModelID, "model_id must be a safe relative provider/model path"),
task: z.string(),
context_length: z.number().int().positive().nullish(),
pricing: z.record(z.number().nonnegative()).nullish(),
}).passthrough();
const CatalogModel = CatalogEntry.extend({
task: z.literal(TEXT_GENERATION),
context_length: z.number().int().positive().nullish(),
pricing: z.record(z.number().nonnegative()),
});
const CloudflareResponse = z.object({
success: z.literal(true),
result: z.array(CatalogEntry),
result_info: z.object({
page: z.number().int().positive(),
per_page: z.number().int().positive(),
total_count: z.number().int().nonnegative(),
total_pages: z.number().int().positive().optional(),
count: z.number().int().nonnegative().optional(),
}).passthrough(),
}).passthrough();
const SourceModel = z.object({
catalog: CatalogModel,
schemaInput: z.unknown().optional(),
});
const CuratedModel = z.object({
base_model: z.string().refine(isSafeModelID, "base_model must be a safe relative provider/model path").optional(),
structured_output: z.boolean().optional(),
reasoning_options: z.array(ReasoningOption).optional(),
limit: z.object({
context: z.number().optional(),
input: z.number().optional(),
output: z.number().optional(),
}).strict().optional(),
interleaved: z.union([
z.literal(true),
z.object({ field: z.enum(["reasoning_content", "reasoning_details"]) }).strict(),
]).optional(),
note: z.array(z.string().refine((value) => !/[\r\n]/.test(value))).optional(),
}).strict();
const Curation = z.object({
skip: z.array(z.string()).default([]),
models: z.record(CuratedModel).default({}),
}).strict();
type CatalogModel = z.infer<typeof CatalogModel>;
type CatalogEntry = z.infer<typeof CatalogEntry>;
type SourceModel = z.infer<typeof SourceModel>;
type CuratedModel = z.infer<typeof CuratedModel>;
const curation = Curation.parse(Bun.TOML.parse(readFileSync(CURATION_PATH, "utf8")));
const skippedModels = new Set(curation.skip);
export const cloudflareAiGateway = {
id: "cloudflare-ai-gateway",
name: "Cloudflare AI Gateway",
modelsDir: "providers/cloudflare-ai-gateway/models",
preserveDescriptions: false,
authoritativeHeaders: true,
async fetchModels() {
const catalog = CatalogEntry.array().parse(await loadCatalog());
const catalogIDs = new Set(catalog.map((model) => model.model_id));
if (catalogIDs.size !== catalog.length) {
throw new Error("Cloudflare AI Gateway catalog returned duplicate model IDs");
}
const textModels = catalog.filter((model) => model.task === TEXT_GENERATION);
if (textModels.length === 0) {
throw new Error("Cloudflare AI Gateway catalog returned no Text Generation models");
}
const emittedModels = textModels.filter(
(model) => !model.model_id.startsWith("@cf/") && !skippedModels.has(model.model_id),
).map((model) => CatalogModel.parse(model));
if (emittedModels.length === 0) {
throw new Error("Cloudflare AI Gateway catalog returned no eligible proxied models");
}
const sources = await mapLimit(emittedModels, 6, async (model) => ({
catalog: model,
schemaInput: await loadCatalogSchemaInput(model.model_id),
}));
const liveIDs = new Set(textModels.map((model) => model.model_id));
for (const id of Object.keys(curation.models)) {
if (!liveIDs.has(id)) console.warn(`warning: curation id not in live feed: ${id}`);
}
return sources;
},
parseModels(raw) {
return SourceModel.array().parse(raw);
},
translateModel(source, context) {
const id = source.catalog.model_id;
const curated = curation.models[id] ?? {};
return {
id,
model: buildCloudflareAiGatewayModel(
source.catalog,
source.schemaInput,
curated,
context.authored(id),
),
header: noteHeader(curated.note),
};
},
} satisfies SyncProvider<SourceModel>;
export function buildCloudflareAiGatewayModel(
catalog: CatalogModel,
schemaInput: unknown,
curated: CuratedModel = {},
existing?: ExistingModel,
): SyncedBaseModel {
const id = catalog.model_id;
const baseModel = curated.base_model ?? resolveBaseModel(id);
if (baseModel === undefined) {
throw new Error(`${id}: no lab file and no curated base_model; add it to skip or map it`);
}
const model: SyncedBaseModel = { base_model: baseModel };
if (curated.structured_output !== undefined) {
model.structured_output = curated.structured_output;
}
if (curated.interleaved !== undefined) model.interleaved = curated.interleaved;
if (baseReasoning(baseModel)) {
const derived = deriveReasoningOptions(schemaInput);
const reasoningOptions = curated.reasoning_options ?? (derived.length > 0 ? derived : undefined);
if (reasoningOptions === undefined) {
throw new Error(
`${id}: base ${baseModel} reasons but the catalog schema and curation provide no reasoning_options`,
);
}
model.reasoning_options = reasoningOptions;
}
model.cost = proxiedCost(catalog.pricing, id);
const limit = {
...(catalog.context_length == null && existing?.limit?.context === undefined
? {}
: { context: catalog.context_length ?? existing?.limit?.context }),
...curated.limit,
};
if (Object.keys(limit).length > 0) model.limit = limit;
const npm = NATIVE_NPM[id.split("/")[0]!];
if (npm !== undefined) model.provider = { npm };
return model;
}
export function deriveReasoningOptions(
schemaInput: unknown,
): NonNullable<SyncedBaseModel["reasoning_options"]> {
let hasToggle = false;
let effortValues: Array<"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "default">
| undefined;
const EffortValues = z.array(z.enum([
"none",
"minimal",
"low",
"medium",
"high",
"xhigh",
"max",
"default",
]));
const visit = (node: unknown) => {
if (Array.isArray(node)) {
node.forEach(visit);
return;
}
if (node === null || typeof node !== "object") return;
for (const [key, value] of Object.entries(node)) {
if (key !== "properties" || value === null || typeof value !== "object") {
visit(value);
continue;
}
for (const [property, rawSchema] of Object.entries(value)) {
const propertySchema = rawSchema as Record<string, unknown>;
if (property === "enable_thinking" || property === "thinking") hasToggle = true;
if (property === "effort" || property === "reasoning_effort") {
const candidates = [propertySchema, ...arrayValue(propertySchema.anyOf), ...arrayValue(propertySchema.oneOf)];
for (const candidate of candidates) {
const parsed = EffortValues.safeParse(candidate.enum);
if (parsed.success) effortValues = parsed.data;
}
}
visit(rawSchema);
}
}
};
visit(schemaInput);
const options: NonNullable<SyncedBaseModel["reasoning_options"]> = [];
if (hasToggle) options.push({ type: "toggle" });
if (effortValues !== undefined) options.push({ type: "effort", values: effortValues });
return options;
}
function arrayValue(value: unknown): Array<Record<string, unknown>> {
return Array.isArray(value)
? value.filter((item): item is Record<string, unknown> => item !== null && typeof item === "object")
: [];
}
async function loadCatalog() {
const fixtureDir = process.env.CF_AIG_FIXTURE_DIR;
if (fixtureDir !== undefined) return loadFixtureRows(fixtureDir, "catalog");
const { accountID, token } = credentials();
const pages: Array<z.infer<typeof CloudflareResponse>> = [];
for (let page = 1; page <= MAX_CATALOG_PAGES; page++) {
const url = new URL(`${API_BASE}/${accountID}/ai/catalog/models`);
url.searchParams.set("page", String(page));
url.searchParams.set("per_page", "50");
const { response, json } = await fetchJsonWithRetry(url, { headers: { Authorization: `Bearer ${token}` } });
if (!response.ok) {
throw new Error(`Cloudflare AI Gateway catalog request failed: ${response.status} ${response.statusText}`);
}
const body = CloudflareResponse.parse(json);
pages.push(body);
const expectedPages = catalogPageCount(pages[0]!);
if (expectedPages > MAX_CATALOG_PAGES) throw new Error(`Invalid Cloudflare AI Gateway catalog page count: ${expectedPages}`);
if (page === expectedPages) return validateCatalogPages(pages, "Cloudflare AI Gateway catalog");
}
throw new Error("Cloudflare AI Gateway catalog exceeded the pagination safety limit");
}
async function loadCatalogSchemaInput(id: string): Promise<unknown> {
const fixtureDir = process.env.CF_AIG_FIXTURE_DIR;
if (fixtureDir !== undefined) {
const file = path.join(fixtureDir, "schema", `${id.replaceAll("/", "_")}.json`);
if (!existsSync(file)) return undefined;
return z.object({
success: z.literal(true),
result: z.object({ schema: z.object({ input: z.unknown().optional() }).passthrough() }).passthrough(),
}).passthrough().parse(JSON.parse(readFileSync(file, "utf8"))).result.schema.input;
}
const { accountID, token } = credentials();
const { response, json } = await fetchJsonWithRetry(
`${API_BASE}/${accountID}/ai/catalog/models/${id.split("/").map(encodeURIComponent).join("/")}/schema`,
{ headers: { Authorization: `Bearer ${token}` } },
);
if (response.status === 404) return undefined;
if (!response.ok) {
throw new Error(`Cloudflare AI Gateway schema request failed for ${id}: ${response.status} ${response.statusText}`);
}
return z.object({
success: z.literal(true),
result: z.object({ schema: z.object({ input: z.unknown().optional() }).passthrough() }).passthrough(),
}).passthrough().parse(json).result.schema.input;
}
function credentials() {
const token = process.env.CLOUDFLARE_API_TOKEN
?? process.env.CLOUDFLARE_PRODUCTION_API_TOKEN;
const accountID = process.env.CLOUDFLARE_ACCOUNT_ID
?? process.env.CLOUDFLARE_PRODUCTION_ACCOUNT_ID_AI_GATEWAY_SANDBOX;
if (!token || !accountID) {
throw new Error(
"Cloudflare AI Gateway sync requires Cloudflare API token and account ID credentials",
);
}
return { accountID, token };
}
function loadFixtureRows(directory: string, prefix: string): unknown[] {
const pages = readdirSync(directory)
.filter((name) => name.startsWith(prefix) && name.endsWith(".json"))
.sort()
.map((file) => CloudflareResponse.parse(JSON.parse(readFileSync(path.join(directory, file), "utf8"))))
.sort((a, b) => a.result_info.page - b.result_info.page);
return validateCatalogPages(pages, `Cloudflare AI Gateway fixtures in ${directory}`);
}
function catalogPageCount(page: z.infer<typeof CloudflareResponse>) {
const calculated = Math.max(1, Math.ceil(page.result_info.total_count / page.result_info.per_page));
if (page.result_info.total_pages !== undefined && page.result_info.total_pages !== calculated) {
throw new Error("Invalid Cloudflare AI Gateway catalog pagination: total_pages does not match total_count");
}
return page.result_info.total_pages ?? calculated;
}
function validateCatalogPages(pages: Array<z.infer<typeof CloudflareResponse>>, source: string) {
const first = pages[0];
if (first === undefined) throw new Error(`${source} contained no pages`);
const expectedPages = catalogPageCount(first);
if (pages.length !== expectedPages) {
throw new Error(`${source} contains ${pages.length}/${expectedPages} pages`);
}
const models: CatalogEntry[] = [];
const ids = new Set<string>();
for (const [index, page] of pages.entries()) {
if (page.result_info.page !== index + 1) {
throw new Error(`${source} expected page ${index + 1}, got ${page.result_info.page}`);
}
if (
page.result_info.total_count !== first.result_info.total_count
|| page.result_info.per_page !== first.result_info.per_page
|| catalogPageCount(page) !== expectedPages
) {
throw new Error(`${source} pagination changed while reading pages`);
}
if (page.result_info.count !== undefined && page.result_info.count !== page.result.length) {
throw new Error(`${source} result count mismatch on page ${page.result_info.page}`);
}
if (page.result.length > page.result_info.per_page) {
throw new Error(`${source} page ${page.result_info.page} exceeds per_page`);
}
for (const model of page.result) {
if (ids.has(model.model_id)) throw new Error(`${source} returned duplicate model ID ${model.model_id}`);
ids.add(model.model_id);
models.push(model);
}
}
if (models.length !== first.result_info.total_count) {
throw new Error(`${source} pagination ended at ${models.length}/${first.result_info.total_count}`);
}
return models;
}
async function fetchJsonWithRetry(
url: string | URL,
init: RequestInit,
attempts = 5,
): Promise<{ response: Response; json?: unknown }> {
let delay = 500;
for (let attempt = 1; attempt <= attempts; attempt++) {
try {
const timeout = AbortSignal.timeout(REQUEST_TIMEOUT_MS);
const response = await fetch(url, {
...init,
signal: init.signal ? AbortSignal.any([init.signal, timeout]) : timeout,
});
if (!response.ok) {
if ((response.status === 429 || response.status >= 500) && attempt < attempts) {
await response.body?.cancel();
await waitForRetry(retryDelay(response, delay), init.signal);
delay = Math.min(delay * 2, MAX_BACKOFF_DELAY_MS);
continue;
}
await response.body?.cancel();
return { response };
}
try {
return { response, json: await response.json() };
} catch (error) {
if (attempt === attempts) throw error;
}
} catch (error) {
if (init.signal?.aborted || attempt === attempts) throw error;
}
await waitForRetry(delay, init.signal);
delay = Math.min(delay * 2, MAX_BACKOFF_DELAY_MS);
}
throw new Error("Cloudflare AI Gateway request exhausted retries");
}
function retryDelay(response: Response, fallback: number) {
const value = response.headers.get("retry-after");
if (value === null) return fallback;
const seconds = Number(value);
if (Number.isFinite(seconds) && seconds >= 0) return Math.min(seconds * 1_000, MAX_RETRY_DELAY_MS);
const timestamp = Date.parse(value);
return Number.isFinite(timestamp)
? Math.min(Math.max(timestamp - Date.now(), 0), MAX_RETRY_DELAY_MS)
: fallback;
}
function waitForRetry(delay: number, signal: AbortSignal | null | undefined) {
return new Promise<void>((resolve, reject) => {
if (signal?.aborted) return reject(signal.reason);
const onAbort = () => {
clearTimeout(timer);
reject(signal.reason);
};
const timer = setTimeout(() => {
signal?.removeEventListener("abort", onAbort);
resolve();
}, delay);
signal?.addEventListener("abort", onAbort, { once: true });
});
}
async function mapLimit<T, R>(items: T[], limit: number, transform: (item: T) => Promise<R>) {
const results = new Array<R>(items.length);
let next = 0;
await Promise.all(Array.from({ length: Math.min(limit, items.length) }, async () => {
while (next < items.length) {
const index = next++;
results[index] = await transform(items[index]!);
}
}));
return results;
}
const FLAT_PRICING_KEYS: Record<string, "input" | "output" | "cache_read" | "cache_write"> = {
"Input tokens (per 1M)": "input",
"Output tokens (per 1M)": "output",
"Cached input tokens (per 1M)": "cache_read",
"Cache creation tokens (per 1M)": "cache_write",
};
const TIERED_PRICING_KEY = /^(Input|Output|Cached input)\s*(<=?|>=?)\s*(\d+)k\s*\(per 1M\)$/;
const TIERED_PRICING_FIELDS = {
Input: "input",
Output: "output",
"Cached input": "cache_read",
} as const;
function proxiedCost(pricing: Record<string, number>, id: string): NonNullable<SyncedBaseModel["cost"]> {
const cost: NonNullable<SyncedBaseModel["cost"]> = {};
for (const [key, value] of Object.entries(pricing)) {
const flatField = FLAT_PRICING_KEYS[key];
if (flatField !== undefined) {
cost[flatField] = value;
continue;
}
const tier = TIERED_PRICING_KEY.exec(key);
if (tier !== null) {
const field = TIERED_PRICING_FIELDS[tier[1] as keyof typeof TIERED_PRICING_FIELDS];
if (tier[2]!.startsWith("<")) cost[field] = value;
continue;
}
throw new Error(`${id}: unmapped pricing key "${key}"`);
}
if (cost.input === undefined || cost.output === undefined) {
throw new Error(`${id}: catalog pricing must include input and output rates`);
}
return cost;
}
function isSafeModelID(id: string) {
if (path.isAbsolute(id) || id.includes("\\")) return false;
const segments = id.split("/");
return segments.length >= 2
&& segments.every((segment) => /^[A-Za-z0-9@._-]+$/.test(segment) && segment !== "." && segment !== "..");
}
function resolveBaseModel(id: string) {
if (labFileExists(id)) return id;
const dashed = id.replaceAll(".", "-");
return labFileExists(dashed) ? dashed : undefined;
}
function labFileExists(id: string) {
return existsSync(path.join(MODELS_ROOT, `${id}.toml`));
}
function baseReasoning(id: string) {
const file = path.join(MODELS_ROOT, `${id}.toml`);
return existsSync(file) && z.object({ reasoning: z.boolean().optional() }).passthrough()
.parse(Bun.TOML.parse(readFileSync(file, "utf8"))).reasoning === true;
}
function noteHeader(note: string[] | undefined) {
return note === undefined || note.length === 0
? undefined
: `${note.map((line) => `# ${line}`).join("\n")}\n`;
}
@@ -575,13 +575,13 @@ export function resolveDigitalOceanBaseModel(id: string) {
if (id.startsWith("gemma")) candidates.push(`google/${id}`);
// anthropic-claude-5-sonnet → anthropic/claude-sonnet-5
const anthropicSwapped = id.match(/^anthropic-claude-(\d+(?:\.\d+)?)-(opus|sonnet|haiku)$/);
const anthropicSwapped = id.match(/^anthropic-claude-(\d+(?:\.\d+)?)-([a-z]+)$/);
if (anthropicSwapped !== null) {
candidates.push(`anthropic/claude-${anthropicSwapped[2]}-${anthropicSwapped[1]}`);
}
// anthropic-claude-opus-5 → anthropic/claude-opus-5
// also normalize dotted versions: anthropic-claude-opus-4.6 → anthropic/claude-opus-4-6
const anthropicFamily = id.match(/^anthropic-claude-(opus|sonnet|haiku)-(\d+(?:\.\d+)?)$/);
const anthropicFamily = id.match(/^anthropic-claude-([a-z]+)-(\d+(?:\.\d+)?)$/);
if (anthropicFamily !== null) {
const version = anthropicFamily[2].replaceAll(".", "-");
candidates.push(`anthropic/claude-${anthropicFamily[1]}-${anthropicFamily[2]}`);
@@ -0,0 +1,163 @@
import { z } from "zod";
import type { ExistingModel, SyncProvider, SyncedModel } from "../index.js";
const PRICING_ENDPOINT = "https://raw.githubusercontent.com/github/docs/main/data/tables/copilot/models-and-pricing.yml";
const NOT_APPLICABLE = "Not applicable";
const Price = z.string().regex(/^\$\d+(?:\.\d+)?$/u);
export const GitHubCopilotPricingRow = z.object({
model: z.string().min(1),
provider: z.string().min(1),
release_status: z.string().min(1),
category: z.string().min(1),
threshold: z.string().optional(),
tier: z.string().optional(),
input: Price,
cached_input: Price,
output: Price,
cache_write: z.union([Price, z.literal(NOT_APPLICABLE)]).optional(),
notes: z.string().optional(),
}).passthrough();
export type GitHubCopilotPricingRow = z.infer<typeof GitHubCopilotPricingRow>;
export interface GitHubCopilotPricingModel {
slug: string;
releaseStatus: string;
rows: GitHubCopilotPricingRow[];
}
// Map names in pricing YAML to actual filenames in repo
const FILE_ALIASES: Record<string, string> = {
"mai-code-1-flash": "mai-code-1-flash-picker",
};
const IGNORED_ROWS = new Set([
// Goes in [experimental.modes.fast] under claude-opus-4.8
"claude-opus-4.8-fast-mode-preview",
// No matching model in repo
"raptor-mini",
]);
export function githubCopilotModelSlug(name: string) {
return name
.replace(/\[\^[^\]]*\]/gu, "")
.toLowerCase()
.replace(/[^a-z0-9.]+/gu, "-")
.replace(/^-+|-+$/gu, "");
}
function price(value: string) {
return value === NOT_APPLICABLE ? undefined : Number(value.slice(1));
}
function rowCost(row: GitHubCopilotPricingRow) {
return {
input: price(row.input),
output: price(row.output),
cache_read: price(row.cached_input),
cache_write: row.cache_write === undefined ? undefined : price(row.cache_write),
};
}
function longContextThresholdSize(threshold: string | undefined, slug: string) {
const match = threshold?.match(/^>\s*(\d+(?:\.\d+)?)\s*([KM])$/u);
if (!match) throw new Error(`Unparseable long-context threshold for ${slug}: ${threshold}`);
return Number(match[1]) * (match[2] === "K" ? 1_000 : 1_000_000);
}
export function buildGitHubCopilotCost(model: GitHubCopilotPricingModel) {
const defaults: GitHubCopilotPricingRow[] = [];
const longContext: GitHubCopilotPricingRow[] = [];
for (const row of model.rows) {
const tier = row.tier ?? "Default";
if (tier === "Default") defaults.push(row);
else if (tier === "Long context") longContext.push(row);
else throw new Error(`Unknown pricing tier for ${model.slug}: ${row.tier}`);
}
const base = defaults[0];
if (base === undefined || defaults.length > 1) {
throw new Error(`Expected exactly one default pricing row for ${model.slug}, found ${defaults.length}`);
}
const tiers = longContext
.map((row) => ({
tier: { type: "context" as const, size: longContextThresholdSize(row.threshold, model.slug) },
...rowCost(row),
}))
.sort((a, b) => a.tier.size - b.tier.size);
return { ...rowCost(base), tiers: tiers.length > 0 ? tiers : undefined };
}
export function parseGitHubCopilotPricing(raw: unknown) {
const rows = z.array(GitHubCopilotPricingRow).parse(raw);
const models = new Map<string, GitHubCopilotPricingModel>();
for (const row of rows) {
const slug = githubCopilotModelSlug(row.model);
const model = models.get(slug) ?? { slug, releaseStatus: row.release_status, rows: [] };
model.rows.push(row);
models.set(slug, model);
}
return [...models.values()];
}
export function buildGitHubCopilotModel(
model: GitHubCopilotPricingModel,
authored: ExistingModel,
): SyncedModel {
// Only update token rates, leaving audio/reasoning rates and all other
// fields untouched.
const cost = { ...authored.cost, ...buildGitHubCopilotCost(model) };
return { ...authored, cost } as SyncedModel;
}
export const githubCopilot = {
id: "github-copilot",
name: "GitHub Copilot",
modelsDir: "providers/github-copilot/models",
skipCreates: true,
deleteMissing: false,
sourceID(model) {
return IGNORED_ROWS.has(model.slug) ? undefined : model.slug;
},
skippedNotice(ids) {
if (ids.length === 0) return [];
return [
`${ids.length} Copilot pricing table models have no local catalog file: ${ids.map((id) => `\`${id}\``).join(", ")}`,
];
},
missingNotice(paths) {
if (paths.length === 0) return [];
return [
`${paths.length} local Copilot models are missing from the docs pricing table and were retained: ${paths.map((path) => `\`${path}\``).join(", ")}`,
];
},
async fetchModels() {
const response = await fetch(PRICING_ENDPOINT);
if (!response.ok) {
throw new Error(`Copilot pricing request failed: ${response.status} ${response.statusText}`);
}
return Bun.YAML.parse(await response.text());
},
parseModels: parseGitHubCopilotPricing,
translateModel(model, context) {
if (IGNORED_ROWS.has(model.slug)) return undefined;
const candidates = [
model.slug,
FILE_ALIASES[model.slug],
model.releaseStatus === "Public preview" ? `${model.slug}-preview` : undefined,
].filter((candidate) => candidate !== undefined);
const id = candidates.find((candidate) => context.authored(candidate) !== undefined);
const authored = id === undefined ? undefined : context.authored(id);
if (id === undefined || authored === undefined) return undefined;
return {
id,
model: buildGitHubCopilotModel(model, authored),
header: "# Pricing: https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing\n",
};
},
} satisfies SyncProvider<GitHubCopilotPricingModel>;
@@ -569,7 +569,7 @@ function canonicalCandidates(provider: string, modelID: string) {
if (provider === "anthropic") {
for (const candidate of [...candidates]) {
candidates.push(candidate.replace(/(claude-(?:opus|sonnet|haiku)-\d+)\.(\d+)/, "$1-$2"));
candidates.push(candidate.replace(/(claude-[a-z]+-\d+)\.(\d+)/, "$1-$2"));
candidates.push(candidate.replace(/^claude-3\.5-/, "claude-3-5-"));
}
}
+12
View File
@@ -31,6 +31,18 @@ test("requires manual review for bulk additions", async () => {
expect(decision.reasons).toContain("11 models created (limit 10)");
});
test("requires manual review for Cloudflare AI Gateway deletions", async () => {
const decision = await classifyAutoMerge([
{
status: "deleted",
path: "providers/cloudflare-ai-gateway/models/openai/gpt-4.1.toml",
},
]);
expect(decision.safe).toBe(false);
expect(decision.reasons).toContain("Cloudflare AI Gateway model deletions require manual review");
});
test("requires manual review for added reasoning provider models", async () => {
const withoutOptions = await classifyAutoMerge(
[{ status: "created", path: "providers/test/models/reasoner.toml" }],
@@ -0,0 +1,433 @@
import { expect, test } from "bun:test";
import { mkdir, mkdtemp, readFile, rm, symlink, writeFile } from "node:fs/promises";
import path from "node:path";
import { syncProvider } from "../src/sync/index.js";
import {
buildCloudflareAiGatewayModel,
cloudflareAiGateway,
deriveReasoningOptions,
} from "../src/sync/providers/cloudflare-ai-gateway.js";
test("builds Cloudflare AI Gateway overrides from catalog metadata", () => {
const model = buildCloudflareAiGatewayModel(
{
model_id: "openai/gpt-5.4",
task: "Text Generation",
context_length: 1_050_000,
pricing: {
"Input <= 200k (per 1M)": 2.5,
"Input > 200k (per 1M)": 5,
"Output tokens (per 1M)": 15,
"Cached input tokens (per 1M)": 0.25,
},
},
undefined,
{
reasoning_options: [{ type: "effort", values: ["none", "low", "medium", "high", "xhigh"] }],
},
);
expect(model).toEqual({
base_model: "openai/gpt-5.4",
reasoning_options: [{ type: "effort", values: ["none", "low", "medium", "high", "xhigh"] }],
cost: { input: 2.5, output: 15, cache_read: 0.25 },
limit: { context: 1_050_000 },
provider: { npm: "@ai-sdk/openai" },
});
});
test("derives nested Cloudflare reasoning controls", () => {
expect(deriveReasoningOptions({
properties: {
thinking: { type: "boolean" },
reasoning: {
properties: {
effort: {
anyOf: [{ enum: ["low", "medium", "high"] }],
},
},
},
},
})).toEqual([
{ type: "toggle" },
{ type: "effort", values: ["low", "medium", "high"] },
]);
});
test("ignores advertised reasoning controls for non-reasoning base models", () => {
const model = buildCloudflareAiGatewayModel(
{
model_id: "openai/gpt-4.1",
task: "Text Generation",
context_length: 1_047_576,
pricing: {
"Input tokens (per 1M)": 2,
"Output tokens (per 1M)": 8,
},
},
{
properties: {
reasoning_effort: { enum: ["low", "medium", "high"] },
},
},
);
expect(model.reasoning_options).toBeUndefined();
});
test("fails closed on unknown pricing fields", () => {
expect(() => buildCloudflareAiGatewayModel({
model_id: "openai/gpt-4.1",
task: "Text Generation",
context_length: 1_047_576,
pricing: {
"Input tokens (per 1M)": 2,
"Output tokens (per 1M)": 8,
"New billing unit": 1,
},
}, undefined)).toThrow('unmapped pricing key "New billing unit"');
});
test("fails closed when Cloudflare pagination is incomplete", async () => {
const originalFetch = globalThis.fetch;
const originalToken = process.env.CLOUDFLARE_API_TOKEN;
const originalAccount = process.env.CLOUDFLARE_ACCOUNT_ID;
process.env.CLOUDFLARE_API_TOKEN = "test";
process.env.CLOUDFLARE_ACCOUNT_ID = "test";
let page = 0;
globalThis.fetch = async () => new Response(JSON.stringify(catalogPage(
page++ === 0
? [{
model_id: "openai/gpt-4.1",
task: "Text Generation",
context_length: 1_047_576,
pricing: {
"Input tokens (per 1M)": 2,
"Output tokens (per 1M)": 8,
},
}]
: [],
{ page, total_count: 2 },
)));
try {
await expect(cloudflareAiGateway.fetchModels()).rejects.toThrow("pagination ended at 1/2");
} finally {
globalThis.fetch = originalFetch;
restoreEnv("CLOUDFLARE_API_TOKEN", originalToken);
restoreEnv("CLOUDFLARE_ACCOUNT_ID", originalAccount);
}
});
test("rejects unsafe catalog model paths", async () => {
const originalFetch = globalThis.fetch;
const originalToken = process.env.CLOUDFLARE_API_TOKEN;
const originalAccount = process.env.CLOUDFLARE_ACCOUNT_ID;
process.env.CLOUDFLARE_API_TOKEN = "test";
process.env.CLOUDFLARE_ACCOUNT_ID = "test";
globalThis.fetch = async () => new Response(JSON.stringify(catalogPage([{
model_id: "../providers/openai/models/gpt-4.1",
task: "Text Generation",
context_length: 1_047_576,
pricing: {
"Input tokens (per 1M)": 2,
"Output tokens (per 1M)": 8,
},
}])));
try {
await expect(cloudflareAiGateway.fetchModels()).rejects.toThrow("safe relative provider/model path");
} finally {
globalThis.fetch = originalFetch;
restoreEnv("CLOUDFLARE_API_TOKEN", originalToken);
restoreEnv("CLOUDFLARE_ACCOUNT_ID", originalAccount);
}
});
test("rejects a catalog with no eligible proxied models", async () => {
const originalFetch = globalThis.fetch;
const originalToken = process.env.CLOUDFLARE_API_TOKEN;
const originalAccount = process.env.CLOUDFLARE_ACCOUNT_ID;
process.env.CLOUDFLARE_API_TOKEN = "test";
process.env.CLOUDFLARE_ACCOUNT_ID = "test";
globalThis.fetch = async () => new Response(JSON.stringify(catalogPage([{
model_id: "@cf/meta/llama-3.1-8b-instruct",
task: "Text Generation",
}])));
try {
await expect(cloudflareAiGateway.fetchModels()).rejects.toThrow("no eligible proxied models");
} finally {
globalThis.fetch = originalFetch;
restoreEnv("CLOUDFLARE_API_TOKEN", originalToken);
restoreEnv("CLOUDFLARE_ACCOUNT_ID", originalAccount);
}
});
test("validates Cloudflare page metadata", async () => {
const originalFetch = globalThis.fetch;
const originalToken = process.env.CLOUDFLARE_API_TOKEN;
const originalAccount = process.env.CLOUDFLARE_ACCOUNT_ID;
process.env.CLOUDFLARE_API_TOKEN = "test";
process.env.CLOUDFLARE_ACCOUNT_ID = "test";
globalThis.fetch = async () => new Response(JSON.stringify(catalogPage([], { page: 2, total_count: 0 })));
try {
await expect(cloudflareAiGateway.fetchModels()).rejects.toThrow("expected page 1, got 2");
} finally {
globalThis.fetch = originalFetch;
restoreEnv("CLOUDFLARE_API_TOKEN", originalToken);
restoreEnv("CLOUDFLARE_ACCOUNT_ID", originalAccount);
}
});
test("retries transient Cloudflare responses", async () => {
const originalFetch = globalThis.fetch;
const originalToken = process.env.CLOUDFLARE_API_TOKEN;
const originalAccount = process.env.CLOUDFLARE_ACCOUNT_ID;
process.env.CLOUDFLARE_API_TOKEN = "test";
process.env.CLOUDFLARE_ACCOUNT_ID = "test";
let catalogRequests = 0;
globalThis.fetch = async (input) => {
if (String(input).endsWith("/schema")) return new Response(null, { status: 404 });
catalogRequests++;
if (catalogRequests === 1) return new Response(null, { status: 503, headers: { "retry-after": "0" } });
return new Response(JSON.stringify(catalogPage([{
model_id: "openai/gpt-4.1",
task: "Text Generation",
context_length: 1_047_576,
pricing: {
"Input tokens (per 1M)": 2,
"Output tokens (per 1M)": 8,
},
}])));
};
try {
expect(await cloudflareAiGateway.fetchModels()).toHaveLength(1);
expect(catalogRequests).toBe(2);
} finally {
globalThis.fetch = originalFetch;
restoreEnv("CLOUDFLARE_API_TOKEN", originalToken);
restoreEnv("CLOUDFLARE_ACCOUNT_ID", originalAccount);
}
});
test("replaces a stale generated base-model mapping", async () => {
const providersDir = path.join(import.meta.dirname, "..", "..", "..", "providers");
const providerDir = await mkdtemp(path.join(providersDir, ".base-model-sync-"));
const modelsDir = path.join(providerDir, "models");
await mkdir(modelsDir);
const file = path.join(modelsDir, "model.toml");
await writeFile(file, 'base_model = "anthropic/claude-opus-4-6"\n');
try {
const provider = {
id: "base-model-test",
name: "Base-model test",
modelsDir,
async fetchModels() {
return [{ id: "model" }];
},
parseModels(raw: unknown) {
return raw as Array<{ id: string }>;
},
translateModel(model: { id: string }) {
return { id: model.id, model: { base_model: "openai/gpt-4.1" } };
},
};
await syncProvider(provider);
expect(await readFile(file, "utf8")).toContain('base_model = "openai/gpt-4.1"');
} finally {
await rm(providerDir, { recursive: true, force: true });
}
});
test("reconciles authoritative generated headers", async () => {
const providersDir = path.join(import.meta.dirname, "..", "..", "..", "providers");
const providerDir = await mkdtemp(path.join(providersDir, ".cloudflare-ai-gateway-sync-"));
const modelsDir = path.join(providerDir, "models");
await mkdir(modelsDir);
const file = path.join(modelsDir, "gpt-4.1.toml");
await writeFile(file, "# Old note\n\nbase_model = \"openai/gpt-4.1\"\n");
try {
const provider = {
id: "cloudflare-ai-gateway-test",
name: "Cloudflare AI Gateway test",
modelsDir,
authoritativeHeaders: true,
async fetchModels() {
return [{ id: "gpt-4.1" }];
},
parseModels() {
return [{ id: "gpt-4.1" }];
},
translateModel(model) {
return {
id: model.id,
model: { base_model: "openai/gpt-4.1" },
header: "# New note\n\n",
};
},
};
const result = await syncProvider(provider);
expect(result.updated).toBe(1);
expect(await readFile(file, "utf8")).toStartWith("# New note\nbase_model");
expect((await syncProvider(provider)).updated).toBe(0);
} finally {
await rm(providerDir, { recursive: true, force: true });
}
});
test("refuses to write through a symlinked model directory", async () => {
const providersDir = path.join(import.meta.dirname, "..", "..", "..", "providers");
const providerDir = await mkdtemp(path.join(providersDir, ".sync-symlink-"));
const outsideDir = await mkdtemp(path.join(providersDir, ".sync-outside-"));
const modelsDir = path.join(providerDir, "models");
await mkdir(modelsDir);
await symlink(outsideDir, path.join(modelsDir, "linked"));
try {
const provider = {
id: "symlink-test",
name: "Symlink test",
modelsDir,
async fetchModels() {
return [{ id: "linked/model" }];
},
parseModels(raw: unknown) {
return raw as Array<{ id: string }>;
},
translateModel(model: { id: string }) {
return { id: model.id, model: { base_model: "openai/gpt-4.1" } };
},
};
await expect(syncProvider(provider)).rejects.toThrow("Refusing to sync through symlink");
expect(await Bun.file(path.join(outsideDir, "model.toml")).exists()).toBe(false);
} finally {
await rm(providerDir, { recursive: true, force: true });
await rm(outsideDir, { recursive: true, force: true });
}
});
test("refuses a symlinked models root", async () => {
const providersDir = path.join(import.meta.dirname, "..", "..", "..", "providers");
const providerDir = await mkdtemp(path.join(providersDir, ".sync-root-"));
const outsideDir = await mkdtemp(path.join(providersDir, ".sync-root-outside-"));
const modelsDir = path.join(providerDir, "models");
await symlink(outsideDir, modelsDir);
try {
const provider = testSyncProvider(modelsDir, "model");
await expect(syncProvider(provider)).rejects.toThrow("Refusing to sync through symlink");
expect(await Bun.file(path.join(outsideDir, "model.toml")).exists()).toBe(false);
} finally {
await rm(providerDir, { recursive: true, force: true });
await rm(outsideDir, { recursive: true, force: true });
}
});
test("refuses a symlinked metadata file", async () => {
const providersDir = path.join(import.meta.dirname, "..", "..", "..", "providers");
const providerDir = await mkdtemp(path.join(providersDir, ".sync-metadata-"));
const outsideDir = await mkdtemp(path.join(providersDir, ".sync-metadata-outside-"));
const modelsDir = path.join(providerDir, "models");
const namespace = `sync-symlink-${path.basename(providerDir).replaceAll(/[^a-z0-9-]/g, "")}`;
const metadataDir = path.join(providersDir, "..", "models", namespace);
const outsideFile = path.join(outsideDir, "model.toml");
await mkdir(modelsDir);
await mkdir(metadataDir);
await writeFile(outsideFile, "sentinel\n");
await symlink(outsideFile, path.join(metadataDir, "model.toml"));
try {
const provider = {
...testSyncProvider(modelsDir, "provider-model"),
metadataNamespace: namespace,
translateModel(model: { id: string }) {
return {
id: model.id,
model: {
name: "Provider symlink test",
description: "Provider model used to test safe sync paths",
release_date: "2026-01-01",
last_updated: "2026-01-01",
attachment: false,
reasoning: false,
tool_call: false,
open_weights: false,
modalities: { input: ["text"], output: ["text"] },
limit: { context: 1_000, output: 100 },
cost: { input: 1, output: 2 },
},
metadata: {
id: `${namespace}/model`,
model: {
name: "Symlink test",
description: "Metadata used to test safe sync paths",
release_date: "2026-01-01",
last_updated: "2026-01-01",
attachment: false,
reasoning: false,
tool_call: false,
open_weights: false,
modalities: { input: ["text"], output: ["text"] },
limit: { context: 1_000, output: 100 },
},
},
};
},
};
await expect(syncProvider(provider)).rejects.toThrow("Refusing to sync through symlink");
expect(await readFile(outsideFile, "utf8")).toBe("sentinel\n");
} finally {
await rm(providerDir, { recursive: true, force: true });
await rm(outsideDir, { recursive: true, force: true });
await rm(metadataDir, { recursive: true, force: true });
}
});
function testSyncProvider(modelsDir: string, id: string) {
return {
id: "symlink-test",
name: "Symlink test",
modelsDir,
async fetchModels() {
return [{ id }];
},
parseModels(raw: unknown) {
return raw as Array<{ id: string }>;
},
translateModel(model: { id: string }) {
return { id: model.id, model: { base_model: "openai/gpt-4.1" } };
},
};
}
function catalogPage(
result: Array<Record<string, unknown>>,
resultInfo: Partial<{ page: number; per_page: number; total_count: number; total_pages: number }> = {},
) {
const page = resultInfo.page ?? 1;
const perPage = resultInfo.per_page ?? 50;
const totalCount = resultInfo.total_count ?? result.length;
return {
success: true,
result,
result_info: {
page,
per_page: perPage,
count: result.length,
total_count: totalCount,
total_pages: resultInfo.total_pages ?? Math.max(1, Math.ceil(totalCount / perPage)),
},
};
}
function restoreEnv(name: string, value: string | undefined) {
if (value === undefined) delete process.env[name];
else process.env[name] = value;
}
+228
View File
@@ -0,0 +1,228 @@
import { expect, test } from "bun:test";
import {
buildGitHubCopilotCost,
githubCopilotModelSlug,
githubCopilot,
parseGitHubCopilotPricing,
type GitHubCopilotPricingRow,
} from "../src/sync/providers/github-copilot.js";
import type { ExistingModel } from "../src/sync/index.js";
function row(overrides: Partial<GitHubCopilotPricingRow>): GitHubCopilotPricingRow {
return {
model: "GPT-5.6 Terra",
provider: "openai",
release_status: "GA",
category: "Versatile",
input: "$2.00",
cached_input: "$0.20",
output: "$12.00",
...overrides,
};
}
test("slugifies display names into catalog filenames", () => {
expect(githubCopilotModelSlug("GPT-5.6 Sol[^gpt-56-sol-promo]")).toBe("gpt-5.6-sol");
expect(githubCopilotModelSlug("GPT-5 mini")).toBe("gpt-5-mini");
expect(githubCopilotModelSlug("GPT-5.3-Codex")).toBe("gpt-5.3-codex");
expect(githubCopilotModelSlug("Claude Opus 4.8 (fast mode) (preview)")).toBe("claude-opus-4.8-fast-mode-preview");
expect(githubCopilotModelSlug("MAI-Code-1.1-Flash")).toBe("mai-code-1.1-flash");
expect(githubCopilotModelSlug("Kimi K2.7 Code")).toBe("kimi-k2.7-code");
});
test("groups tier rows under one model", () => {
const models = parseGitHubCopilotPricing([
row({ threshold: "≤ 272K", tier: "Default" }),
row({ threshold: "> 272K", tier: "Long context", input: "$4.00", cached_input: "$0.40", output: "$18.00" }),
row({ model: "Claude Sonnet 5", provider: "anthropic", input: "$2.00", output: "$10.00", cache_write: "$2.50" }),
]);
expect(models.map((model) => model.slug)).toEqual(["gpt-5.6-terra", "claude-sonnet-5"]);
expect(models[0]?.rows).toHaveLength(2);
});
test("builds flat cost with cache_write and Not applicable handling", () => {
const [model] = parseGitHubCopilotPricing([
row({ model: "GPT-5.4 mini", input: "$0.75", cached_input: "$0.075", output: "$4.50", cache_write: "Not applicable" }),
]);
expect(buildGitHubCopilotCost(model!)).toEqual({
input: 0.75,
output: 4.5,
cache_read: 0.075,
cache_write: undefined,
tiers: undefined,
});
});
test("builds long-context tiers from threshold rows", () => {
const [model] = parseGitHubCopilotPricing([
row({ threshold: "≤ 272K", tier: "Default", cache_write: "$2.50" }),
row({ threshold: "> 272K", tier: "Long context", input: "$4.00", cached_input: "$0.40", output: "$18.00", cache_write: "$5.00" }),
]);
expect(buildGitHubCopilotCost(model!)).toEqual({
input: 2,
output: 12,
cache_read: 0.2,
cache_write: 2.5,
tiers: [{
tier: { type: "context", size: 272_000 },
input: 4,
output: 18,
cache_read: 0.4,
cache_write: 5,
}],
});
});
test("rejects malformed tables instead of writing garbage", () => {
const build = (rows: GitHubCopilotPricingRow[]) => {
const models = parseGitHubCopilotPricing(rows);
return models.map((model) => buildGitHubCopilotCost(model));
};
// Unknown tier label.
expect(() => build([row({ tier: "Standard" })])).toThrow(/Unknown pricing tier/u);
// Two default rows for one model.
expect(() => build([row({}), row({})])).toThrow(/exactly one default pricing row/u);
// Long-context row without a parseable threshold.
expect(() => build([
row({ threshold: "≤ 272K", tier: "Default" }),
row({ threshold: "272K+", tier: "Long context" }),
])).toThrow(/Unparseable long-context threshold/u);
// Price strings are schema-validated before translation.
expect(() => build([row({ input: "$1,000.00" })])).toThrow();
expect(() => build([row({ input: "Included" })])).toThrow();
});
function translationContext(files: Record<string, ExistingModel>) {
return {
existing: (id: string) => files[id],
authored: (id: string) => files[id],
};
}
const authoredTerra: ExistingModel = {
base_model: "openai/gpt-5.6-terra",
cost: { input: 1, output: 1, cache_read: 1 },
};
test("updates cost on the authored file and preserves audio rates", () => {
const [model] = parseGitHubCopilotPricing([row({ cache_write: "$2.50" })]);
const translated = githubCopilot.translateModel(model!, translationContext({
"gpt-5.6-terra": {
...authoredTerra,
cost: { input: 1, output: 1, reasoning: 3, cache_read: 1, input_audio: 1.5, output_audio: 6 },
},
}));
expect(translated?.id).toBe("gpt-5.6-terra");
expect(translated?.model.cost).toMatchObject({
input: 2,
output: 12,
reasoning: 3,
cache_read: 0.2,
cache_write: 2.5,
input_audio: 1.5,
output_audio: 6,
});
expect((translated?.model as ExistingModel).base_model).toBe("openai/gpt-5.6-terra");
});
test("clears authored tiers and cache_write the table no longer lists", () => {
const [model] = parseGitHubCopilotPricing([row({ cache_write: "Not applicable" })]);
const translated = githubCopilot.translateModel(model!, translationContext({
"gpt-5.6-terra": {
...authoredTerra,
cost: {
input: 1,
output: 1,
cache_read: 1,
cache_write: 9,
tiers: [{ tier: { type: "context", size: 272_000 }, input: 9, output: 9 }],
},
},
}));
const cost = translated?.model.cost;
expect(cost?.input).toBe(2);
// Stale authored values must not survive the spread; the runner strips the
// explicit undefineds before writing.
expect(cost?.cache_write).toBeUndefined();
expect(cost?.tiers).toBeUndefined();
});
test("resolves preview and alias filenames", () => {
const preview = parseGitHubCopilotPricing([
row({ model: "Gemini 3.1 Pro", provider: "google", release_status: "Public preview" }),
]);
expect(githubCopilot.translateModel(preview[0]!, translationContext({
"gemini-3.1-pro-preview": authoredTerra,
}))?.id).toBe("gemini-3.1-pro-preview");
const alias = parseGitHubCopilotPricing([row({ model: "MAI-Code-1-Flash", provider: "microsoft" })]);
expect(githubCopilot.translateModel(alias[0]!, translationContext({
"mai-code-1-flash-picker": authoredTerra,
}))?.id).toBe("mai-code-1-flash-picker");
// An exact slug match wins over both fallbacks.
expect(githubCopilot.translateModel(preview[0]!, translationContext({
"gemini-3.1-pro": authoredTerra,
"gemini-3.1-pro-preview": authoredTerra,
}))?.id).toBe("gemini-3.1-pro");
expect(githubCopilot.translateModel(alias[0]!, translationContext({
"mai-code-1-flash": authoredTerra,
"mai-code-1-flash-picker": authoredTerra,
}))?.id).toBe("mai-code-1-flash");
});
test("skips ignored rows silently and unmatched rows with an ID", () => {
const [fastMode] = parseGitHubCopilotPricing([
row({ model: "Claude Opus 4.8 (fast mode) (preview)", provider: "anthropic" }),
]);
expect(githubCopilot.translateModel(fastMode!, translationContext({}))).toBeUndefined();
expect(githubCopilot.sourceID(fastMode!)).toBeUndefined();
const [unmatched] = parseGitHubCopilotPricing([row({ model: "Brand New Model" })]);
expect(githubCopilot.translateModel(unmatched!, translationContext({}))).toBeUndefined();
expect(githubCopilot.sourceID(unmatched!)).toBe("brand-new-model");
});
const pricingYaml = `
- model: 'GPT-5.6 Sol[^gpt-56-sol-promo]'
provider: openai
release_status: GA
category: Powerful
threshold: '≤ 272K'
tier: Default
input: $2.00
cached_input: $0.20
output: $10.00
cache_write: $2.50
- model: 'GPT-5.6 Sol[^gpt-56-sol-promo]'
provider: openai
release_status: GA
category: Powerful
threshold: '> 272K'
tier: 'Long context'
input: $4.00
cached_input: $0.40
output: $15.00
cache_write: $5.00
`;
test("parses rows straight from the docs YAML format", () => {
const models = parseGitHubCopilotPricing(Bun.YAML.parse(pricingYaml));
expect(models).toHaveLength(1);
expect(models[0]?.slug).toBe("gpt-5.6-sol");
expect(buildGitHubCopilotCost(models[0]!)).toEqual({
input: 2,
output: 10,
cache_read: 0.2,
cache_write: 2.5,
tiers: [{
tier: { type: "context", size: 272_000 },
input: 4,
output: 15,
cache_read: 0.4,
cache_write: 5,
}],
});
});
+92
View File
@@ -1830,9 +1830,38 @@ test("resolves DigitalOcean IDs to canonical model metadata", () => {
expect(resolveDigitalOceanBaseModel("mimo-v2.5-pro")).toBe("xiaomi/mimo-v2.5-pro");
expect(resolveDigitalOceanBaseModel("anthropic-claude-5-sonnet")).toBe("anthropic/claude-sonnet-5");
expect(resolveDigitalOceanBaseModel("anthropic-claude-opus-5")).toBe("anthropic/claude-opus-5");
expect(resolveDigitalOceanBaseModel("anthropic-claude-fable-5.1")).toBe("anthropic/claude-fable-5-1");
expect(resolveDigitalOceanBaseModel("anthropic-claude-5.1-fable")).toBe("anthropic/claude-fable-5-1");
expect(resolveDigitalOceanBaseModel("anthropic-claude-unknown-99.1")).toBeUndefined();
expect(resolveDigitalOceanBaseModel("openai-gpt-5.6-luna")).toBe("openai/gpt-5.6-luna");
});
test("new DigitalOcean Fable models emit only base metadata overrides", () => {
const translated = digitalocean.translateModel(
digitalOceanModel({
id: "anthropic-claude-fable-5.1",
name: "Anthropic Claude Fable 5.1",
reasoning_efforts: ["low", "medium", "high", "xhigh", "max"],
modalities: { input: ["text", "image"], output: ["text"] },
max_output_tokens: 128_000,
created_at: "2026-09-01T00:00:00Z",
pricing: { input: 10, output: 50, cacheRead: 0.25, cacheWrite: 12.5 },
}),
{ existing: () => undefined, authored: () => undefined },
);
expect(translated).toEqual({
id: "anthropic-claude-fable-5.1",
model: {
base_model: "anthropic/claude-fable-5-1",
name: "Anthropic Claude Fable 5.1",
reasoning_options: [{ type: "effort", values: ["low", "medium", "high", "xhigh", "max"] }],
cost: { input: 10, output: 50, cache_read: 0.25, cache_write: 12.5 },
modalities: { input: ["text", "image"] },
},
});
});
test("new DigitalOcean base models inherit intrinsic capabilities", () => {
const model = buildDigitalOceanModel(
digitalOceanModel({
@@ -3005,6 +3034,14 @@ test("factors OpenRouter Pro routes against canonical OpenAI metadata", () => {
expect("release_date" in model).toBe(false);
});
test("resolves dotted Claude versions without a family allowlist", () => {
expect(resolveCanonicalBaseModel("anthropic/claude-fable-5.1")).toBe("anthropic/claude-fable-5-1");
expect(resolveCanonicalBaseModel("anthropic/claude-fable-5.1-fast")).toBe("anthropic/claude-fable-5-1");
expect(resolveCanonicalBaseModel("anthropic/claude-opus-4.6")).toBe("anthropic/claude-opus-4-6");
expect(resolveCanonicalBaseModel("anthropic/claude-3.5-sonnet-20241022")).toBe("anthropic/claude-3-5-sonnet-20241022");
expect(resolveCanonicalBaseModel("anthropic/claude-unknown-99.1")).toBeUndefined();
});
test("resolves SpaceXAI provider IDs to canonical xAI metadata", () => {
expect(resolveCanonicalBaseModel("spacexai/grok-4.5")).toBe("xai/grok-4.5");
});
@@ -4731,3 +4768,58 @@ function openRouterModel(overrides: Partial<OpenRouterModel> = {}): OpenRouterMo
...overrides,
};
}
function caseFoldProvider(modelsDir: string, ids: string[]): SyncProvider<string> {
return {
id: "case-fold-test",
name: "Case fold test",
modelsDir,
async fetchModels() {
return ids;
},
parseModels(raw) {
return raw as string[];
},
translateModel(id) {
return {
id,
model: {
name: id,
description: "Case-fold guard test model.",
release_date: "2026-08-14",
last_updated: "2026-08-14",
attachment: false,
reasoning: false,
tool_call: false,
open_weights: false,
cost: { input: 1, output: 2 },
limit: { context: 8_192, output: 4_096 },
modalities: { input: ["text"], output: ["text"] },
},
};
},
};
}
test("rejects synced model paths that differ only in case", async () => {
const root = await mkdtemp(path.join(tmpdir(), "models-dev-case-fold-"));
const modelsDir = path.join(root, "providers", "case-fold-test", "models");
await mkdir(modelsDir, { recursive: true });
try {
await expect(
syncProvider(caseFoldProvider(modelsDir, ["Alpha", "alpha"])),
).rejects.toThrow(/differ only in case/u);
await expect(
syncProvider(caseFoldProvider(modelsDir, ["beta", "beta"])),
).rejects.toThrow(/Duplicate synced model path/u);
const clean = await syncProvider(
caseFoldProvider(modelsDir, ["Gamma", "delta"]),
);
expect(clean).toMatchObject({ created: 2, updated: 0, deleted: 0 });
} finally {
await rm(root, { recursive: true, force: true });
}
});
@@ -0,0 +1,42 @@
# Sources (accessed 2026-08-31):
# - Model card, limits (1M context, 999,990 max output), capabilities, GLM-5.3 base:
# https://docs.abliteration.ai/models
# - Reasoning modes and per-endpoint request fields:
# https://docs.abliteration.ai/capabilities/thinking
# - Pricing ($5 per 1M tokens input/output, $0.50 per 1M cached input):
# https://docs.abliteration.ai/pricing
# https://abliteration.ai/pricing
# - Launch announcement (GLM-5.3 base, FP8 hosting, benchmarks):
# https://abliteration.ai/blog/introducing-abliterated-model-large-v2
name = "Abliterated Model Large V2"
description = "GLM-5.3 model abliterated and finetuned for cyber, ML red teaming, and agent testing"
release_date = "2026-08-29"
last_updated = "2026-08-31"
attachment = false
reasoning = true
tool_call = true
structured_output = true
temperature = true
open_weights = false
# Three distinct reasoning depths: low, high, max (default: max).
# Reasoning cannot be disabled on this model: "none" and {"thinking": false}
# map to low and hide the trace, so there is no toggle option. Other ladder
# values are accepted aliases: minimal -> low, medium -> high, xhigh -> max.
[[reasoning_options]]
type = "effort" # API: {"reasoning_effort": "<value>"} on /v1/chat/completions
values = ["low", "high", "max"]
[cost]
input = 5.00
output = 5.00
cache_read = 0.50
[limit]
context = 1_000_000
input = 1_000_000
output = 999_990
[modalities]
input = ["text"]
output = ["text"]
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M14.25 2 6 13h4.5L9.75 22 18 11h-4.5L14.25 2z"/>
</svg>

After

Width:  |  Height:  |  Size: 148 B

@@ -0,0 +1,28 @@
# Passthrough to the official DeepSeek API.
# Toggle: `thinking.type = enabled|disabled`; effort: `reasoning_effort = low|high|max`
# (Flash maps requested low→low). https://api-docs.deepseek.com/guides/thinking_mode/
# Off-peak rate from the CURRENT DeepSeek price sheet effective 2026-08-16
# (flash $0.22/$0.007/$0.66, pro $0.66/$0.022/$1.98 off-peak) plus a flat 10%;
# peak (weekdays 01:00-04:00 and 06:00-10:00 UTC, Beijing-time weekends
# off-peak) is 2x. https://api-docs.deepseek.com/quick_start/pricing/
# (accessed 2026-08-29; note first-party catalog entries predate 2026-08-16).
# Toggle verified end-to-end on this host 2026-08-29.
# Reasoning tokens billed at the output rate.
base_model = "deepseek/deepseek-v4-flash-vision-exp"
name = "DeepSeek V4 Flash Vision (Exp)"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.242
output = 0.726
reasoning = 0.726
cache_read = 0.0077
@@ -0,0 +1,28 @@
# Passthrough to the official DeepSeek API.
# Toggle: `thinking.type = enabled|disabled`; effort: `reasoning_effort = low|high|max`
# (Flash maps requested low→low). https://api-docs.deepseek.com/guides/thinking_mode/
# Off-peak rate from the CURRENT DeepSeek price sheet effective 2026-08-16
# (flash $0.22/$0.007/$0.66, pro $0.66/$0.022/$1.98 off-peak) plus a flat 10%;
# peak (weekdays 01:00-04:00 and 06:00-10:00 UTC, Beijing-time weekends
# off-peak) is 2x. https://api-docs.deepseek.com/quick_start/pricing/
# (accessed 2026-08-29; note first-party catalog entries predate 2026-08-16).
# Toggle verified end-to-end on this host 2026-08-29.
# Reasoning tokens billed at the output rate.
base_model = "deepseek/deepseek-v4-flash-0731"
name = "DeepSeek V4 Flash"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.242
output = 0.726
reasoning = 0.726
cache_read = 0.0077
@@ -0,0 +1,29 @@
# Passthrough to the official DeepSeek API.
# Toggle: `thinking.type = enabled|disabled`; effort: `reasoning_effort = high|max`
# (Pro maps requested low→high, so low is not a real level).
# https://api-docs.deepseek.com/guides/thinking_mode/
# Off-peak rate from the CURRENT DeepSeek price sheet effective 2026-08-16
# (flash $0.22/$0.007/$0.66, pro $0.66/$0.022/$1.98 off-peak) plus a flat 10%;
# peak (weekdays 01:00-04:00 and 06:00-10:00 UTC, Beijing-time weekends
# off-peak) is 2x. https://api-docs.deepseek.com/quick_start/pricing/
# (accessed 2026-08-29; note first-party catalog entries predate 2026-08-16).
# Toggle verified end-to-end on this host 2026-08-29.
# Reasoning tokens billed at the output rate.
base_model = "deepseek/deepseek-v4-pro-0813"
name = "DeepSeek V4 Pro"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.726
output = 2.178
reasoning = 2.178
cache_read = 0.0242
+18
View File
@@ -0,0 +1,18 @@
# Passthrough to the Fireworks fast router (~2x standard throughput).
# Effort: `reasoning_effort = none|high|max`; "none" disables thinking
# (`chat_template_kwargs = {"thinking": false}` also works as an alternate).
# Verified end-to-end on this host 2026-08-29.
base_model = "zhipuai/glm-5.2"
name = "GLM 5.2 Fast"
[[reasoning_options]]
type = "effort"
values = ["none", "high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 2.31
output = 7.26
cache_read = 0.231
+18
View File
@@ -0,0 +1,18 @@
# Passthrough to Fireworks serverless.
# Effort: `reasoning_effort = none|high|max`; "none" disables thinking
# (`chat_template_kwargs = {"thinking": false}` also works as an alternate).
# Verified end-to-end on this host 2026-08-29.
base_model = "zhipuai/glm-5.2"
name = "GLM 5.2"
[[reasoning_options]]
type = "effort"
values = ["none", "high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 1.54
output = 4.84
cache_read = 0.154
+24
View File
@@ -0,0 +1,24 @@
# Passthrough to Fireworks serverless (accounts/fireworks/models/glm-5p3-flash).
# Thinking-only model: reasoning cannot be disabled. Same surface as the
# Fireworks peer entry: effort high|max (Fireworks collapses requested
# low/medium to high; the wire accepts them but they select no distinct tier,
# and "none" is rejected with a 400 — verified live 2026-08-30). Image input
# verified; video/pdf are not supported on this host. Costs are the Fireworks
# rate ($0.15/$0.029/$0.50) plus a flat 10%.
base_model = "zhipuai/glm-5.3-flash"
name = "GLM 5.3 Flash"
[[reasoning_options]]
type = "effort"
values = ["high", "max"]
[modalities]
input = ["text", "image"]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.165
output = 0.55
cache_read = 0.0319
@@ -0,0 +1,20 @@
# Passthrough to the official MiMo API (api.xiaomimimo.com); same model as
# mimo-v2.5-pro served at up to ~1000 tok/s, 3x price for speed.
# Toggle: `thinking.type = enabled|disabled`, as providers/xiaomi; verified
# end-to-end on this host 2026-08-29.
# RMB upstream (pro CNY 3/0.025/6, ultraspeed CNY 9/0.075/18 per MTok)
# converted at 6.5 CNY/USD (operator rate set 2026-07, spot ~6.79; buffer
# covers FX drift), then a flat 10% markup; rounded to 4dp. Checked 2026-08-29.
base_model = "xiaomi/mimo-v2.5-pro-ultraspeed"
name = "MiMo V2.5 Pro UltraSpeed"
[[reasoning_options]]
type = "toggle"
[interleaved]
field = "reasoning_content"
[cost]
input = 1.5231
output = 3.0462
cache_read = 0.0127
+19
View File
@@ -0,0 +1,19 @@
# Passthrough to the official MiMo API (api.xiaomimimo.com).
# Toggle: `thinking.type = enabled|disabled`, as providers/xiaomi; verified
# end-to-end on this host 2026-08-29.
# RMB upstream (pro CNY 3/0.025/6, ultraspeed CNY 9/0.075/18 per MTok)
# converted at 6.5 CNY/USD (operator rate set 2026-07, spot ~6.79; buffer
# covers FX drift), then a flat 10% markup; rounded to 4dp. Checked 2026-08-29.
base_model = "xiaomi/mimo-v2.5-pro"
name = "MiMo V2.5 Pro"
[[reasoning_options]]
type = "toggle"
[interleaved]
field = "reasoning_content"
[cost]
input = 0.5077
output = 1.0154
cache_read = 0.0042
+27
View File
@@ -0,0 +1,27 @@
# Passthrough to Fireworks serverless.
# Toggle: `reasoning_effort = "none"` disables thinking (also accepts
# `chat_template_kwargs = {"thinking": false}`); verified end-to-end on this
# host 2026-08-29. The Alibaba first-party effort levels and budget_tokens are
# not exposed by this host.
# Host deltas vs the lab base: image input verified end-to-end 2026-08-23
# (video/pdf not supported on this host); output capped at 32,768.
base_model = "alibaba/qwen3.8-max"
name = "Qwen 3.8 Max"
attachment = false
[[reasoning_options]]
type = "toggle"
[interleaved]
field = "reasoning_content"
[modalities]
input = ["text", "image"]
[limit]
output = 32_768
[cost]
input = 2.2
output = 6.6
cache_read = 0.275
+11
View File
@@ -0,0 +1,11 @@
name = "above.dev"
env = ["ABOVE_API_KEY"]
npm = "@ai-sdk/openai-compatible"
# OpenAI-compatible gateway selling upstream cost plus a flat 10% on every
# token class, with the full upstream cache-hit discount passed through.
# DeepSeek models use time-of-day pricing (peak = 2x, weekdays 01:00-04:00 and
# 06:00-10:00 UTC; weekends off-peak); costs below are the off-peak rate.
# Every response reports its exact cost in the `x-cost-usd` header.
# https://above.dev/llms.txt
api = "https://api.above.dev/v1"
doc = "https://above.dev/docs"
@@ -0,0 +1,22 @@
# Source: GET https://api.aiand.com/v1/models (USD list prices; accessed
# 2026-08-29). GET /v1/models reports context_window = 262144, input = $0.40,
# output = $3.00, cached_input = $0.20 per 1M tokens.
# Modalities: text, image, video, and document (PDF) supported per catalog
# capabilities (vision|video|document).
# reasoning_effort verified by live probe on 2026-08-29: accepts none, low,
# medium, xhigh (200); rejects minimal, high, max with 400 ("Supported
# values: none, low, medium, xhigh"). effort=none returns no
# reasoning_content (off).
base_model = "alibaba/qwen3.8-27b"
[[reasoning_options]]
type = "effort"
values = ["none", "low", "medium", "xhigh"]
[cost]
input = 0.4
output = 3
cache_read = 0.2
[modalities]
input = ["text", "image", "video", "pdf"]
@@ -0,0 +1,21 @@
# Source: GET https://api.aiand.com/v1/models (USD list prices; accessed
# 2026-08-29). GET /v1/models reports context_window = 1048576 (shared base
# model uses 1_000_000), so the exact figure is overridden here.
# Lab / peer relays (zhipuai, zai, OpenRouter, Kilo) use always-on effort
# low|high|max. ai&'s deployment differs: live reasoning_effort probe on
# 2026-08-29 accepts none|low|xhigh|max (200); rejects minimal|medium|high
# with 400 ("Supported values: none, low, xhigh, max"). effort=none returns
# no reasoning_content (off); xhigh|max return reasoning_content.
base_model = "zhipuai/glm-5.3"
[[reasoning_options]]
type = "effort"
values = ["none", "low", "xhigh", "max"]
[cost]
input = 1
output = 4
cache_read = 0.3
[limit]
context = 1_048_576
@@ -0,0 +1,13 @@
# Toggle: enable_thinking = true|false
# Effort: reasoning_effort = low|high|max
# AIHubMix effort levels returned HTTP 200 (validated 2026-08-31T04:17:24Z).
base_model = "deepseek/deepseek-v4-flash-0731"
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["low", "high", "max"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.142
output = 0.284
cache_read = 0.0284
@@ -0,0 +1,13 @@
# Toggle: enable_thinking = true|false
# Effort: reasoning_effort = high|max
# AIHubMix effort levels returned HTTP 200 (validated 2026-08-31T04:17:24Z).
base_model = "deepseek/deepseek-v4-pro-0813"
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["high", "max"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.6918
output = 2.0754
cache_read = 0.023058
@@ -0,0 +1,17 @@
base_model = "zhipuai/glm-5.3-flash"
reasoning_options = [{ type = "effort", values = ["low", "high", "max"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.11268
output = 0.39438
cache_read = 0.02817
[limit]
output = 128_000
[modalities]
input = ["text", "image", "video"]
output = ["text"]
+13
View File
@@ -0,0 +1,13 @@
base_model = "zhipuai/glm-5.3"
reasoning_options = [{ type = "effort", values = ["low", "high", "max"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 1.1268
output = 3.9438
cache_read = 0.2817
[limit]
output = 128_000
+7
View File
@@ -0,0 +1,7 @@
base_model = "xai/grok-4.6"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh"] }]
[cost]
input = 2
output = 6
cache_read = 0.5
@@ -0,0 +1,22 @@
# Toggle: enable_thinking = true|false
# Budget: thinking_budget = integer reasoning tokens
base_model = "alibaba/qwen3.7-flash"
attachment = false
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens", max = 262_144 }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.0282
output = 0.1128
cache_read = 0.00564
cache_write = 0.03525
[limit]
context = 991_000
output = 64_000
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,21 @@
# AIHubMix Models API reports text,image input (queried 2026-08-31T04:06:29Z).
# OpenAI-compatible HTTPS image input returned HTTP 200 (validated 2026-08-31T04:08:19Z).
base_model = "alibaba/qwen3.8-2.4t-a95b"
attachment = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "xhigh"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 2
output = 6
cache_read = 0.5
[limit]
context = 262_000
output = 262_000
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -0,0 +1,26 @@
# Sources (accessed 2026-08-28):
# https://www.qianwenai.com/models/qwen3.8-flash
# https://help.aliyun.com/zh/model-studio/model-pricing (Beijing: ¥0.8 input / ¥2.7
# output per 1M tokens, flat 0<Token≤1M band, no tiers)
# CNY→USD rate: 6.737174, 2026-08-28, source: https://open.er-api.com/v6/latest/USD
# Cache pricing: cache read 10%, explicit cache create 125% of input
# (https://help.aliyun.com/zh/model-studio/context-cache)
# Toggle: enable_thinking true|false (hybrid)
# Effort: reasoning_effort = low|medium|xhigh (not yet in the API reference; see
# the Qwen3.8-Flash-Next release blog)
# Budget: thinking_budget (Max Reasoning 262K)
base_model = "alibaba/qwen3.8-flash"
reasoning_options = [
{ type = "toggle" },
{ type = "effort", values = ["low", "medium", "xhigh"] },
{ type = "budget_tokens", max = 262_144 },
]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.11875
output = 0.40073
cache_read = 0.01187
cache_write = 0.14844
@@ -0,0 +1,27 @@
# Sources (accessed 2026-08-27):
# https://help.aliyun.com/zh/model-studio/token-plan-personal-overview
# https://help.aliyun.com/en/model-studio/token-plan-personal-overview
# https://www.qwencloud.com/models/qwen3.8-flash
# https://docs.qwencloud.com/developer-guides/text-generation/thinking
# https://docs.qwencloud.com/api-reference/chat/openai-chat
# Toggle: enable_thinking true|false (hybrid)
# Effort: reasoning_effort = low|medium|xhigh (not yet in the API reference; see
# the Qwen3.8-Flash-Next release blog)
# Budget: thinking_budget (Max Reasoning 262K)
# Reasoning streams in reasoning_content.
# Cost is Credits-subscription (no public USD per-token rate on Token Plan).
base_model = "alibaba/qwen3.8-flash"
reasoning_options = [
{ type = "toggle" },
{ type = "effort", values = ["low", "medium", "xhigh"] },
{ type = "budget_tokens", max = 262_144 },
]
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -0,0 +1,26 @@
# Sources (accessed 2026-08-27):
# https://docs.qwencloud.com/token-plan/personal/token-plan-personal-overview
# https://www.qwencloud.com/models/qwen3.8-flash
# https://docs.qwencloud.com/developer-guides/text-generation/thinking
# https://docs.qwencloud.com/api-reference/chat/openai-chat
# Toggle: enable_thinking true|false (hybrid)
# Effort: reasoning_effort = low|medium|xhigh (not yet in the API reference; see
# the Qwen3.8-Flash-Next release blog)
# Budget: thinking_budget (Max Reasoning 262K)
# Reasoning streams in reasoning_content.
# Cost is Credits-subscription (no public USD per-token rate on Token Plan).
base_model = "alibaba/qwen3.8-flash"
reasoning_options = [
{ type = "toggle" },
{ type = "effort", values = ["low", "medium", "xhigh"] },
{ type = "budget_tokens", max = 262_144 },
]
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -0,0 +1,23 @@
# Sources (accessed 2026-08-28):
# https://www.qwencloud.com/models/qwen3.8-flash
# Pricing: $0.15 input / $0.47 output / cache read $0.016 / cache create $0.2
# per 1M tokens, flat. (Release blog quotes ~$0.16 input; model page prevails.)
# Toggle: enable_thinking true|false (hybrid)
# Effort: reasoning_effort = low|medium|xhigh (not yet in the API reference; see
# the Qwen3.8-Flash-Next release blog)
# Budget: thinking_budget (Max Reasoning 262K)
base_model = "alibaba/qwen3.8-flash"
reasoning_options = [
{ type = "toggle" },
{ type = "effort", values = ["low", "medium", "xhigh"] },
{ type = "budget_tokens", max = 262_144 },
]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.15
output = 0.47
cache_read = 0.016
cache_write = 0.2
@@ -0,0 +1,8 @@
base_model = "anthropic/claude-fable-5-1"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
[cost]
input = 10
output = 50
cache_read = 0.25
cache_write = 12.5
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-fable-5-1"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
name = "Claude Fable 5.1 (Global)"
[cost]
input = 10
output = 50
cache_read = 0.25
cache_write = 12.5
@@ -0,0 +1,11 @@
# Source: https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#regions
# Fable 5.1 regional availability is US-only at launch; regional endpoints carry a 10% premium over global.
base_model = "anthropic/claude-fable-5-1"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
name = "Claude Fable 5.1 (US)"
[cost]
input = 11
output = 55
cache_read = 0.275
cache_write = 13.75
@@ -0,0 +1,25 @@
# Sources (accessed 2026-08-28):
# https://developer.amd.com.cn/radeon/tokenfactory
# Pricing from the Token Factory models API: input $0.15, output $0.47,
# cache read $0.016 per MTok.
# AMD hosts a text-only vllm-router deployment (input/output modalities are
# text only), so the multimodal base entry is overridden below.
# Reasoning control verified live against POST /v1/chat/completions:
# reasoning_effort is a validated enum low|medium|xhigh with xhigh the default
# (values outside the enum return 400; no none, no toggle). No
# reasoning_content is ever returned (stream + non-stream), so there is no
# toggle and no interleaved channel on this host.
base_model = "alibaba/qwen3.8-flash-next"
attachment = false
reasoning_options = [
{ type = "effort", values = ["low", "medium", "xhigh"] },
]
[cost]
input = 0.15
output = 0.47
cache_read = 0.016
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-fable-5-1"
structured_output = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
[cost]
input = 10
output = 50
cache_read = 0.25
cache_write = 12.5
@@ -0,0 +1,13 @@
base_model = "anthropic/claude-fable-5-1"
structured_output = true
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
[cost]
input = 10.00
output = 50.00
cache_read = 0.25
cache_write = 12.50
[provider]
npm = "@ai-sdk/anthropic"
api = "https://${AZURE_COGNITIVE_SERVICES_RESOURCE_NAME}.services.ai.azure.com/anthropic/v1"
@@ -0,0 +1,13 @@
base_model = "anthropic/claude-fable-5-1"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
structured_output = true
[cost]
input = 10.00
output = 50.00
cache_read = 0.25
cache_write = 12.50
[provider]
npm = "@ai-sdk/anthropic"
api = "https://${AZURE_RESOURCE_NAME}.services.ai.azure.com/anthropic/v1"
@@ -0,0 +1,22 @@
# Effort: reasoning_effort = low|high|max; reasoning cannot be disabled.
# https://docs.baseten.co/inference/model-apis/reasoning
# Pricing: https://www.baseten.co/pricing
base_model = "zhipuai/glm-5.3"
name = "GLM 5.3"
description = "Flagship GLM model for hybrid reasoning, coding, and agentic engineering"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 1.4
output = 4.4
cache_read = 0.14
[limit]
context = 1_048_576
output = 262_144
@@ -0,0 +1,33 @@
# GLM-5.3-Flash served on Berget AI's Swedish infrastructure (NVIDIA B300,
# SGLang TP4). Multimodal (text + image), reasoning on by default with effort
# levels low/high/max. Needle-validated to 327K context.
# https://api.berget.ai/openapi.json
#
# Berget bills in EUR: 0.25 EUR/M input, 0.5 EUR/M output.
# Converted to USD at 1.1643 (ECB rate, 2026-08-28):
# 0.25 EUR/M -> 0.29 USD/M input
# 0.5 EUR/M -> 0.58 USD/M output
base_model = "zhipuai/glm-5.3-flash"
last_updated = "2026-08-29"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.29
output = 0.58
[limit]
context = 327_680
output = 16_384
# The lab model accepts text/image/video/pdf; the Berget SGLang deployment
# serves text + image + video (video verified against the live endpoint
# 2026-08-29). PDF input is NOT supported by the serving stack.
[modalities]
input = ["text", "image", "video"]
output = ["text"]
@@ -0,0 +1,26 @@
# GLM-5.3 served on Berget AI's Swedish infrastructure (NVIDIA B300, SGLang
# TP4). Reasoning always on, effort levels low/high/max (default max), returned
# in message.reasoning_content. Needle-validated to 327K context.
# https://api.berget.ai/openapi.json
#
# Berget bills in EUR: 1.5 EUR/M input, 5.0 EUR/M output.
# Converted to USD at 1.1643 (ECB rate, 2026-08-28):
# 1.5 EUR/M -> 1.75 USD/M input
# 5.0 EUR/M -> 5.82 USD/M output
base_model = "zhipuai/glm-5.3"
last_updated = "2026-08-29"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[interleaved]
field = "reasoning_content"
[cost]
input = 1.75
output = 5.82
[limit]
context = 327_680
output = 32_768
+33
View File
@@ -0,0 +1,33 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500">
<path d="
M 238,170
L 238,126
A 20 20 0 1 1 262,126
L 262,170
L 335,170
A 35 35 0 0 1 370,205
L 370,225
A 12 12 0 0 1 382,237
L 382,263
A 12 12 0 0 1 370,275
L 370,315
A 35 35 0 0 1 335,350
L 165,350
A 35 35 0 0 1 130,315
L 130,275
A 12 12 0 0 1 118,263
L 118,237
A 12 12 0 0 1 130,225
L 130,205
A 35 35 0 0 1 165,170
Z"
fill="none"
stroke="currentColor"
stroke-width="12"
stroke-linecap="round"
stroke-linejoin="round"
/>
<circle cx="202" cy="242" r="21" fill="currentColor" />
<circle cx="298" cy="242" r="21" fill="currentColor" />
<rect x="205" y="288" width="90" height="26" rx="13" fill="currentColor" />
</svg>

After

Width:  |  Height:  |  Size: 819 B

@@ -0,0 +1,14 @@
# Bothub wire: reasoning arrives in message.reasoning (mirrored in message.reasoning_details as reasoning.text).
# Toggle: POST /v1/chat/completions request field reasoning_effort = "low" (on) | "none" (off);
# live-verified 2026-08-29: any non-none value enables thinking, "none" disables it (no graded effect between on-values).
base_model = "google/gemma-4-31b-it"
name = "Gemma 4 31B IT (free)"
interleaved = true
[[reasoning_options]]
type = "toggle"
[cost]
input = 0
output = 0
@@ -0,0 +1,13 @@
# Bothub wire: reasoning in message.reasoning (also mirrored in message.reasoning_details as reasoning.text)
base_model = "nvidia/nemotron-3-ultra-550b-a55b"
name = "Nemotron 3 Ultra (free)"
interleaved = true
[[reasoning_options]]
type = "effort"
values = ["none", "medium", "high"]
[cost]
input = 0
output = 0
+13
View File
@@ -0,0 +1,13 @@
name = "Bothub"
env = ["BOTHUB_API_KEY"]
npm = "@ai-sdk/openai-compatible"
# Raw HTTP reasoning controls (live-verified 2026-08-29):
# Chat POST `/v1/chat/completions` takes `reasoning_effort`; upstream
# reasoning returns in the message side channel (`reasoning`, mirrored
# in `reasoning_details`). Per-model request controls differ:
# - nemotron-3-ultra-550b-a55b:free: effort none|medium|high
# - gemma-4-31b-it:free: binary toggle (any non-none value enables
# thinking, `none` disables it)
# https://bothub.ru
api = "https://openai.bothub.ru/v1"
doc = "https://bothub.ru/models"
@@ -6,9 +6,9 @@ last_updated = "2026-08-16"
reasoning_options = []
[cost]
input = 0.35
output = 2.75
cache_read = 0.03499999999999999
input = 0.32
output = 2.5
cache_read = 0.031999999999999994
[limit]
output = 65_536
@@ -0,0 +1,18 @@
# https://api.cline.bot/api/v1/ai/cline/recommended-models (accessed 2026-09-01)
# Model ID cline-pass/glm-5.3-flash confirmed in live ClinePass catalog (clinePass[]).
# https://docs.cline.bot/getting-started/clinepass — docs model/pricing tables not yet updated for Flash.
# Reference pricing from Z.AI list/promo rates used for ClinePass quota accounting peers:
# https://docs.z.ai/guides/overview/pricing — GLM-5.3-Flash promo $0.075 / $0.25 / $0.015 per 1M
# (input/output/cache read; 50% off list through 2026-09-09 24:00 UTC+8).
# Effort: reasoning_effort = low|high|max (matches first-party GLM-5.3-Flash / ClinePass glm-5.3).
# https://docs.z.ai/guides/llm/glm-5.3-flash
base_model = "zhipuai/glm-5.3-flash"
reasoning_options = [{ type = "effort", values = ["low", "high", "max"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.075
output = 0.25
cache_read = 0.015
+5 -2
View File
@@ -18,10 +18,13 @@ One command regenerates every model TOML:
CLOUDFLARE_API_TOKEN=xxx CLOUDFLARE_ACCOUNT_ID=xxx bun run cloudflare-ai-gateway:generate
```
The sync also accepts `CLOUDFLARE_PRODUCTION_API_TOKEN` and
`CLOUDFLARE_PRODUCTION_ACCOUNT_ID_AI_GATEWAY_SANDBOX` directly.
It reads two live Cloudflare sources plus one local curation file:
- **Proxied catalog** — `GET /accounts/{id}/ai/catalog/models`. The source of truth: one
canonical (dotted) `model_id` per model, description, context/output limits, and pricing.
canonical (dotted) `model_id` per model, description, context limits, and pricing.
This is why ids look like `anthropic/claude-haiku-4.5`, not `claude-haiku-4-5`.
- **Per-model catalog schema** — `GET /accounts/{id}/ai/catalog/models/{id}/schema`. Used to
derive `reasoning_options` for providers whose schema is OpenAI-compatible (xAI, Alibaba,
@@ -44,7 +47,7 @@ bun run cloudflare-ai-gateway:generate --check
```
Exits non-zero if the committed TOMLs are out of date with the live catalog + curation.
Used in CI.
The same shared provider runs hourly; use `--check` for local drift checks.
### Offline / fixtures
@@ -1,3 +1,6 @@
# Context/output capped to Cloudflare Workers AI context window (1,048,576).
# Catalog/search previously reported 1,310,720, which exceeds AI Gateway max_completion_tokens.
# https://developers.cloudflare.com/workers-ai/models/glm-5.3-flash/
name = "Glm 5.3 Flash"
description = "GLM vision model for visual reasoning, documents, and multimodal agents"
family = "glm"
@@ -18,7 +21,7 @@ cache_read = 0.03
[limit]
context = 1_310_720
output = 1_310_720
output = 1_048_576
[modalities]
input = ["text", "image"]
@@ -0,0 +1,20 @@
# Cloudflare model input schema verified 2026-08-28 for @cf/zai-org/glm-5.3.
# https://developers.cloudflare.com/api/resources/ai/subresources/models/subresources/schema/methods/get/
# Toggle: chat_template_kwargs.enable_thinking = true|false (default true).
# Effort: reasoning_effort = low|medium|high; Cloudflare's declared controls differ from Z.ai's API.
base_model = "zhipuai/glm-5.3"
name = "Glm 5.3"
description = "Flagship GLM model for hybrid reasoning, coding, and agentic engineering"
reasoning_options = [
{ type = "toggle" },
{ type = "effort", values = ["low", "medium", "high"] },
]
[cost]
input = 1.4
output = 4.4
cache_read = 0.26
[limit]
context = 1_310_720
output = 1_310_720
@@ -1,15 +0,0 @@
base_model = "zhipuai/glm-5.2"
name = "GLM 5.2 FP4"
reasoning = true
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["minimal", "low", "medium", "high"] }]
interleaved = true
[limit]
context = 1_048_576
output = 131_072
[cost]
input = 1.12
output = 4.4
cache_read = 0
@@ -0,0 +1,14 @@
base_model = "zhipuai/glm-5.3"
name = "GLM 5.3 FP4"
reasoning_options = [{ type = "effort", values = ["low", "high", "max"] }]
interleaved = true
[limit]
context = 1_048_576
output = 131_072
[cost]
input = 1.12
output = 4.4
cache_read = 0
@@ -0,0 +1,11 @@
base_model = "deepseek/deepseek-v4-pro-0813"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
[cost]
input = 2
output = 3.999
cache_read = 0.5
[limit]
context = 1_048_576
output = 1_048_576
+3 -3
View File
@@ -3,10 +3,10 @@ description = "Mistral coding agent model for repository tasks and software engi
structured_output = true
[cost]
input = 0.446
output = 2.228
input = 0.478
output = 2.392
cache_read = 0.045
[limit]
context = 262_000
context = 256_000
output = 262_000
@@ -0,0 +1,23 @@
# Sources (accessed 2026-08-28):
# https://docs.bigmodel.cn/cn/guide/models/vlm/glm-5.3-flash
# https://docs.cortecs.ai/usage/reasoning
# Effort: reasoning_effort = low|high|max, matching the lab and relay peers.
# Thinking is always enabled; no toggle or reasoning-token budget.
# Output limit: https://api.cortecs.ai/v1/models (max_output_tokens, not context_size).
base_model = "zhipuai/glm-5.3-flash"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 0.201
output = 0.5
cache_read = 0.05
[limit]
context = 1_048_576
output = 64_000
[modalities]
input = ["text", "image"]
+15
View File
@@ -0,0 +1,15 @@
# Effort: reasoning_effort = low|high|max, matching the lab and relay peers.
# Cortecs maps reasoning_effort to backend controls; GLM-5.3 always reasons.
# https://docs.z.ai/guides/llm/glm-5.3
# https://docs.cortecs.ai/examples/reasoning
base_model = "zhipuai/glm-5.3"
reasoning_options = [{ type = "effort", values = ["low", "high", "max"] }]
[cost]
input = 1.75
output = 4.499
cache_read = 0.438
[limit]
context = 1_048_576
output = 1_048_576
+1 -1
View File
@@ -12,5 +12,5 @@ output = 1.186
cache_read = 0.075
[limit]
context = 196_680
context = 196_000
output = 196_608
@@ -1,24 +0,0 @@
name = "mistral-medium-2508"
description = "Mistral Medium 2508 is a frontier-class multimodal LLM with a 128,000 token context window, optimized for reasoning, coding, and multimodal tasks."
release_date = "2024-08-07"
last_updated = "2024-08-07"
attachment = true
reasoning = true
temperature = false
tool_call = true
structured_output = true
open_weights = false
reasoning_options = []
[cost]
input = 0.446
output = 2.228
cache_read = 0.045
[limit]
context = 128_000
output = 128_000
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -0,0 +1,22 @@
# Sources (accessed 2026-08-28):
# https://huggingface.co/Qwen/Qwen3.8-Flash-Next
# https://docs.cortecs.ai/usage/reasoning
# Effort: reasoning_effort = low|medium|xhigh, matching the lab and Cortecs Qwen3.8 peers.
# No lab-only toggle or thinking budget claimed for this relay route.
# Output limit: https://api.cortecs.ai/v1/models (max_output_tokens, not context_size).
base_model = "alibaba/qwen3.8-flash-next"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "xhigh"]
[cost]
input = 0.201
output = 0.5
cache_read = 0.05
[limit]
output = 64_000
[modalities]
input = ["text", "image"]
@@ -6,8 +6,8 @@ reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high
field = "reasoning_content"
[cost]
input = 0.12
output = 0.21
input = 0.08
output = 0.1
cache_read = 0.003
[limit]
@@ -0,0 +1,20 @@
base_model = "deepseek/deepseek-v4-pro-0813"
name = "DeepSeek V4 Pro (0813)"
[interleaved]
field = "reasoning_content"
[[reasoning_options]]
type = "effort"
values = ["none", "low", "medium", "high"]
[cost]
input = 0.35
output = 0.8
cache_read = 0.01
[limit]
output = 131_072
[provider]
npm = "@ai-sdk/openai-compatible"
+17
View File
@@ -0,0 +1,17 @@
base_model = "zhipuai/glm-5.3-flash"
name = "GLM 5.3-Flash"
[interleaved]
field = "reasoning_content"
[[reasoning_options]]
type = "effort"
values = ["none", "low", "medium", "high"]
[cost]
input = 0.07
output = 0.22
cache_read = 0.01
[provider]
npm = "@ai-sdk/openai-compatible"
@@ -1,17 +1,16 @@
base_model = "deepseek/deepseek-v4-pro"
name = "DeepSeek V4 Pro Lightning"
base_model = "zhipuai/glm-5.3"
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high"] }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0.8
output = 1.6
cache_read = 0.02
input = 0.40
output = 1.40
cache_read = 0.06
[limit]
output = 131_072
[provider]
npm = "@ai-sdk/openai-compatible"
npm = "@ai-sdk/openai-compatible"
+3 -3
View File
@@ -2,9 +2,9 @@ base_model = "alibaba/qwen3.8-27b"
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high"] }]
[cost]
input = 0.25
output = 2.1
cache_read = 0.06
input = 0.2
output = 1.5
cache_read = 0.03
[limit]
output = 262_144
@@ -5,7 +5,7 @@ structured_output = true
type = "toggle"
[cost]
input = 1.504
output = 4.504
cache_read = 0.3
cache_write = 1.88
input = 1.88
output = 5.63
cache_read = 0.375
cache_write = 2.35
@@ -5,14 +5,14 @@ structured_output = true
type = "toggle"
[cost]
input = 0.288
output = 1.125
cache_read = 0.0288
cache_write = 0.36
input = 0.32
output = 1.25
cache_read = 0.032
cache_write = 0.4
[[cost.tiers]]
tier = { type = "context", size = 256_000 }
input = 0.864
output = 3.375
cache_read = 0.0864
cache_write = 1.08
input = 0.96
output = 3.75
cache_read = 0.096
cache_write = 1.2
@@ -0,0 +1,14 @@
base_model = "alibaba/qwen3.8-flash"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "xhigh"]
[cost]
input = 0.13
output = 0.43
cache_read = 0.016
cache_write = 0.2
+1 -1
View File
@@ -13,4 +13,4 @@ cache_write = 0.16
[limit]
context = 262_144
output = 262_144
output = 131_072
@@ -0,0 +1,15 @@
base_model = "tencent/hy4-preview"
[[reasoning_options]]
type = "effort"
values = ["none", "high"]
[cost]
input = 0.96
output = 2.88
cache_read = 0.048
cache_write = 0.96
[limit]
context = 1_048_576
output = 65_536
@@ -0,0 +1,17 @@
base_model = "zhipuai/glm-5.3-flash"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 0.075
output = 0.25
cache_read = 0.015
cache_write = 0.075
[limit]
output = 128_000
[modalities]
input = ["text", "image", "video"]
@@ -1,5 +1,4 @@
base_model = "bytedance-seed/seed-2.0-mini"
structured_output = true
reasoning_options = []
[cost]
@@ -1,5 +1,4 @@
base_model = "bytedance-seed/seed-2.0-pro"
structured_output = true
reasoning_options = []
[cost]
@@ -0,0 +1,18 @@
# Sources (accessed 2026-08-28):
# https://docs.z.ai/guides/llm/glm-5.3
# https://api.deepinfra.com/models/zai-org/GLM-5.3/schema/openai-chat-completions
# Effort: reasoning_effort = low|high|max, matching the lab and relay peers.
# GLM-5.3 always reasons; no toggle or reasoning-token budget.
base_model = "zhipuai/glm-5.3"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 1.2
output = 4
cache_read = 0.12
[limit]
context = 1_048_576
@@ -0,0 +1,15 @@
base_model = "anthropic/claude-fable-5-1"
name = "Anthropic Claude Fable 5.1"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high", "xhigh", "max"]
[cost]
input = 10
output = 50
cache_read = 0.25
cache_write = 12.5
[modalities]
input = ["text", "image"]
@@ -0,0 +1,18 @@
base_model = "zhipuai/glm-5.3-flash"
name = "GLM5.3 Flash"
[[reasoning_options]]
type = "effort"
values = ["medium", "high", "xhigh"]
[cost]
input = 0.15
output = 0.5
cache_read = 0.03
[limit]
context = 1_048_576
output = 1_048_576
[modalities]
input = ["text", "image", "video"]
@@ -0,0 +1,15 @@
base_model = "zhipuai/glm-5.3"
name = "GLM5.3"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 1.4
output = 4.4
cache_read = 0.26
[limit]
context = 1_048_576
output = 1_048_576
@@ -1,5 +1,5 @@
base_model = "openai/gpt-oss-120b"
name = "GPT OSS 120B (Nebius AI)"
name = "GPT OSS 120B (EU)"
structured_output = false
[[reasoning_options]]
@@ -7,5 +7,7 @@ type = "effort"
values = ["low", "medium", "high"]
[cost]
input = 0.15
output = 0.6
input = 0.15001
output = 0.59997
cache_read = 0.15001
cache_write = 0.15001
Loaded 100 of 893 files, more files were not shown because too many files have changed in this diff. Show more