Compare commits

...
Author SHA1 Message Date
Dax Raad f96f94b8cb fix: move models site to opencode domain 2026-07-30 13:56:24 +00:00
Aiden Cline c837f4d34e fix: add OpenCode models domain (#3849)
* fix: add OpenCode models domain

* fix: remove computed custom domain field
2026-07-29 22:51:31 -05:00
Asmae_ELAZRAKandAiden Cline 762d7feef9 feat: add kimi K3 to cortecs (#3835)
* feat: add kimi K3 to cortecs

* fix: correct Cortecs Kimi K3 metadata

---------

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-29 22:09:54 -05:00
Cas BurggraafandClaude Opus 4.8 b424381291 Add GreenPT provider (#3726)
* Add GreenPT provider (26 models)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Add GreenPT provider logo

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Use base_model for Mistral Small 3.2 / Medium 3.5 and Green L (review)

Reference existing models/ metadata via base_model instead of
re-declaring provider-agnostic facts inline, per review feedback.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Add required description field to full-def models

Upstream schema now requires a non-empty description on models;
base_model entries inherit it, so add it to the self-contained ones.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Refresh GreenPT catalog against production

Reconciles every GreenPT entry with the live production catalog and addresses
the data-accuracy review:

- Context limits: add provider-specific limit.context where GreenPT serves a
  smaller window than the base metadata (gemma-3-27b-it 40k, devstral-2 200k,
  llama-3.3-70b 100k, qwen3-coder-30b 128k).
- Speech-to-text: reprice green-s / green-s-pro to the current EUR 0.12/hour
  pre-recorded rate, with the standard EUR 0.23/hour noted inline.
- Modalities: override attachment and modalities.input so each entry advertises
  exactly what GreenPT serves. Adds image input to gpt-oss-120b, green-r,
  green-r-raw, green-l, green-l-raw and mistral-small-3.2; drops the inherited
  video/audio modalities from qwen3.6-35b-a3b, qwen3.5-397b-a17b and the Kimi
  entries.
- Reasoning controls: reasoning_options now lists the full accepted effort set
  (none, minimal, low, medium, high) on every reasoning model.
- Token costs: refresh prices, including glm-5.2, glm-5.1, minimax-m2.5 and the
  three Kimi entries.

* Rename gemma-4-26b-a4b-it to gemma4

The GreenPT API serves this model under the id `gemma4`; the previous filename
did not resolve against the live endpoint. The upstream weights are still
referenced through base_model.

* Address automated review feedback

- Add the required top-of-file cost-conversion comment (rate 1.14 USD/EUR,
  captured 2026-07-24, with sources) to every EUR-sourced file, per the
  AGENTS.md cost schema rule.
- Scope reasoning_options to the GreenPT-hosted models whose reasoning control
  is documented first-party (gemma4, green-r, green-r-raw). The third-party
  pass-through endpoints forward reasoning_effort upstream unchanged and their
  per-model accepted values are not verified, so they now declare [] rather
  than an assumed effort enum.
- Publish the standard EUR 0.23/hour speech-to-text rate (USD 0.00437/minute)
  instead of the temporary promotional rate, so the catalog stays correct after
  the promotion ends on 2026-08-31. The promotion is documented in the header.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-29 22:02:09 -05:00
e6d37bdcae feat(sync): add Merge Gateway model sync (#3249)
* feat(sync): add Merge Gateway model sync

* fix(merge-gateway): document reasoning controls

* fix(sync): preserve partial Merge Gateway metadata

* fix(merge-gateway): align route metadata sync

* fix(merge-gateway): treat supports_reasoning as a positive-only signal

The public /v1/models schema does not document supports_reasoning, and the
live catalog populates it inconsistently across vendor routes: the same
model reports true on one route and false on another (claude-opus-4-6 is
false via anthropic, true via bedrock), and reasoning-only models such as
deepseek-r1 report false on their sole route. Flipping reasoning = false
from that field erased curated reasoning metadata on 42 models.

- only confirm reasoning when an available route reports
  supports_reasoning = true (always accompanied by route reasoning
  metadata), defaulting reasoning_options to [] when none are curated
- preserve curated reasoning metadata when routes report false or omit
  the field
- restore the 42 erased reasoning entries (claude, deepseek-r1, gpt-oss,
  gemma, qwen, glm, nemotron, fugu) from curated values
- re-sync against the live catalog: gemini-embedding-001 added, route
  cache_read prices and display names ingested, qwen3.5-27b limits and
  modalities updated

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore(merge-gateway): refresh model catalog

* fix(merge-gateway): align synced model metadata

* docs(sync): trim Merge Gateway notes

* fix(merge-gateway): remove stale Qwen aliases

* test(merge-gateway): document sync coverage

* fix(merge-gateway): mark chat models as non-reasoning

---------

Co-authored-by: Matthew Feroz <matt.feroz@merge.dev>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-29 21:58:24 -05:00
Kassie Povinelli bebd608155 feat(llmgateway): add reasoning effort levels for kimi-k3 (#3843)
* feat(llmgateway): add reasoning effort levels for kimi-k3

The kimi-k3 entry declared no reasoning options. Verified against the
live gateway that reasoning_effort accepts
minimal|low|medium|high|xhigh|max and returns thinking traces in
message.reasoning, with depth scaling low < medium < high ~= max.
There is no working off switch ('none', reasoning.enabled=false,
thinking.type=disabled, and reasoning.exclude=true all still reason),
so 'none' is omitted and no toggle is declared.

* refactor(llmgateway): move kimi-k3 API mapping note into header comment

Inline comments on TOML entries are dropped by the sync re-serializer;
keep the reasoning_effort/reasoning.effort mapping note in the leading
comment block per repo convention.
2026-07-29 12:58:18 -05:00
github-actions[bot] 6a308dfbf7 chore(sync): update Venice model catalog (#3827)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:17:35 -05:00
github-actions[bot] 6455db8f76 chore(sync): update Chutes model catalog (#3802)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:17:25 -05:00
github-actions[bot] ebcf1c5136 chore(sync): update Baseten model catalog (#3821)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:49 -05:00
github-actions[bot] 6f4163d814 chore(sync): update CrossModel model catalog (#3819)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:42 -05:00
github-actions[bot] 05c55247fa chore(sync): update EmpirioLabs AI model catalog (#3803)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:34 -05:00
github-actions[bot] 83b4abd291 chore(sync): update OpenRouter model catalog (#3796)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:09:13 -05:00
github-actions[bot] 5a66940016 chore(sync): update Deep Infra model catalog (#3825)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:08:57 -05:00
github-actions[bot] 3516638e90 chore(sync): update Vercel AI Gateway model catalog (#3828)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:08:47 -05:00
github-actions[bot] 214e4198af chore(sync): update Weights & Biases model catalog (#3829)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:00:50 -05:00
github-actions[bot] f4ecada627 chore(sync): update LLM Gateway model catalog (#3838)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 10:27:48 -05:00
github-actions[bot] fe06f6b0b8 chore(sync): update Charm Hyper model catalog (#3837)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 10:27:37 -05:00
huggix bddb089b85 feat(sync): add safe NanoGPT model catalog sync (#3342)
* Add safe NanoGPT model sync provider

* Address NanoGPT canonical model review

* Fix remaining NanoGPT canonical variants

* Harden NanoGPT canonical model sync

* Preserve NanoGPT overrides during factoring
2026-07-29 10:24:57 -05:00
github-actions[bot] 2605c54574 fix: dev CI failure (#3839)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 11:24:03 -04:00
Dax Raad f412635d8c Add models.opencode.ai domain 2026-07-29 11:13:33 -04:00
Deven Navani b6a79f21e5 Add Modal as an inference provider (#3760)
* Add Modal as an inference provider

* Use Modal inference gateway
2026-07-28 17:29:14 -05:00
Aiden Cline 814f7e04e0 fix(openrouter): temporarily skip :batch model routes (#3822)
Batch endpoints are not catalog targets; filter them out during sync.
2026-07-28 13:54:24 -05:00
Fenil Modi 3e74f55316 fix(aiand): fix logo.svg not rendering in provider catalog (#3800)
* fix(aiand): rescale logo.svg to 24x24 icon format

The previous logo used a 1280x1280 viewBox with a translate(0 430)
transform, causing it to render blank/broken at small icon sizes in
OpenCode's provider catalog. Rescaled to 24x24 following the convention
used by fireworks-ai, nebius, and other providers.

* fix(aiand): fix logo.svg rendering at icon sizes

Crop viewBox to the actual content bounding box (0 471 1280 430)
and add explicit width/height="24" so the logo renders correctly
at small icon sizes in OpenCode's provider catalog.
Original paths are unchanged.

* fix(aiand): fix logo.svg not rendering in provider catalog

Add width/height="24" and crop viewBox to "0 471 1280 430" —
the exact bounding box of the logo content after translate(0 430).
No path data changed.
2026-07-28 13:42:28 -05:00
github-actions[bot] 185a4f4cc1 chore(sync): update Vercel AI Gateway model catalog (#3807)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-28 12:02:06 -05:00
github-actions[bot] b209b33ce1 chore(sync): update Charm Hyper model catalog (#3801)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-28 12:01:55 -05:00
Fenil Modi 3e72fc6374 fix(aiand): remove glm-5.1 and kimi-k2.6 — not in live catalog (#3806)
* fix(aiand): remove glm-5.1 — not in live catalog (superseded by glm-5.2)

* fix(aiand): remove kimi-k2.6 — not in live catalog (superseded by kimi-k2.7-code and kimi-k3)
2026-07-28 12:01:34 -05:00
Suat-B adfe923c2c Add Xpersona premium model lineup (#3817)
* Add Xpersona premium model lineup

* Fix GPT-5.4 Mini limit inheritance

* Fix GPT-5.4 and GPT-5.5 input limit inheritance

* Align Xpersona serving limits and reasoning metadata

* Restore inherited context field for GPT-5.4 Mini
2026-07-28 11:59:50 -05:00
7343d8b35c feat(berget): add Kimi K3 (#3810)
* feat(berget): add Kimi K3

Moonshot AI's 2.8T-parameter open-weights model, served on Berget AI's
Swedish infrastructure (NVIDIA B300, SGLang with DSpark speculative
decoding).

- reasoning_effort none/low/medium/high/max mapped to K3's native
  low/high/max; reasoning returned in message.reasoning_content
- 320k context window, 32k max output
- Multimodal input (text + image)
- Pricing: $3 input / $15 output per 1M tokens, $0.30 cache read

* fix(berget): drop cache_read price, tidy reasoning comment

- Remove cache_read: no separate cache-read price on Berget
- Move reasoning comment to file top and drop xhigh mention
  (Copilot review)

* fix(berget): Kimi K3 reasoning_effort to native low/high/max

K3 only has three native reasoning levels (low/high/max, default max) and
cannot disable thinking. The previous list (none/low/medium/high/max) mixed
in clamped OpenAI-compat values and implied a granularity the model does not
have — and 'none' is misleading since K3 always thinks. The Berget API still
accepts the full OpenAI effort set and clamps it, but only the three distinct
levels are advertised. Matches the 'distinct functional levels' convention
used by our other models.

---------

Co-authored-by: berget-code <noreply@berget.ai>
Co-authored-by: berget <dev@berget.ai>
2026-07-28 11:59:23 -05:00
github-actions[bot] 69a5617db0 chore(sync): update Venice model catalog (#3818)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-28 11:57:33 -05:00
David Knaack 42f0d9ff3f chore(sap-ai-core): add gemini-embedding (version: 001/latest) (#3811) 2026-07-28 11:57:24 -05:00
Billy CaoandClaude Fable 5 52d5045ee7 feat(synthetic): Add Kimi K3 model (#3794)
* Add Synthetic's Kimi K3 offering

* Update cache read price

* fix(synthetic): declare effort-only reasoning for Kimi K3 per Synthetic API docs

Synthetic's OpenAI-compatible chat completions API documents reasoning_effort
with values low | medium | high and no reasoning on/off toggle, so drop the
toggle option and align effort values with the documented surface (matching
the existing Synthetic Kimi K2.6 / K2.7-Code entries).

https://dev.synthetic.new/docs/openai/chat-completions

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Remove unnecessary comment

* Retrigger transient actions failure

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 23:36:15 -05:00
github-actions[bot] 4faf76317a chore(sync): update Venice model catalog (#3791)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 23:36:01 -05:00
github-actions[bot] efb5d8ea0d chore(sync): update Baseten model catalog (#3798)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 23:35:53 -05:00
Fenil Modi 0273194a65 feat(aiand): add Kimi K3 (#3799)
* feat(aiand): add Kimi K3

* fix(aiand): remove pdf from kimi-k3 modalities, text+image only

* fix(aiand): restore pdf modality for kimi-k3 based on /v1/models evidence

PDF was removed to match fireworks/ollama-cloud, but that is not valid
evidence for aiand. Sibling aiand entries (kimi-k2.6, kimi-k2.7-code)
keep pdf after catalog/probe evidence. Restoring pdf per original
GET /v1/models data which showed document support.
2026-07-27 23:35:42 -05:00
Abliteration AI a034112075 Add abliterated-model-large (#3793)
* Add abliterated-model-large

* Fix reasoning abliterated-model-large.toml

* fix provider

* Update abliterated-model-large.toml

* removed interleaved reasoning

* fixed docs and effort

* Address review: verified reasoning controls, citations, provider docs

- abliterated-model: reasoning = true with effort ladder and toggle,
  per docs.abliteration.ai/capabilities/thinking
- abliterated-model-large: replace unverified effort values with the
  documented ladder (none..max via reasoning_effort) plus thinking
  toggle; add API-syntax comments; move all source citations into the
  leading header block; align max output with docs (999,990)
- provider.toml: restore reasoning notes with the current verified
  per-endpoint request fields

* Narrow abliterated-model-large effort values to distinct modes

The API maps minimal-high -> high and xhigh-max -> max, so only none,
high, and max are distinct outcomes. Alias mapping kept as a comment.
2026-07-27 23:27:01 -05:00
Oskar b91080aa0e feat(hyper): add Charm Hyper provider and sync module (#3352)
* feat(hyper): add Charm Hyper provider and sync module

* feat: resync models

* fix: remove references to /provider endpoint

* feat: simplify model resolution

* fix logo

* feat: add base model resolution

* update models

* feat: add reasoning_options with base model fallback

* fix: undo env relaxation

* feat: round prices

* fix(hyper): sync modalities from vision

* .

* fix(hyper): remove base model reasoning fallback
2026-07-27 23:23:43 -05:00
Aiden Cline 6fda2e07c2 fix(nvidia): add missing NIM chat models and correct API ids (#3744)
* fix(nvidia): add missing NIM chat models and correct API ids

Add high-demand NVIDIA NIM models used by OpenCode (Nemotron Super/Ultra/Nano,
Inkling, Laguna XS, Mistral Medium 3.5, Ministral 14B, Gemma 3, Cosmos Reason2)
and rename catalog ids that used underscores so they match integrate.api.nvidia.com.

Fixes anomalyco/opencode#38865

* fix(nvidia): audit NIM reasoning_options against infer docs

Keep only verified controls (mistral-medium-3.5-128b reasoning_effort
none|high). Set reasoning_options=[] and drop interleaved where NIM OpenAPI
does not document a control. Narrow inkling modalities to text+image and cite
max_tokens bounds for Super/Laguna output limits.

* fix(nvidia): restore verified Nemotron prompt toggles and Inkling audio

First-party NIM model cards document reasoning ON/OFF via system prompts for
Super v1/v1.5, Ultra 253B, and Nano 8B. NVIDIA's Inkling card lists text/image/audio
inputs. Keep empty reasoning_options only where no control is documented (Laguna,
VL models). Align max_tokens with infer OpenAPI bounds.
2026-07-27 20:45:13 -05:00
github-actions[bot] 24b7a2aa4c chore(sync): update OpenRouter model catalog (#3758)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 20:44:47 -05:00
Vladimir Glafirov d1d08289ac feat: add gitlab duo-chat-opus-5 model (#3765) 2026-07-27 20:44:27 -05:00
rakshith1928 9875219078 feat(kimi-k3): add Kimi K3 model configuration with pricing and modalities (#3789) 2026-07-27 20:43:33 -05:00
amrrsandClaude Sonnet 5 ec23529c0c fix(nebius): fix Kimi K3 reasoning_options for Nebius Token Factory (#3792)
* fix(nebius): curate Kimi K3 reasoning_options from verified API behavior

PR #3780 merged Kimi K3 for Nebius with reasoning_options = [] (no
verified control surface). Live testing against
api.tokenfactory.nebius.com/v1/chat/completions shows reasoning_effort
is a real, validated parameter: invalid values 422, and valid values
visibly change reasoning_content length. Curate the accepted literal
list instead of leaving it empty.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* fix(nebius): narrow Kimi K3 reasoning_options to backend-verified values

Live testing invoking each literal (not just triggering the generic
gateway validator) shows the sglang model backend itself rejects
"minimal" and "xhigh" with a 400: "Input should be 'none', 'low',
'medium', 'high' or 'max'". Those two were only accepted by the
gateway's shared schema, not by this model. Narrow the list to the
5 values that actually work end-to-end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-27 20:43:18 -05:00
KiKaraage 62ef55a446 feat(crof): add Kimi K3 (#3795)
* feat(crof): add Kimi K3

* fix(crof): change reasoning levels to low-high-max

* fix(crof): add "none" reasoning back for Kimi K3
2026-07-27 20:42:40 -05:00
github-actions[bot] 6eaf975918 chore(sync): update Venice model catalog (#3786)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 16:06:11 -05:00
rakshith1928 f8ac4b4fb1 feat(ollama-cloud): add kimi k3 model (#3787)
* feat(ollama-cloud): add kimi k3 model

* update ollama reasoning

* Revise Kimi K3 model documentation and sources
2026-07-27 16:06:00 -05:00
github-actions[bot] 03e2178662 chore(sync): update Baseten model catalog (#3770)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:50:15 -05:00
github-actions[bot] 03e495d946 chore(sync): update Ambient model catalog (#3771)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:46:40 -05:00
github-actions[bot]andAiden Cline 1f5a03df40 chore(sync): update Vercel AI Gateway model catalog (#3772)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): set Kimi K3 Fast reasoning effort options

K3 always reasons; expose verified low/high/max via reasoning_effort.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-27 14:46:30 -05:00
github-actions[bot] 0968fea09f chore(sync): update LLM Gateway model catalog (#3779)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:43:34 -05:00
github-actions[bot]andAiden Cline 1fb770040a chore(sync): update Deep Infra model catalog (#3782)
* chore(sync): update Deep Infra model catalog

* fix(deepinfra): set Kimi-K3 reasoning effort options

K3 always reasons; expose verified low/high/max via reasoning_effort.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-27 14:43:20 -05:00
Kevin 1efc768ae5 Add Kimi K3 to Nebius Token Factory (#3780)
Register moonshotai/Kimi-K3 with Nebius pricing and limits from
https://tokenfactory.nebius.com/api/public/models_info.
2026-07-27 14:42:37 -05:00
github-actions[bot]andAiden Cline c3aab14477 chore(sync): update Hugging Face model catalog (#3784)
* chore(sync): update Hugging Face model catalog

* fix(huggingface): set Kimi-K3 reasoning effort options

K3 always reasons; expose verified low/high/max via reasoning_effort.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-27 14:42:20 -05:00
Zain Hasan 236d2dd99a add kimi k3 (#3783) 2026-07-27 14:37:56 -05:00
github-actions[bot] ad211c8f8f chore(sync): update Venice model catalog (#3781)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 14:37:42 -05:00
Jack 38ccccc20d add kimi k3 to Zen 2026-07-28 01:08:00 +08:00
github-actions[bot] cce20188e5 chore(sync): update Venice model catalog (#3775)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-27 11:33:49 -05:00
Ahmad Shahzad 2acddd4818 feat(fireworks-ai): add Kimi K3 and Kimi K3 Fast (#3777) 2026-07-27 11:33:33 -05:00
Ahmad Shahzad c67dbc2e02 fix(fireworks-ai): remove deprecated GLM 5.1 and GLM 5.1 Fast (#3730)
Fireworks AI will decommission GLM 5.1 and GLM 5.1 Fast serverless
endpoints on 2026-07-26, with GLM 5.2 and GLM 5.2 Fast serving as
their recommended replacements:

  GLM 5.1      -> GLM 5.2      (accounts/fireworks/models/glm-5p2)
  GLM 5.1 Fast -> GLM 5.2 Fast (accounts/fireworks/routers/glm-5p2-fast)

Remove the two model files ahead of the decommission date. Dedicated
deployments are unaffected.
2026-07-26 22:48:41 -05:00
github-actions[bot] 790e5cb842 chore(sync): update Ambient model catalog (#3747)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-26 22:48:00 -05:00
github-actions[bot] 73160c42bd chore(sync): update OpenRouter model catalog (#3748)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-26 22:47:50 -05:00
Carlo Francisco ff9bc91921 fix(thinkingmachines): name 256K variant "Inkling (256K)" (#3755)
Both Tinker Inkling tiers rendered with the same display name "Inkling"
because the :peft:262144 variant inherits it via base_model. Downstream
consumers (e.g. opencode) show two indistinguishable entries despite
different context windows and pricing. Override the name to match
the "Inkling (256K)" label used on Tinker's pricing page.
2026-07-26 22:47:35 -05:00
Nathan Nguyen 9c249c78cb feat(cloudflare-ai-gateway): add Claude Opus 5 (#3736) 2026-07-26 15:33:34 -05:00
github-actions[bot] c40d2ae925 chore(sync): update OpenRouter model catalog (#3733)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-25 22:57:04 -05:00
github-actions[bot] 71b3ca345d chore(sync): update Vercel AI Gateway model catalog (#3732)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-25 22:56:55 -05:00
github-actions[bot] 0b0414d78e chore(sync): update Weights & Biases model catalog (#3731)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-25 22:56:49 -05:00
github-actions[bot] f5edd52931 chore(sync): update Ambient model catalog (#3745)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-25 22:34:31 -05:00
opencode-agent[bot]andAiden Cline d53651e3d9 fix(reviewer): compare reasoning options by API surface (#3746)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-07-25 22:34:20 -05:00
Aiden Cline 2e25bad01c chore(azure): remove retired models, mark deprecated still-serving (#3729)
* chore(azure): remove retired models, mark deprecated still-serving

Delete Foundry models past retirement (chat snapshots, Phi-3, old GPT-4,
retired Meta/Cohere/DeepSeek/Mistral/xAI/Moonshot entries). Clean broken
azure-cognitive-services symlinks that pointed at deleted azure models.

Mark still-serving Deprecated/Legacy models with status = "deprecated"
(gpt-4.1*, gpt-4o*, o1/o3-mini/o4-mini, codex-mini, gpt-image-1,
deepseek-r1, claude-opus-4-1).

Sources:
- https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule
- https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/retired-models

* fix(azure): address review — Preview status + Nov-2025 cohort

- Remove status=deprecated from gpt-image-1 and claude-opus-4-1
  (official lifecycle is Preview, not Deprecated)
- Delete remaining Nov-2025 OpenAI cohort for consistency with o1-mini:
  gpt-3.5-turbo-0125/1106/instruct, gpt-4-turbo, gpt-4-turbo-vision
- Drop broken azure-cognitive-services symlinks

* fix(azure): restore Nov-2025 OpenAI cohort as deprecated

Azure schedule/retired-models pages do not list gpt-4-turbo or
gpt-3.5-turbo-0125/1106/instruct as Retired. OpenAI still serves the
turbo family (catalog marks deprecated). Restore these IDs with
status=deprecated instead of deleting, matching OpenAI catalog policy.

Keep o1-mini deleted (long shut down on OpenAI API).
2026-07-25 15:04:01 -05:00
github-actions[bot] fcf16dcf64 chore(sync): update Ambient model catalog (#3727)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-25 13:52:39 -05:00
github-actions[bot] 8a61715de2 chore(sync): update CrossModel model catalog (#3743)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-25 13:14:58 -05:00
github-actions[bot] 5d913d45eb chore(sync): update OpenRouter model catalog (#3723)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 20:26:19 -05:00
github-actions[bot]andAiden Cline b975c94c43 chore(sync): update LLM Gateway model catalog (#3724)
* chore(sync): update LLM Gateway model catalog

* fix(llmgateway): set opus-5 reasoning_options to match anthropic effort

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-24 14:22:20 -05:00
github-actions[bot] daafb34595 chore(sync): update Vercel AI Gateway model catalog (#3722)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 14:19:36 -05:00
m3 dac8dfdf3c feat(github-copilot): add Claude Opus 5 (#3720) 2026-07-24 14:19:25 -05:00
github-actions[bot] efa65bbef6 chore(sync): update Anthropic model catalog (#3725)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 14:19:15 -05:00
Aiden Cline f8ab14d0d5 chore(vertex): remove shut-down Claude 3.5 Haiku, deprecate open MaaS (#3721)
Delete claude-3-5-haiku@20241022 from google-vertex and
google-vertex-anthropic — partner model shut down 2026-07-05.

Mark open MaaS models deprecated (notice 2026-07-21, retire 2026-10-21)
that we still list and that remain serving until retirement.

Sources:
- https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/deprecations/partner-models
- https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/deprecations/open-models
2026-07-24 14:17:42 -05:00
Aiden Cline 2284981d9d fix(anthropic): factor base_model fields and preserve fast mode (#3718)
Models API has no fast-mode surface; keep authored experimental/provider.
Use factorBaseModel so attachment/reasoning/limit/modalities are not
rewritten when they already match models/ metadata.
2026-07-24 13:34:17 -05:00
github-actions[bot] 0f697e2027 chore(sync): update Weights & Biases model catalog (#3711)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 13:22:58 -05:00
github-actions[bot] b42b2c5a43 chore(sync): update EmpirioLabs AI model catalog (#3709)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 13:22:47 -05:00
github-actions[bot]andAiden Cline ee6c6dcf5f chore(sync): update Venice model catalog (#3712)
* chore(sync): update Venice model catalog

* fix(venice): factor claude-opus-5-fast onto base opus-5

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-24 13:22:37 -05:00
Frank 13f35a9f26 Merge branch 'dev' of github.com:anomalyco/models.dev into dev 2026-07-24 14:22:28 -04:00
github-actions[bot] 565cdf4e15 chore(sync): update Chutes model catalog (#3715)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 13:22:26 -05:00
github-actions[bot] 4dfe1920d5 chore(sync): update CrossModel model catalog (#3716)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 13:22:16 -05:00
Frank e3ae24cdd7 update zen models 2026-07-24 14:22:12 -04:00
Aiden Cline 617bba5ee3 fix(sync): factor Claude Opus fast variants onto base_model (#3717)
OpenRouter preserves fast variant names when stripping -fast to resolve
canonical metadata. Venice resolves -fast IDs/names to base model
metadata without hardcoding each alias. Fix openrouter opus-5-fast TOML.
2026-07-24 13:22:06 -05:00
github-actions[bot] 32ce0b9947 chore(sync): update OpenRouter model catalog (#3710)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 13:14:47 -05:00
github-actions[bot]andAiden Cline 44f2b60192 chore(sync): update Vercel AI Gateway model catalog (#3713)
* chore(sync): update Vercel AI Gateway model catalog

* fix(vercel): factor opus-5-fast onto base opus and match fable reasoning_options

Strip -fast when resolving canonical base models so Claude Opus fast
variants inherit models/ metadata. Set vercel opus-5 reasoning_options to
match fable (toggle + effort low/medium/high/xhigh).

* fix(vercel): match anthropic opus-5 effort-only reasoning_options

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-24 13:14:31 -05:00
Aiden Cline 91b5ee80f2 chore(bedrock): mark Claude Opus 4.1 as deprecated (#3708)
Bedrock moved Claude Opus 4.1 to Legacy on 2026-07-08 (EOL 2027-01-08).
Still serves traffic — mark status = "deprecated" on base and US variants.

Source: https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html
2026-07-24 13:06:16 -05:00
Aiden Cline 7be7cc0d3f fix(openai): remove shut-down models, mark upcoming deprecations (#3707)
OpenAI shut down several API models on 2026-07-23 (including
gpt-5.1-codex-mini from anomalyco/opencode#38665). Delete those from
providers/openai since they no longer serve traffic.

Mark models still available but scheduled for 2026-10-23 shutdown as
status = "deprecated".

Source: https://developers.openai.com/api/docs/deprecations
2026-07-24 12:36:19 -05:00
Aiden Cline 342b5572a0 feat: add Claude Opus 5 (#3706)
* feat: add Claude Opus 5 across Anthropic and cloud providers

Add Claude Opus 5 (claude-opus-5) released 2026-07-24: base metadata,
Anthropic API with effort + fast mode, Amazon Bedrock (global/US/EU/AU/JP),
Google Vertex, Azure Foundry, OpenCode, and GitHub Copilot.

* fix: drop Claude Opus 5 from opencode provider

Not confirmed supported on OpenCode yet.

* fix: drop Claude Opus 5 from github-copilot

Not listed in GitHub Copilot supported models yet.
2026-07-24 12:20:57 -05:00
github-actions[bot] 6ad4f0a5cd chore(sync): update OpenRouter model catalog (#3703)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 12:15:21 -05:00
github-actions[bot] ccc8c233a0 chore(sync): update Baseten model catalog (#3704)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 12:15:12 -05:00
Oliver Mee 8b351ba0bd fix(models): correct attachment on 3 multimodal models + qwen3.7-plus video input (#3705)
These three model files set attachment = false while their own description and
modalities.input both say the model is multimodal, so the flag contradicts the
record it sits next to:

- alibaba/qwen3.7-plus  - description: "Multimodal Qwen workhorse for long-context
  agents, visual inputs, and coding"; input = ["text", "image"]; attachment = false.
- alibaba/qwen3.6-plus  - description: "Earlier Qwen multimodal workhorse...";
  input = ["text", "image", "video"]; attachment = false.
- moonshotai/kimi-k2.5  - description: "...coding, and multimodal work";
  input = ["text", "image", "video"]; attachment = false.

Sibling models that are already correct (qwen3.8-max-preview, qwen3.6-flash,
kimi-k2.6, kimi-k2.7-code) all pair image/video input with attachment = true.
This change makes these three consistent with that convention and with their own
declared modalities.

qwen3.7-plus also gains "video" input. Its siblings qwen3.6-plus and qwen3.6-flash
already list video, its description says "visual inputs", and I verified it live:
against the Alibaba/Qwen Cloud Token Plan gateway (Singapore, 2026-07-24)
qwen3.7-plus accepted a real image and a 10-second video and described both
correctly, on the same endpoint where the text-only sibling qwen3.7-max returns
"Unexpected item type in content".

bun validate passes; git diff --check clean. Only attachment (x3) and one
modalities.input line changed.
2026-07-24 12:14:33 -05:00
github-actions[bot] 712d41fa7c chore(sync): update Ambient model catalog (#3351)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:11:41 -05:00
github-actions[bot] ce4d097c49 chore(sync): update EmpirioLabs AI model catalog (#3359)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:11:27 -05:00
PedroACosta 0b14c410cf feat(dinference): add GLM-5.2 model (#3378) 2026-07-24 10:11:13 -05:00
github-actions[bot] 7dc6b8def4 chore(sync): update Google model catalog (#3687)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:10:42 -05:00
github-actions[bot] dd79e60e32 chore(sync): update OpenRouter model catalog (#3684)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:10:14 -05:00
github-actions[bot] 04ca479ae4 chore(sync): update Vercel AI Gateway model catalog (#3685)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:10:02 -05:00
AlexandCursor a822bef6cd Add Baseten provider entry for GLM 5.2 Fast (#3688)
Document zai-org/GLM-5.2-Fast pricing and limits alongside the existing GLM 5.2 entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 10:09:43 -05:00
github-actions[bot] 1b69a9c4ca chore(sync): update xAI model catalog (#3692)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:09:27 -05:00
github-actions[bot] 7d63db3d45 chore(sync): update Venice model catalog (#3689)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:09:15 -05:00
Oliver Mee cdf538ad29 fix(alibaba-token-plan): correct model capabilities and limits against the live gateway, add HappyHorse video (#3695)
* fix(alibaba-token-plan): correct capabilities and limits against the live gateway

Probed the Token Plan gateway directly (2026-07-24); several values were wrong
in both region providers:

- kimi-k2.5/k2.6: drop base_model_omit=["structured_output"] — the gateway
  accepts response_format json_schema on both.
- kimi-k2.6: remove the [limit] output=16_384 override (inherits base 262_144).
  A max_tokens=17,000 request truncated at exactly 17,000 (finish_reason=length)
  and a real run emitted 33,718 tokens (finish_reason=stop), disproving the
  console/price-sheet "16K". max_tokens accepts up to 262,144, rejects 262,145.
- kimi-k2.5: [limit] output 32_768 -> 98_304 (its enforced max_tokens ceiling).
- qwen3.8-max-preview, qwen3.7-max, qwen3.7-plus, qwen3.6-plus, glm-5: add
  structured_output=true (json_schema works though base/console report none;
  qwen3.6-plus gained json_schema since the 2026-07-17 probe, matching flash).
- qwen3.7-max/plus, qwen3.6-plus/flash: add [interleaved] reasoning_content.
- deepseek-v4-pro/flash: add cache_write=0.

Citations are in each file's leading comment block.

* feat(alibaba-token-plan): add HappyHorse 1.1 video models (both regions)

happyhorse-1.1-{t2v,i2v,r2v} are Token Plan supported models served on the async
video-synthesis endpoint (POST .../api/v1/services/aigc/video-generation/
video-synthesis, X-DashScope-Async), not the OpenAI-compatible /models list.
Entitlement confirmed live 2026-07-24 on both tiers (Personal and Team keys each
accepted a t2v job: task_id + PENDING->RUNNING). Credit-billed, so cost is 0.

* fix(alibaba-token-plan): attachment=true on image-input HappyHorse models

The reviewer bot correctly flagged happyhorse-1.1-i2v and -r2v: they take an
image as input, so attachment should be true, not false. Consumers that gate
image upload on attachment would otherwise treat them as text-only. t2v stays
false (text input only).

* fix(alibaba-token-plan): happyhorse i2v takes image + text prompt

The Alibaba image-to-video API takes an image (anchors the first frame) plus a
text prompt (drives the motion), so input is ["image", "text"], not ["image"]
alone. This matches sibling r2v. Confirmed against the HappyHorse i2v API docs.

* fix(alibaba-token-plan): correct four more capabilities/limits vs live gateway

Re-probing the full chat catalogue on 2026-07-24 surfaced four values the
providers still got wrong. All verified by probing the live gateway directly.

- kimi-k2.7-code: drop base_model_omit = ["structured_output"]. The gateway now
  honours a strict response_format json_schema (a strict-schema request returned
  exactly {"name":"Alice","age":30} with finish_reason=stop, with and without the
  "json" keyword), so inheriting the base model's structured_output = true is
  correct. This capability was absent at the earlier probe and has since appeared.
- qwen3.7-max: add [limit] output = 131_072. The gateway accepts max_tokens up to
  131,072 and rejects 131,073 - double the inherited 65,536 and double its sibling
  qwen3.7-plus, so the inherited value under-reports by half.
- qwen3.7-plus: add [limit] output = 65_536. The gateway accepts max_tokens up to
  65,536 and rejects 65,537; the inherited model-metadata value is 64,000.
- MiniMax-M2.5: [limit] output 24_576 -> 32_768, its enforced max_tokens ceiling
  (accepts 32,768, rejects 32,769). structured_output stays absent: a json_schema
  request came back wrapped in markdown fences, i.e. free-form, not enforced.

Both region providers updated identically. Sources cited in each file header.

* fix(alibaba-token-plan): qwen3.6 thinking_budget max 81_920 -> 131_072

The gateway enforces a thinking_budget ceiling of 131,072 on qwen3.6-plus and
qwen3.6-flash (probed 2026-07-24: max_tokens/thinking_budget accepts 131,072 and
rejects 131,073). Alibaba's docs state 81,920, but the live gateway accepts up to
131,072, so the documented figure under-reports the real limit. Both region
providers updated; the leading comment records the doc-vs-gateway difference.
2026-07-24 10:08:51 -05:00
github-actions[bot] 317bf46e4c chore(sync): update Chutes model catalog (#3700)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 10:08:13 -05:00
Derzsi Dániel 4c4cb5c8c7 feat: add Hetzner provider (#3701)
* feat: add Hetzner provider

* fix: Hetzner provider cannot disable reasoning, can only use text/image for Qwen3.6 input
2026-07-24 10:07:56 -05:00
Jetha ChanandClaude Fable 5 2e815adfbb Add ai& provider (#3327)
* Add ai& provider

ai& (https://aiand.com) serves open-weight LLMs through an OpenAI-compatible
API at https://api.aiand.com/v1, authenticated with a standard Bearer
AIAND_API_KEY. Adds the provider plus 9 models verified against ai&'s live
catalog page (https://docs.aiand.com/models/catalog/): openai/gpt-oss-120b,
qwen/qwen3.6-27b, deepseek-ai/deepseek-v4-flash, deepseek-ai/deepseek-v4-pro,
google/gemma-4-31b-it, moonshotai/kimi-k2.6, moonshotai/kimi-k2.7-code,
zai-org/glm-5.1, and zai-org/glm-5.2. Each entry reuses existing shared model
metadata via base_model and overrides only cost (and, where confirmed,
modalities) with figures read from the live catalog table and JSON examples.
reasoning_options on every model mirrors the reasoning_effort values ai&'s
own Chat Completions docs list (none/minimal/low/medium/high/xhigh).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Verify ai& models against live API and docs; fix modalities and context

- gemma-4-31b-it: image, video, and PDF input all verified by direct
  probe (PDF via Files API purpose=document, referenced by file_id;
  ai& rasterizes PDFs to per-page images server-side). Add pdf modality.
- kimi-k2.7-code: video input rejected by the API; image and PDF
  verified. Override modalities to text+image+pdf.
- kimi-k2.6: catalog lists vision+document without video; same override
  (org-scoped access prevented a runtime probe).
- qwen3.6-27b: image input rejected by the API; override modalities to
  text-only.
- deepseek-v4-flash/-pro, glm-5.2: GET /v1/models reports
  context_window 1048576; override the base models' rounded 1_000_000.

Prices remain the catalog's public USD list prices. Per-org /v1/models
pricing is denominated in the org's billing currency, and cached-input
rates have no public USD listing, so cache_read stays omitted.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Address review action items: logo, attachment, reasoning_options, glm-5.1

- Add providers/aiand/logo.svg: official ai& wordmark converted to
  currentColor with no fixed size, centered in a square viewBox.
- qwen3.6-27b: set attachment = false to match the text-only modalities.
- reasoning_options verified per model by live probe (all six documented
  values plus an invalid negative control against each accessible model):
  - gpt-oss-120b narrowed to low/medium/high; the backend 400s "none",
    "minimal", and "xhigh" ("Supported values are: high, medium, low").
  - deepseek-v4-flash/-pro, gemma-4-31b-it, kimi-k2.7-code, qwen3.6-27b,
    glm-5.2 accept all six; invalid values 400. Spot-checked meaningful:
    effort "none" emits no reasoning content, "high" does.
  - kimi-k2.6 and glm-5.1 are org-scoped and not probeable with our key;
    reasoning_options set to [] rather than assumed, per review guidance.
- glm-5.1: documented why context stays inherited (catalog rounds to
  "203K"; exact context_window only visible to orgs with model access).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-24 10:07:06 -05:00
Jack 7894073d7d Merge pull request #3698 from 7Sageer/feat/kimi-for-coding-k3-256k
feat(kimi-for-coding): add k3-256k model
2026-07-24 19:59:28 +08:00
7Sageer b5d64935a1 feat(kimi-for-coding): add k3-256k model 2026-07-24 19:43:47 +08:00
Jack d2f42e9fb6 add reasoning effort to ling-3.0-flash-free on opencode zen & openrouter 2026-07-24 16:00:17 +08:00
github-actions[bot]andAiden Cline 4ed6341d04 fix: [missing-model] xai: grok-imagine-video-1.5 (#3653)
* fix: [missing-model] xai: grok-imagine-video-1.5

* fix: inherit Grok Imagine Video metadata

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-23 21:58:12 -05:00
Jack 1111c28f60 add ling-3.0-flash-free to opencode go 2026-07-24 10:13:46 +08:00
github-actions[bot] 98657bdc55 fix: [missing-model] google: lyria-3-clip-preview (#3680)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:52 -05:00
github-actions[bot] ebcf28f7be fix: [missing-model] google: veo-3.1-fast-generate-preview (#3679)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:49 -05:00
github-actions[bot] 2bcedfddcb fix: [missing-model] google: lyria-3-pro-preview (#3678)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:45 -05:00
github-actions[bot] 63f35780d3 fix: [missing-model] google: gemini-3.1-flash-live-preview (#3677)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:41 -05:00
github-actions[bot] c83101b6b0 fix: [missing-model] google: gemini-2.5-computer-use-preview-10-2025 (#3673)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:38 -05:00
github-actions[bot] d84194b62d fix: [missing-model] google: gemini-3.1-flash-lite-image (#3671)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:34 -05:00
github-actions[bot] eed1ca26ab fix: [missing-model] google: veo-3.1-lite-generate-preview (#3669)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:30 -05:00
github-actions[bot]andAiden Cline 5fd1300905 fix: [missing-model] google: deep-research-max-preview-04-2026 (#3667)
* fix: [missing-model] google: deep-research-max-preview-04-2026

* fix: inherit Deep Research Max metadata

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-23 18:30:27 -05:00
github-actions[bot] 3263d558f3 fix: [missing-model] google: gemini-3.5-live-translate-preview (#3664)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:23 -05:00
github-actions[bot]andAiden Cline f133b51d55 fix: [missing-model] google: veo-3.1-generate-preview (#3662)
* fix: [missing-model] google: veo-3.1-generate-preview

* fix: inherit Veo metadata

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-23 18:30:20 -05:00
github-actions[bot]andAiden Cline c744edfc3c fix: [missing-model] google: deep-research-preview-04-2026 (#3661)
* fix: [missing-model] google: deep-research-preview-04-2026

* fix: inherit Deep Research metadata

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-23 18:30:16 -05:00
github-actions[bot] e4f8447930 fix: [missing-model] google: gemini-embedding-2 (#3660)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:12 -05:00
github-actions[bot]andAiden Cline 22e4bf2620 fix: [missing-model] google: gemini-robotics-er-1.6-preview (#3659)
* fix: [missing-model] google: gemini-robotics-er-1.6-preview

* fix: declare Robotics reasoning toggle

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-23 18:30:08 -05:00
github-actions[bot] 4c2589610b fix: [missing-model] google: gemini-3-pro-image (#3658)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:30:04 -05:00
github-actions[bot]andAiden Cline 39f13cbe92 fix: [missing-model] google: gemini-3.1-flash-tts-preview (#3655)
* fix: [missing-model] google: gemini-3.1-flash-tts-preview

* fix: inherit Gemini TTS metadata

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-23 18:30:01 -05:00
github-actions[bot] cbecae3f83 fix: [missing-model] google: gemini-3.1-flash-image (#3654)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 18:29:57 -05:00
Aiden Cline 573c757bd2 fix(sync): disable Google missing-model tracking (#3686) 2026-07-23 18:24:31 -05:00
Aiden Cline 8735bc603b fix(sync): dispatch missing models to issue fixer (#3652) 2026-07-23 17:05:29 -05:00
github-actions[bot] 6b1c5b0814 chore(sync): update OpenRouter model catalog (#3430)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 16:54:01 -05:00
Aiden Cline f5ce9c666f fix(sync): stop unreliable missing-model issue spam (#3651) 2026-07-23 16:46:15 -05:00
Aiden Cline d3498a124c Merge pull request #3490 from rorynolan/fix-fireworks-minimax-m3-modalities
fix(fireworks-ai): mark MiniMax-M3 as multimodal (text, image, video)
2026-07-23 16:01:58 -05:00
Rory Nolan 06af063255 fix(fireworks-ai): mark MiniMax-M3 as multimodal (text, image, video)
Fireworks and MiniMax both document MiniMax-M3 as natively multimodal, and
every other provider entry for this model lists image (and usually video)
input. The fireworks-ai entry lists input = ["text"] only, so downstream
clients (e.g. opencode) refuse image input for this model ("Image read not
supported by this model") even though the Fireworks API accepts and correctly
interprets images. Align modalities.input with the model's actual capability.
2026-07-23 13:13:34 -07:00
Aiden Cline 9e9d1e7208 Merge pull request #3406 from anomalyco/automation/sync-models-chutes
chore(sync): update Chutes model catalog
2026-07-23 14:53:37 -05:00
github-actions[bot] 824e1f14d1 chore(sync): update Chutes model catalog 2026-07-23 19:46:54 +00:00
Aiden Cline 31ac5f5ef1 Merge pull request #3387 from anomalyco/automation/sync-models-crossmodel
chore(sync): update CrossModel model catalog
2026-07-23 14:24:36 -05:00
Aiden Cline 5c92290660 fix(crossmodel): add hy3 reasoning_options effort none|low|high
Match hy3-preview and upstream Hy3 reasoning_effort (no_think→none, low, high).
2026-07-23 14:23:25 -05:00
Aiden Cline 39f788d5e5 Merge pull request #3407 from anomalyco/automation/sync-models-baseten
chore(sync): update Baseten model catalog
2026-07-23 14:20:46 -05:00
Aiden Cline 5262d3c98f Merge pull request #3408 from anomalyco/automation/sync-models-venice
chore(sync): update Venice model catalog
2026-07-23 14:20:35 -05:00
Aiden Cline 273ab770f5 Merge pull request #3409 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-07-23 14:20:26 -05:00
Aiden Cline 9053be3218 Merge pull request #3389 from anomalyco/feat/sync-open-issues-for-missing
feat(sync): open deduped GitHub issues for missing models
2026-07-23 14:20:10 -05:00
github-actions[bot] 2f06d99dcc chore(sync): update OpenRouter model catalog 2026-07-23 18:42:13 +00:00
github-actions[bot] 97851e4021 chore(sync): update CrossModel model catalog 2026-07-23 18:42:10 +00:00
github-actions[bot] 09c5d27354 chore(sync): update Venice model catalog 2026-07-23 18:42:10 +00:00
github-actions[bot] 78acd348c7 chore(sync): update Baseten model catalog 2026-07-23 18:42:09 +00:00
Aiden Cline 28d474d5b2 fix(sync): guarantee xAI alias marker is internal; annotate issue-open failures
- Strip API-provided canonical_id from top-level xAI rows in parseModels
  so sourceID's silent-skip marker can only be set by the synthetic alias
  expansion; an API row carrying canonical_id would otherwise suppress a
  genuinely missing model with no signal
- Emit a ::error:: workflow annotation when opening missing-model issues
  fails in Actions, so broken tokens or a full dedupe window are visible
  on green no-change runs
2026-07-23 13:07:53 -05:00
Aiden Cline 8b50f98de3 fix(sync): harden missing-model issue dedupe and label failures
- Fail closed with a clear error when gh label create fails, instead of
  surfacing one opaque issue-create error per model
- Raise the dedupe list window to 1000 and refuse to create issues when
  the window is full, since older closed titles could be truncated and
  create duplicates
- Document the accepted one-time first-run issue volume for skipCreates
  providers in sync.md
2026-07-23 12:36:36 -05:00
Aiden Cline 759ea015b2 fix(sync): do not open missing-model issues for xAI alias IDs
Alias rows expanded in parseModels exist only to update already-cataloged
alias TOMLs. Their canonical row carries the missing-model signal, so
sourceID now returns undefined for alias rows and the sync runner skips
undefined source IDs, preventing false-positive [missing-model] issues
like 'xai: <model>-latest' for models cataloged under canonical IDs.
2026-07-23 12:17:15 -05:00
Aiden Cline 5c3c6c76ff Merge pull request #3391 from anomalyco/automation/sync-models-llmgateway
chore(sync): update LLM Gateway model catalog
2026-07-23 11:33:43 -05:00
Aiden Cline 6301a767ef fix(llmgateway): document toggle/effort API syntax in comments
Add exact request-field syntax next to reasoning_options so callers
know how to disable or set effort via the gateway.
2026-07-23 11:30:10 -05:00
Aiden Cline 0360a1d239 fix(llmgateway): correct reasoning_options on synced models
Audit PR #3391 model reasoning controls against LLM Gateway docs and
/v1/models providers[].reasoning_efforts.
2026-07-23 11:25:38 -05:00
Aiden Cline 44c89b7256 Merge pull request #3402 from tonimelisma/agent/fix-thinking-machines-inkling
fix(thinkingmachines): correct Inkling endpoint, IDs, and variants
2026-07-23 11:17:56 -05:00
Aiden Cline 168230d28a Merge pull request #3393 from anomalyco/automation/sync-models-vercel
chore(sync): update Vercel AI Gateway model catalog
2026-07-23 11:17:38 -05:00
Aiden Cline 06e16ed3db Merge pull request #3396 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-07-23 11:14:30 -05:00
github-actions[bot] d69212b0c1 chore(sync): update Vercel AI Gateway model catalog 2026-07-23 15:55:27 +00:00
github-actions[bot] e8f9c6f2ea chore(sync): update OpenRouter model catalog 2026-07-23 15:55:25 +00:00
github-actions[bot] d2c944568a chore(sync): update LLM Gateway model catalog 2026-07-23 15:55:24 +00:00
Toni Melisma 023a01a015 fix Thinking Machines Inkling metadata 2026-07-22 22:46:31 -07:00
Aiden Cline cd925adab8 refactor(sync): simplify missing-model issues and fix ops hazards
- Shrink helper to title-based dedupe (open+closed); drop marker parser
- Opt-in openIssues (=== true); enable only under GITHUB_ACTIONS by default
- Issue-fixer skips [missing-model] titles (hand-authored metadata only)
- Docs match the leaner behavior
2026-07-22 23:19:59 -05:00
Aiden Cline 4a14b64ce3 Merge pull request #3254 from celeste1900/add-ofox-13models
feat(ofox): add Ofox provider (13 top-tier models)
2026-07-22 22:36:15 -05:00
Aiden Cline e8e0057b12 test(sync): drop missing-model issue unit tests
gh-backed issue opens are operational glue; keep the suite focused on catalog sync.
2026-07-22 22:24:33 -05:00
celeste1900 6f3ae40ade fix(ofox): declare reasoning_options — provider forwards native reasoning params across all three protocols 2026-07-23 10:56:28 +08:00
Aiden Cline 3e4aae9ab7 fix(sync): harden missing-model GitHub issue opens
- Parse marker null-safely; only accept double-quoted JSON attrs
- Dedupe via labeled issue list + in-memory match (fail closed on list errors)
- Per-model create errors keep notices; ensureLabel checks exit code
- Open issues by default only in CI; require --open-issues locally
- Pass GH_TOKEN to the sync workflow step so hourly runs can create issues
2026-07-22 20:54:32 -05:00
Aiden Cline 76c38ce9c4 Merge pull request #3397 from skaldebane/poolside-logo
feat(poolside): add poolside lab description and logo
2026-07-22 20:52:17 -05:00
Aiden Cline 46343b601a Merge pull request #3399 from anomalyco/issue-3398
fix: cline-pass/kimi-k3 is missing from the ClinePass provider page
2026-07-22 20:52:05 -05:00
Aiden Cline 0ff5e36ef7 refactor(sync): drop openIssuesForMissing; skipCreates opens issues
skipCreates already means we won't auto-create TOMLs, so missing remote
models should always open deduped GitHub issues. One flag is enough.
2026-07-22 20:23:06 -05:00
github-actions[bot] 8d4fe2543e fix: cline-pass/kimi-k3 is missing from the ClinePass provider page 2026-07-22 23:41:34 +00:00
Houssam Elbadissi 0e4381d2a9 feat(poolside): add poolside lab description and logo 2026-07-22 23:19:05 +01:00
Aiden Cline 40efa93574 Merge pull request #3392 from anomalyco/automation/sync-models-venice
chore(sync): update Venice model catalog
2026-07-22 15:36:29 -05:00
Aiden Cline 8b8c8b3d09 Merge pull request #3394 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-07-22 15:36:19 -05:00
Aiden Cline c945a5f2cc Merge pull request #3395 from skaldebane/poolside-update
feat(poolside): add laguna-s-2.1, remove laguna-xs.2
2026-07-22 15:36:08 -05:00
github-actions[bot] 05536f4034 chore(sync): update OpenRouter model catalog 2026-07-22 19:46:28 +00:00
github-actions[bot] 6d6bd2c0b8 chore(sync): update Venice model catalog 2026-07-22 19:46:25 +00:00
Houssam Elbadissi 4a2080e2bc fix(poolside): add reasoning toggle to poolside provider models 2026-07-22 20:10:35 +01:00
Houssam Elbadissi 0a71b251c4 feat(poolside): add laguna-s-2.1, remove laguna-xs.2 2026-07-22 19:51:54 +01:00
Aiden Cline 5b2e20cdea feat(sync): open deduped GitHub issues for missing models
Add openIssuesForMissing for providers that cannot auto-create TOMLs.
Each skipped remote model ID opens one labeled issue with a stable
title/marker so reruns do not duplicate, and the issue fixer can PR adds.
2026-07-22 13:25:15 -05:00
Aiden Cline f63b5ce78d Merge pull request #3386 from davidcharbonnier/dev
feat(google-vertex): add gemini 3.6 flash and 3.5 flash lite models
2026-07-22 12:55:20 -05:00
Aiden Cline 2346146631 fix(google-vertex): align Gemini 3.6/3.5 Flash Lite costs with pricing
Drop incorrect cost.reasoning and cache_write fields. Thinking tokens are
billed as output; Vertex lists no per-token cache write for these models.
Match sibling google/vertex configs and add pricing/docs citations.
2026-07-22 12:53:41 -05:00
David Charbonnier 93316c1f9a feat(google-vertex): add gemini 3.6 flash and 3.5 flash lite models 2026-07-22 12:53:32 -05:00
Aiden Cline 5aef4ad9e9 Merge pull request #3358 from anomalyco/automation/sync-models-vercel
chore(sync): update Vercel AI Gateway model catalog
2026-07-22 12:51:09 -05:00
Aiden Cline 86eb924115 fix(vercel): set reasoning_options for laguna-s-2.1 and hy3
Laguna S 2.1 exposes per-request thinking via enable_thinking (toggle).
Hy3 exposes reasoning_effort no_think|low|high (mapped to none|low|high).
2026-07-22 12:49:33 -05:00
Aiden Cline d0ac7a447b Merge pull request #3377 from anomalyco/automation/sync-models-huggingface
chore(sync): update Hugging Face model catalog
2026-07-22 12:47:13 -05:00
Aiden Cline 7f98a9100b Merge pull request #3375 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-07-22 12:46:13 -05:00
Aiden Cline e0b2ffde94 fix(huggingface): restore MiMo reasoning_options after sync wipe
Toggle via reasoning.enabled; effort via reasoning_effort
(none|low|medium|high|xhigh). Top-of-file comments document wire format.
2026-07-22 12:45:48 -05:00
github-actions[bot] 23053dfabb chore(sync): update Hugging Face model catalog 2026-07-22 17:44:33 +00:00
github-actions[bot] 5423b5ac78 chore(sync): update Vercel AI Gateway model catalog 2026-07-22 17:44:31 +00:00
github-actions[bot] e3ee48788b chore(sync): update OpenRouter model catalog 2026-07-22 17:44:27 +00:00
Jack b013d94872 add hy3 to go 2026-07-23 00:36:51 +08:00
Aiden Cline 5736bbd70d Merge pull request #3380 from doedja/chore/kenari-catalog-refresh
chore(kenari): refresh model catalog to current live endpoint
2026-07-22 10:07:01 -05:00
Aiden Cline dc1e4c8620 Merge pull request #3385 from anomalyco/fix/pr-3384-cortecs-hy3
fix(cortecs): add Hy3 via tencent base_model
2026-07-22 10:05:09 -05:00
Aiden Cline 8f12116a06 docs(agents): require catalog costs in USD per million tokens 2026-07-22 10:02:21 -05:00
Aiden Cline d86fb803b6 fix(cortecs): convert Hy3 costs from EUR to USD
Cortecs API returns EUR; catalog schema requires USD per 1M tokens.
2026-07-22 10:01:08 -05:00
Aiden Cline e3b1a320c9 fix(cortecs): add Hy3 via tencent base_model
PR #3384 was incomplete (missing required fields, wrong model id).
Add models/tencent/hy3.toml and wire Cortecs/OpenRouter/TokenHub/Token
Plan through base_model so Tencent lab metadata is shared.
2026-07-22 09:56:31 -05:00
Snat3r a2bf402116 Create tencent-hy3.toml for Tencent Hy3 model
Add configuration for Tencent Hy3 model with options.
2026-07-22 16:51:29 +02:00
Nur Ad-Duja 83040e034b chore(kenari): refresh model catalog to live /v1/models
Adds 18 models and removes 3 no longer served, generated by running the
kenari sync adapter (PR #3171) against the current dev branch. Cost stays
0 by policy (IDR prepaid wallet), reasoning_options come verbatim from
the endpoint.
2026-07-22 21:05:46 +07:00
Aiden Cline 387f25aa5b Merge pull request #3363 from anomalyco/automation/sync-models-venice
chore(sync): update Venice model catalog
2026-07-22 00:06:13 -05:00
Aiden Cline 963dc16868 Merge pull request #3368 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-07-22 00:06:00 -05:00
Aiden Cline 708341dba2 Merge pull request #3374 from anomalyco/explore/ci-automation-models
chore(ci): switch automation models to opencode/grok-4.5
2026-07-22 00:05:46 -05:00
Aiden Cline ddc2a950f3 chore(ci): switch automation models to opencode/grok-4.5
Use grok-4.5 for opencode comments, CI fixer, issue fixer, and PR reviewer.
2026-07-22 00:04:36 -05:00
github-actions[bot] 889bd835ca chore(sync): update Venice model catalog 2026-07-22 03:24:04 +00:00
github-actions[bot] 6ff3db4e81 chore(sync): update OpenRouter model catalog 2026-07-22 03:24:04 +00:00
celeste1900 d6ef5792fc feat(ofox): add Ofox provider with 13 top-tier models 2026-07-14 18:22:28 +08:00
705 changed files with 8481 additions and 2140 deletions

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ jobs:
Failed log excerpt:
EOF
cat "$LOG_FILE"
} | opencode run --agent ci-fixer -m opencode/glm-5.2 | tee "$RESPONSE_FILE"
} | opencode run --agent ci-fixer -m opencode/grok-4.5 | tee "$RESPONSE_FILE"
- name: Check changed paths
if: steps.budget.outputs.run == 'true' && steps.budget-cache.outputs.cache-hit != 'true'
+29 -19
View File
@@ -3,23 +3,28 @@ name: Issue Fixer
on:
issues:
types: [opened]
repository_dispatch:
types: [missing-model]
permissions:
contents: write
issues: write
pull-requests: write
concurrency: issue-fixer-${{ github.event.issue.number }}
concurrency: issue-fixer-${{ github.event.issue.number || github.event.client_payload.issue_number }}
jobs:
fix:
if: github.repository == 'anomalyco/models.dev'
if: >-
github.repository == 'anomalyco/models.dev'
&& !contains(github.event.issue.labels.*.name, 'provider:openai')
&& !contains(github.event.issue.labels.*.name, 'provider:pioneer')
&& github.event.client_payload.provider != 'openai'
&& github.event.client_payload.provider != 'pioneer'
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_NUMBER: ${{ github.event.issue.number || github.event.client_payload.issue_number }}
steps:
- name: Checkout code
@@ -27,6 +32,13 @@ jobs:
with:
ref: dev
- name: Load issue
run: |
set -euo pipefail
ISSUE_FILE="$RUNNER_TEMP/issue.json"
gh issue view "$ISSUE_NUMBER" --json number,title,body,labels > "$ISSUE_FILE"
echo "ISSUE_FILE=$ISSUE_FILE" >> "$GITHUB_ENV"
- name: Install opencode
run: curl -fsSL https://opencode.ai/install | bash
@@ -38,22 +50,19 @@ jobs:
set -euo pipefail
EVENTS_FILE="$RUNNER_TEMP/issue-fixer-events.jsonl"
RESPONSE_FILE="$RUNNER_TEMP/issue-fixer-response.md"
PROMPT_FILE="$RUNNER_TEMP/issue-fixer-prompt.md"
echo "RESPONSE_FILE=$RESPONSE_FILE" >> "$GITHUB_ENV"
opencode run --agent issue-fixer -m opencode/glm-5.2 --format json <<EOF | tee "$EVENTS_FILE"
A new GitHub issue was opened in anomalyco/models.dev.
jq -r '
"A new GitHub issue was opened in anomalyco/models.dev.\n\n"
+ "Issue #\(.number): \(.title)\n\n"
+ "Body:\n" + (.body // "") + "\n\n"
+ "Decide whether this is an actionable model catalog data fix.\n\n"
+ "If it asks for a model to be added or for factual model/provider metadata to be corrected, make the minimal TOML changes in the repository. Do not use Bash. Do not create branches, commits, comments, or pull requests yourself.\n\n"
+ "If it is a feature request, a request to track a new kind of information, a question, or any miscellaneous non-catalog-data request, do not edit files. Respond briefly that it needs maintainer review and no automated fix was opened."
' "$ISSUE_FILE" > "$PROMPT_FILE"
Issue #$ISSUE_NUMBER: $ISSUE_TITLE
Body:
$ISSUE_BODY
Decide whether this is an actionable model catalog data fix.
If it asks for a model to be added or for factual model/provider metadata to be corrected, make the minimal TOML changes in the repository. Do not use Bash. Do not create branches, commits, comments, or pull requests yourself.
If it is a feature request, a request to track a new kind of information, a question, or any miscellaneous non-catalog-data request, do not edit files. Respond briefly that it needs maintainer review and no automated fix was opened.
EOF
opencode run --agent issue-fixer -m opencode/grok-4.5 --format json < "$PROMPT_FILE" | tee "$EVENTS_FILE"
if ! jq -ers 'map(select(.type == "text") | .part.text) | last | select(length > 0)' "$EVENTS_FILE" > "$RESPONSE_FILE"; then
echo "Issue fixer did not produce a final response." >&2
@@ -74,9 +83,10 @@ jobs:
- name: Create pull request
if: success()
env:
BRANCH: issue-${{ github.event.issue.number }}
BRANCH: issue-${{ github.event.issue.number || github.event.client_payload.issue_number }}
run: |
set -euo pipefail
ISSUE_TITLE="$(jq -r .title "$ISSUE_FILE")"
if [ -z "$(git status --porcelain)" ]; then
if [ -s "$RESPONSE_FILE" ]; then
+1 -1
View File
@@ -27,4 +27,4 @@ jobs:
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
with:
model: opencode/gpt-5.5
model: opencode/grok-4.5
+1 -1
View File
@@ -60,7 +60,7 @@ jobs:
RESPONSE_FILE="$RUNNER_TEMP/pr-reviewer-response.md"
echo "RESPONSE_FILE=$RESPONSE_FILE" >> "$GITHUB_ENV"
opencode run --agent pr-reviewer -m opencode/glm-5.2 --format json <<'EOF' | tee "$EVENTS_FILE"
opencode run --agent pr-reviewer -m opencode/grok-4.5 --format json <<'EOF' | tee "$EVENTS_FILE"
Review this pull request using the trusted reviewer instructions. Start with `.pr-review/pull-request.json`, `.pr-review/diff.patch`, `AGENTS.md`, and the contributing guidance in `README.md`. Read `sync.md`, the reasoning-options audit guide, schema code, and nearby base-revision files when relevant to the changed files. Use only the read, glob, and grep tools. Return only the final review comment in the agent's required output format. Never include progress narration or passed-check summaries.
EOF
+2
View File
@@ -63,6 +63,7 @@ jobs:
- name: Sync model catalogs
run: bun models:sync ${{ matrix.provider }}
env:
GH_TOKEN: ${{ github.token }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
BASETEN_API_KEY: ${{ secrets.BASETEN_API_KEY }}
DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_API_KEY }}
@@ -73,6 +74,7 @@ jobs:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
VENICE_API_KEY: ${{ secrets.VENICE_API_KEY }}
LLMGATEWAY_API_KEY: ${{ secrets.LLMGATEWAY_API_KEY }}
MERGE_GATEWAY_API_KEY: ${{ secrets.MERGE_GATEWAY_API_KEY }}
KILO_API_KEY: ${{ secrets.KILO_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
+2
View File
@@ -38,6 +38,8 @@ For model catalog changes, enforce these review rules:
- Treat a missing compliant logo for a new provider as a merge blocker. The SVG must use `currentColor`, have no fixed size or hardcoded color, and preferably use a square `viewBox`.
- Treat duplicated provider-agnostic metadata as a merge blocker when a matching `models/<provider>/<model>.toml` exists; the provider entry must use `base_model` and retain only provider-specific fields and overrides.
- Treat missing `reasoning_options` on `reasoning = true` provider models as a merge blocker. Options describe controls exposed by that inference provider, not merely by the upstream model. An empty array is correct when reasoning exists but no caller control is verified.
- Before reporting a `reasoning_options` problem, compare the proposed model with existing entries for the same underlying model that use a comparable request surface. Determine that surface from the effective `npm`, provider API shape, and any model-level provider override—not from the model family alone. Prefer native-provider examples when the target uses the native SDK (for example, an Anthropic model through `@ai-sdk/anthropic` should be compared with the Anthropic provider). Prefer established OpenAI-compatible gateway examples when the target uses an OpenAI-compatible chat-completions surface (for example, Cloudflare AI Gateway may be usefully compared with OpenRouter). Do not compare a native Anthropic route with an OpenAI-compatible gateway as though their controls were interchangeable.
- Use those peer entries as required review context, not as values to copy mechanically or as standalone proof. Consistent same-model, same-surface examples make a proposed option more plausible and help identify likely omissions or contradictions; target-provider documentation, endpoint metadata, adapter behavior, or reproduced requests still override peer precedent. A lack of bespoke provider documentation is not by itself an action item when the target surface and strong peer examples support the proposal and the diff contains no concrete contradictory evidence. Conversely, do not accept or reject `reasoning_options = []` mechanically: explain the specific mismatch with the target API shape or comparable providers before requesting a change.
- Do not treat absence of a sync module as a blocker. Recommend one only when a context-rich provider API can authoritatively populate model data or delete models no longer served.
- Data-changing PRs should cite direct provider pricing, model documentation, or API references in the PR body. Missing citations are not by themselves a merge blocker, but should be reported as a low-severity request for evidence when material factual changes otherwise cannot be reviewed. Prefer first-party sources and require each citation to state what it supports.
- You cannot fetch citation URLs. Assess whether citations are present, direct, and mapped to claims, but never claim you opened a URL or verified its contents. A URL or PR assertion alone does not prove a disputed value.
+3
View File
@@ -119,6 +119,9 @@ items are **hard blockers**; the last two are **strongly recommended** but not b
- Latest/undated models: `@default` (`claude-opus-4-6@default.toml`)
### Cost Schema
- **All `cost` values are USD per million tokens.** Never publish EUR, CNY, or other currencies.
If a provider API or pricing page quotes another currency, convert to USD before writing the
TOML and note the source rate/date in a top-of-file comment.
- `cost.context_over_200k` is a nested `Cost` object for >200K token pricing
- Cache pricing ratios: standard models use 10%/125% (read/write), regional variants may use 30%/375%
+1
View File
@@ -0,0 +1 @@
description = "Poolside builds open-weight foundation models and the systems that refine and improve them."
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" fill="currentColor">
<path d="m35.959 121.526c-11.8772-5.794-21.5249-14.947-27.90834-26.4686-6.23593-11.2582-8.930092-23.9574-7.798832-36.7265.256124-2.8615 2.777032-4.9741 5.639732-4.7214 2.85734.2545 4.97334 2.7778 4.72074 5.641-.94779 10.6955 1.3128 21.3362 6.538 30.7705 4.4985 8.1229 10.9417 14.84 18.8061 19.656l24.4606-50.1633c-9.5744-3.1888-17.5492-1.8007-18.2669-1.6613-.1053.0243-.2071.0414-.3106.0621-2.3841.3992-4.6901-.9038-5.6184-3.0702-1.2811-2.3919-5.1275-8.2384-9.7828-10.5094-4.6552-2.2711-11.8298-1.5385-14.1394-1.0363-1.9474.4252-3.97402-.3009-5.20405-1.8667-1.23003-1.5659-1.4658-3.7015-.5927-5.492 15.45775-31.71872 53.84575-44.93849 85.55925-29.46724 31.7136 15.47124 44.9196 53.82984 29.4886 85.53934-.016.0323-.032.0647-.049.1006-15.485 31.6834-53.8429 44.8774-85.542 29.4134zm33.8009-57.4544-24.4588 50.1594c24.6863 9.222 52.7773-1.024 65.6229-24.3097-1.806-2.7947-4.974-6.8014-8.641-8.5902-4.7375-2.3114-11.6793-1.5543-14.0641-1.0532-.3926.0933-.7839.1383-1.1773.1422-.7048.0034-1.4199-.1363-2.1061-.4355-.7114-.3114-1.3547-.781-1.874-1.386-.2968-.3495-.5421-.7317-.7393-1.1395-.1533-.3062-3.9466-7.6667-12.5659-13.3893zm-38.7651-29.0902c3.9831 1.9431 7.2244 5.0332 9.6483 7.947 7.496-11.4666 17.6688-20.1275 25.527-25.7116 2.9201-2.0736 5.9436-4.0123 8.8552-5.6852-20.4537-4.29467-41.8903 3.8115-54.3197 20.8782 3.2899.2252 6.9209.9284 10.2892 2.5716zm67.5712-11.9611c.4747 3.3248.8105 6.8979.9729 10.4798.4384 9.6049-.1169 22.9086-4.5038 35.8475 3.6589.0981 7.9139.7451 11.8069 2.6443 3.476 1.6959 6.39 4.2614 8.684 6.8223 5.855-20.3405-.95-42.2864-16.9617-55.7903zm-28.7702 29.1142c7.1932 3.5091 12.3927 8.1776 15.9169 12.2023 5.733-18.6289 3.2338-39.4757 1.1469-47.1965-7.3675 3.1085-25.3335 13.9715-36.4767 29.961 5.3459.2981 12.2232 1.5257 19.4129 5.0332z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

+1 -1
View File
@@ -3,7 +3,7 @@ description = "Earlier Qwen multimodal workhorse for million-token agent and doc
family = "qwen"
release_date = "2026-04-02"
last_updated = "2026-04-02"
attachment = false
attachment = true
reasoning = true
temperature = true
tool_call = true
+2 -2
View File
@@ -3,7 +3,7 @@ description = "Multimodal Qwen workhorse for long-context agents, visual inputs,
family = "qwen"
release_date = "2026-06-02"
last_updated = "2026-06-02"
attachment = false
attachment = true
reasoning = true
temperature = true
tool_call = true
@@ -15,5 +15,5 @@ context = 1_000_000
output = 64_000
[modalities]
input = ["text", "image"]
input = ["text", "image", "video"]
output = ["text"]
+19
View File
@@ -0,0 +1,19 @@
name = "Claude Opus 5"
description = "Strongest Claude Opus model for coding, agents, and professional work"
family = "claude-opus"
release_date = "2026-07-24"
last_updated = "2026-07-24"
attachment = true
reasoning = true
temperature = false
tool_call = true
open_weights = false
knowledge = "2026-05"
[limit]
context = 1_000_000
output = 128_000
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -0,0 +1,24 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/deep-research-max-preview-04-2026
# - https://ai.google.dev/gemini-api/docs/deep-research
# - https://blog.google/innovation-and-ai/models-and-research/gemini-models/next-generation-gemini-deep-research/
name = "Deep Research Max Preview"
description = "Maximum-comprehensiveness agentic researcher for multi-step investigation, synthesis, and cited reports"
family = "gemini-pro"
release_date = "2026-04-21"
last_updated = "2026-04-21"
attachment = true
reasoning = true
temperature = false
tool_call = true
knowledge = "2025-01"
open_weights = false
[limit]
context = 1_048_576
output = 65_536
[modalities]
input = ["text", "image", "video", "audio", "pdf"]
output = ["text", "image"]
@@ -0,0 +1,24 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/deep-research-preview-04-2026
# - https://ai.google.dev/gemini-api/docs/deep-research
# - https://blog.google/innovation-and-ai/models-and-research/gemini-models/next-generation-gemini-deep-research/
name = "Gemini Deep Research Preview"
description = "Agentic model for autonomous multi-step research, synthesis, and cited reports"
family = "gemini-pro"
release_date = "2026-04-21"
last_updated = "2026-04-21"
attachment = true
reasoning = true
temperature = false
tool_call = true
knowledge = "2025-01"
open_weights = false
[limit]
context = 1_048_576
output = 65_536
[modalities]
input = ["text", "image", "video", "audio", "pdf"]
output = ["text", "image"]
@@ -0,0 +1,27 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/gemini-2.5-computer-use-preview-10-2025
# (model id, modalities text+image in / text out, input 128000, output 64000, latest update Oct 2025)
# - https://ai.google.dev/gemini-api/docs/computer-use
# (legacy computer-use model; tool/function actions; still listed as available)
# - https://blog.google/innovation-and-ai/models-and-research/google-deepmind/gemini-computer-use-model/
# (public preview 2025-10-07; built on Gemini 2.5 Pro visual + reasoning)
name = "Gemini 2.5 Computer Use Preview"
description = "Specialized Gemini 2.5 model for browser-control agents that automate UI tasks"
family = "gemini-pro"
release_date = "2025-10-07"
last_updated = "2025-10-07"
attachment = true
reasoning = true
temperature = true
tool_call = true
knowledge = "2025-01"
open_weights = false
[limit]
context = 128_000
output = 64_000
[modalities]
input = ["text", "image"]
output = ["text"]
@@ -0,0 +1,25 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-lite-image
# - https://ai.google.dev/gemini-api/docs/image-generation
# - https://deepmind.google/models/model-cards/gemini-3-1-flash-lite-image/
# - https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/3-1-flash-lite-image
name = "Nano Banana 2 Lite"
description = "Fastest, most cost-efficient Gemini image model for high-volume 1K generation and editing"
family = "gemini-flash-lite"
release_date = "2026-06-30"
last_updated = "2026-06-30"
attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = false
knowledge = "2025-01"
open_weights = false
[limit]
context = 65_536
output = 4_096
[modalities]
input = ["text", "image"]
output = ["text", "image"]
@@ -0,0 +1,24 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-live-preview
# - https://blog.google/innovation-and-ai/technology/developers-tools/build-with-gemini-3-1-flash-live/
# - https://deepmind.google/models/model-cards/gemini-3-1-flash-audio/
name = "Gemini 3.1 Flash Live Preview"
description = "High-quality, low-latency Live API model for real-time dialogue and voice-first AI applications"
family = "gemini-flash"
release_date = "2026-03-26"
last_updated = "2026-03-26"
attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = false
knowledge = "2025-01"
open_weights = false
[limit]
context = 131_072
output = 65_536
[modalities]
input = ["text", "image", "video", "audio"]
output = ["text", "audio"]
@@ -0,0 +1,23 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-tts-preview
# - https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-flash-tts/
name = "Gemini 3.1 Flash TTS Preview"
description = "Low-latency speech generation with steerable prompts and expressive audio tags"
family = "gemini-flash"
release_date = "2026-04-15"
last_updated = "2026-04-15"
attachment = false
reasoning = false
temperature = true
tool_call = false
knowledge = "2025-01"
open_weights = false
[limit]
context = 8_192
output = 16_384
[modalities]
input = ["text"]
output = ["audio"]
@@ -0,0 +1,24 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/gemini-3.5-live-translate-preview
# - https://ai.google.dev/gemini-api/docs/live-api/live-translate
# - https://deepmind.google/models/model-cards/gemini-3-5-audio/
# - https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-live-3-5-translate/
name = "Gemini 3.5 Live Translate Preview"
description = "Low-latency audio-to-audio model for real-time speech translation across 70+ languages"
family = "gemini-pro"
release_date = "2026-06-09"
last_updated = "2026-06-09"
attachment = false
reasoning = false
temperature = false
tool_call = false
knowledge = "2025-01"
open_weights = false
[limit]
context = 131_072
output = 65_536
[modalities]
input = ["audio"]
output = ["audio", "text"]
+19
View File
@@ -0,0 +1,19 @@
name = "Gemini Embedding 2"
description = "Multimodal embedding model mapping text, images, video, audio, and PDFs into a unified embedding space"
family = "gemini"
release_date = "2026-04-22"
last_updated = "2026-04-22"
attachment = true
reasoning = false
temperature = false
tool_call = false
knowledge = "2025-11"
open_weights = false
[limit]
context = 8_192
output = 3_072
[modalities]
input = ["text", "image", "audio", "video", "pdf"]
output = ["text"]
@@ -0,0 +1,26 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/gemini-robotics-er-1.6-preview
# - https://ai.google.dev/gemini-api/docs/robotics-overview
# - https://blog.google/innovation-and-ai/models-and-research/google-deepmind/gemini-robotics-er-1-6
# - https://storage.googleapis.com/deepmind-media/Model-Cards/Gemini-Robotics-ER-1-6-Model-Card.pdf
name = "Gemini Robotics-ER 1.6 Preview"
description = "Vision-language model for embodied reasoning: spatial understanding, task planning, and physical-world agentic robotics"
family = "gemini"
release_date = "2026-04-14"
last_updated = "2026-04-14"
attachment = true
reasoning = true
temperature = true
tool_call = true
structured_output = true
knowledge = "2025-01"
open_weights = false
[limit]
context = 131_072
output = 65_536
[modalities]
input = ["text", "image", "video", "audio"]
output = ["text"]
+25
View File
@@ -0,0 +1,25 @@
# https://ai.google.dev/gemini-api/docs/models/lyria-3-clip-preview
# https://ai.google.dev/gemini-api/docs/music-generation
# https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/lyria/lyria-3
# https://ai.google.dev/gemini-api/docs/pricing
# https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing
name = "Lyria 3 Clip Preview"
description = "Music generation model for short 30-second clips, loops, and previews from text or image prompts"
family = "lyria"
release_date = "2026-03-25"
last_updated = "2026-03-25"
attachment = true
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = false
[limit]
context = 131_072
output = 65_536
[modalities]
input = ["text", "image"]
output = ["text", "audio"]
+26
View File
@@ -0,0 +1,26 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/lyria-3-pro-preview — model card: text+image in; audio+lyrics text out; input token limit 131,072; no tools/thinking/structured output/caching
# - https://ai.google.dev/gemini-api/docs/music-generation — full-length song generation; MP3 (WAV optional); lyrics/structure text in responses
# - https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/lyria/lyria-3 — release_date 2026-03-25; preview; text+image input; audio output; max ~184s
# - https://blog.google/innovation-and-ai/technology/developers-tools/lyria-3-developers/ — public preview announcement (2026-03-25)
# Output token limit not published on the first-party model card; 8_192 retained from LiteLLM cost map pending Models API sync overwrite.
name = "Lyria 3 Pro Preview"
description = "Music generation model for full-length songs from text or images with vocals and structure"
family = "lyria"
release_date = "2026-03-25"
last_updated = "2026-03-25"
attachment = true
reasoning = false
temperature = true
tool_call = false
structured_output = false
open_weights = false
[limit]
context = 131_072
output = 8_192
[modalities]
input = ["text", "image"]
output = ["text", "audio"]
@@ -0,0 +1,18 @@
name = "Veo 3.1 Fast Preview"
description = "Video model for prompt-guided generation, editing, and motion workflows"
family = "veo"
release_date = "2025-10-15"
last_updated = "2026-01-01"
attachment = true
reasoning = false
temperature = false
tool_call = false
open_weights = false
[limit]
context = 1_024
output = 0
[modalities]
input = ["text", "image", "video"]
output = ["video"]
@@ -0,0 +1,23 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/veo-3.1-generate-preview
# - https://ai.google.dev/gemini-api/docs/veo
# - https://developers.googleblog.com/introducing-veo-3-1-and-new-creative-capabilities-in-the-gemini-api
name = "Veo 3.1 Preview"
description = "Video model for prompt-guided generation, editing, and motion workflows"
family = "veo"
release_date = "2025-10-15"
last_updated = "2026-01"
attachment = true
reasoning = false
temperature = false
tool_call = false
open_weights = false
[limit]
context = 1_024
output = 1
[modalities]
input = ["text", "image"]
output = ["video"]
@@ -0,0 +1,26 @@
# Sources:
# - https://ai.google.dev/gemini-api/docs/models/veo-3.1-lite-generate-preview
# (model code, text+image input, video+audio output, 1,024 text input tokens, March 2026 update)
# - https://blog.google/innovation-and-ai/technology/ai/veo-3-1-lite/
# (release 2026-03-31; text-to-video and image-to-video; 720p/1080p; 4s/6s/8s)
# - https://ai.google.dev/gemini-api/docs/pricing
# (Veo 3.1 Lite paid-tier per-second video pricing; not token-based — cost omitted)
name = "Veo 3.1 Lite Preview"
description = "Video model for prompt-guided generation, editing, and motion workflows"
family = "veo"
release_date = "2026-03-31"
last_updated = "2026-03-31"
attachment = true
reasoning = false
temperature = false
tool_call = false
open_weights = false
[limit]
context = 1_024
output = 0
[modalities]
input = ["text", "image"]
output = ["video"]
+1 -1
View File
@@ -3,7 +3,7 @@ description = "Earlier Kimi frontier model for long-context agents, coding, and
family = "kimi-k2"
release_date = "2026-01"
last_updated = "2026-01"
attachment = false
attachment = true
reasoning = true
temperature = false
tool_call = true
+28
View File
@@ -0,0 +1,28 @@
name = "Hy3"
description = "Tencent Hy reasoning model for coding, instruction following, and agent tasks"
family = "Hy"
release_date = "2026-07-06"
last_updated = "2026-07-06"
attachment = false
reasoning = true
temperature = true
tool_call = true
open_weights = true
[limit]
context = 256_000
output = 64_000
[modalities]
input = ["text"]
output = ["text"]
[[weights]]
label = "Hugging Face"
url = "https://huggingface.co/tencent/Hy3"
[[benchmarks]]
name = "SWE-Bench Verified"
score = 78
metric = "resolved"
source = "https://huggingface.co/tencent/Hy3"
+4 -7
View File
@@ -1,10 +1,7 @@
# Sources (accessed 2026-07-16):
# Sources (accessed 2026-07-22):
# - https://thinkingmachines.ai/news/introducing-inkling/
# - https://thinkingmachines.ai/model-card/inkling/
# - https://huggingface.co/thinkingmachines/Inkling
# - https://tinker-docs.thinkingmachines.ai/tinker/models/
# - https://tinker-docs.thinkingmachines.ai/cookbook/inkling/thinking-effort/
# - https://tinker-docs.thinkingmachines.ai/tinker/compatible-apis/openai/
name = "Inkling"
description = "Multimodal MoE reasoning model (975B total, 41B active) for text, image, and audio"
@@ -16,13 +13,13 @@ reasoning = true
temperature = true
tool_call = true
open_weights = true
license = "Apache-2.0"
[limit]
context = 256_000
output = 256_000
context = 1_048_576
[modalities]
input = ["text", "image", "audio", "pdf"]
input = ["text", "image", "audio"]
output = ["text"]
[[weights]]
+23
View File
@@ -0,0 +1,23 @@
# Sources:
# - https://docs.x.ai/docs/models
# - https://docs.x.ai/developers/models/grok-imagine-video-1.5
# - https://docs.x.ai/docs/guides/video-generation
name = "Grok Imagine Video 1.5"
description = "Video model for image-to-video generation, editing, and extension workflows"
family = "grok"
release_date = "2026-05-30"
last_updated = "2026-05-30"
attachment = true
reasoning = false
temperature = false
tool_call = false
open_weights = false
[limit]
context = 1_024
output = 0
[modalities]
input = ["text", "image", "video"]
output = ["video"]
+2
View File
@@ -28,6 +28,8 @@
"huggingface:sync": "bun ./packages/core/script/sync-models.ts huggingface",
"kilo:sync": "bun ./packages/core/script/sync-models.ts kilo",
"llmgateway:sync": "bun ./packages/core/script/sync-models.ts llmgateway",
"merge-gateway:sync": "bun ./packages/core/script/sync-models.ts merge-gateway",
"nano-gpt:sync": "bun ./packages/core/script/sync-models.ts nano-gpt",
"venice:sync": "bun ./packages/core/script/sync-models.ts venice",
"vercel:generate": "bun ./packages/core/script/sync-models.ts vercel",
"wandb:generate": "bun ./packages/core/script/sync-models.ts wandb",
+82 -17
View File
@@ -4,6 +4,7 @@ import { mergeDeep } from "remeda";
import { z } from "zod";
import { AuthoredModel, AuthoredModelShape, ModelMetadata } from "../schema.js";
import { openMissingModelIssues } from "./missing-issues.js";
import { ambient } from "./providers/ambient.js";
import { anthropic } from "./providers/anthropic.js";
import { baseten } from "./providers/baseten.js";
@@ -14,9 +15,12 @@ import { deepinfra } from "./providers/deepinfra.js";
import { digitalocean } from "./providers/digitalocean.js";
import { empiriolabs } from "./providers/empiriolabs.js";
import { google } from "./providers/google.js";
import { hyper } from "./providers/hyper.js";
import { huggingface } from "./providers/huggingface.js";
import { kilo } from "./providers/kilo.js";
import { llmgateway } from "./providers/llmgateway.js";
import { mergeGateway } from "./providers/merge-gateway.js";
import { nanoGpt } from "./providers/nano-gpt.js";
import { openai } from "./providers/openai.js";
import { openrouter } from "./providers/openrouter.js";
import { ovhcloud } from "./providers/ovhcloud.js";
@@ -61,13 +65,24 @@ export interface SyncProvider<SourceModel> {
name: string;
modelsDir: string;
metadataNamespace?: string;
/**
* Do not create new local TOMLs for remote-only models. Instead open one
* deduped GitHub issue per missing model ID.
*/
skipCreates?: boolean;
/** Report remote-only models skipped by skipCreates as GitHub issues. */
trackMissingModels?: boolean;
deleteMissing?: boolean;
preserveSymlinks?: boolean;
preserveBaseModels?: boolean;
preserveDescriptions?: boolean;
sameModel?(current: ExistingModel, desired: SyncedModel): boolean;
missingNotice?(paths: string[]): string[];
sourceID?(model: SourceModel): string;
/**
* Remote ID to report when translateModel skips a source model. Return
* undefined to skip silently (no notice, no missing-model issue).
*/
sourceID?(model: SourceModel): string | undefined;
skippedNotice?(ids: string[]): string[];
fetchModels(): Promise<unknown>;
parseModels(raw: unknown): SourceModel[];
@@ -103,9 +118,12 @@ export const providers: {
digitalocean: SyncProvider<any>;
empiriolabs: SyncProvider<any>;
google: SyncProvider<any>;
kilo: SyncProvider<any>;
hyper: SyncProvider<any>;
huggingface: SyncProvider<any>;
kilo: SyncProvider<any>;
llmgateway: SyncProvider<any>;
"merge-gateway": SyncProvider<any>;
"nano-gpt": SyncProvider<any>;
openai: SyncProvider<any>;
openrouter: SyncProvider<any>;
ovhcloud: SyncProvider<any>;
@@ -125,9 +143,12 @@ export const providers: {
digitalocean,
empiriolabs,
google,
kilo,
hyper,
huggingface,
kilo,
llmgateway,
"merge-gateway": mergeGateway,
"nano-gpt": nanoGpt,
openai,
openrouter,
ovhcloud,
@@ -139,15 +160,26 @@ export const providers: {
};
export const groups = {
aggregators: ["crossmodel", "empiriolabs", "huggingface", "kilo", "llmgateway", "openrouter", "vercel"],
aggregators: [
"crossmodel",
"empiriolabs",
"huggingface",
"kilo",
"llmgateway",
"merge-gateway",
"nano-gpt",
"openrouter",
"vercel",
],
cloudflare: ["cloudflare-workers-ai"],
direct: ["ambient", "anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "openai", "ovhcloud", "pioneer", "venice", "wandb", "xai"],
direct: ["ambient", "anthropic", "baseten", "chutes", "deepinfra", "digitalocean", "google", "hyper", "openai", "ovhcloud", "pioneer", "venice", "wandb", "xai"],
} as const;
type ProviderID = keyof typeof providers;
interface SyncOptions {
dryRun?: boolean;
openIssues?: boolean;
newOnly?: boolean;
}
@@ -179,12 +211,13 @@ export async function syncProvider<SourceModel>(
},
});
if (translated === undefined) {
if (provider.sourceID !== undefined) skippedRemote.push(provider.sourceID(sourceModel));
const skippedID = provider.sourceID?.(sourceModel);
if (skippedID !== undefined) skippedRemote.push(skippedID);
continue;
}
const relativePath = `${translated.id}.toml`;
if (provider.skipCreates && !existing.has(relativePath)) {
if (provider.skipCreates === true && !existing.has(relativePath)) {
skippedRemote.push(translated.id);
continue;
}
@@ -226,16 +259,17 @@ export async function syncProvider<SourceModel>(
} else {
resolvedReasoning = existing.get(relativePath)?.toml.reasoning;
}
const withReasoningOptions = preserveReasoningOptions(
translatedModel,
existing.get(relativePath)?.authored,
resolvedReasoning,
);
const withDescription = provider.preserveDescriptions === false
? withReasoningOptions
: preserveDescription(withReasoningOptions, existing.get(relativePath)?.authored);
const parsed = SyncedAuthoredModel.safeParse(stripUndefined({
id: translated.id,
...preserveDescription(
preserveReasoningOptions(
translatedModel,
existing.get(relativePath)?.authored,
resolvedReasoning,
),
existing.get(relativePath)?.authored,
),
...withDescription,
}));
if (!parsed.success) {
parsed.error.cause = { provider: provider.id, path: relativePath };
@@ -357,10 +391,38 @@ export async function syncProvider<SourceModel>(
}
}
const result = summarize(provider, files, unchanged, [
const notices = [
...provider.skippedNotice?.(skippedRemote) ?? [],
...provider.missingNotice?.(missingLocal) ?? [],
]);
];
if (
provider.skipCreates === true
&& provider.trackMissingModels !== false
&& skippedRemote.length > 0
&& options.openIssues === true
) {
try {
notices.push(
...await openMissingModelIssues(
{ id: provider.id, name: provider.name, modelsDir: provider.modelsDir },
skippedRemote,
{ dryRun: options.dryRun },
),
);
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
const notice = `Failed to open missing-model GitHub issues: ${message}`;
notices.push(notice);
console.error(notice);
// Surface as a workflow annotation: on no-change hours the notice never
// reaches a PR body, so a broken token or full dedupe window would
// otherwise disable issue opens silently while runs stay green.
if (process.env.GITHUB_ACTIONS === "true") console.log(`::error::${provider.id}: ${notice}`);
}
}
const result = summarize(provider, files, unchanged, notices);
console.log(
`${options.dryRun ? "Dry run: " : ""}${result.created} created, ${result.updated} updated, ${result.deleted} removed, ${result.unchanged} unchanged`,
);
@@ -934,6 +996,9 @@ export async function main(args = process.argv.slice(2)) {
const results = await syncTargets(target, {
dryRun: args.includes("--dry-run"),
newOnly: args.includes("--new-only"),
// Only GitHub Actions opens issues by default; local needs --open-issues.
openIssues: args.includes("--open-issues")
|| (process.env.GITHUB_ACTIONS === "true" && !args.includes("--no-issues")),
});
await writeReport(target, results);
+184
View File
@@ -0,0 +1,184 @@
export interface MissingModelIssueTarget {
id: string;
name: string;
modelsDir: string;
}
export interface OpenMissingModelIssuesOptions {
dryRun?: boolean;
}
function issueTitle(providerId: string, modelId: string) {
return `[missing-model] ${providerId}: ${modelId}`;
}
function issueBody(provider: MissingModelIssueTarget, modelId: string) {
return [
`The **${provider.name}** catalog sync found remote model \`${modelId}\` that is not in the local catalog.`,
"",
`| Field | Value |`,
`| --- | --- |`,
`| Provider | \`${provider.id}\` |`,
`| Model ID | \`${modelId}\` |`,
`| Expected path | \`${provider.modelsDir}/${modelId}.toml\` |`,
"",
"This provider uses `skipCreates` because the remote source is not enough to auto-author a full TOML.",
"Add the model manually (prefer `base_model` when matching `models/` metadata exists).",
"",
].join("\n");
}
/** Open one deduped GitHub issue per missing model ID (title-stable). */
export async function openMissingModelIssues(
provider: MissingModelIssueTarget,
modelIds: string[],
options: OpenMissingModelIssuesOptions = {},
): Promise<string[]> {
const ids = [...new Set(modelIds)].filter((id) => id.length > 0).sort();
if (ids.length === 0) return [];
const notices: string[] = [];
const labels = ["automation", "model-sync", "missing-model", `provider:${provider.id}`];
if (options.dryRun) {
for (const modelId of ids) {
const notice = `Would open GitHub issue for missing model \`${modelId}\` (\`${issueTitle(provider.id, modelId)}\`)`;
notices.push(notice);
console.log(notice);
}
return notices;
}
// Fail closed before listing/creating: a label failure here would otherwise
// surface as one opaque `gh issue create` error per model.
for (const label of labels) {
const result = await runGh([
"label",
"create",
label,
"--color",
"0E8A16",
"--description",
"Automated model catalog sync",
"--force",
]);
if (result.code !== 0) {
throw new Error(`gh label create ${label} failed: ${result.stderr || result.stdout || `exit ${result.code}`}`);
}
}
const existingByTitle = await listTrackedTitles(provider.id);
for (const modelId of ids) {
const title = issueTitle(provider.id, modelId);
const existing = existingByTitle.get(title);
if (existing !== undefined) {
const notice = `Missing model \`${modelId}\` already tracked by #${existing}`;
notices.push(notice);
console.log(notice);
continue;
}
try {
const number = await createIssue(title, issueBody(provider, modelId), labels);
existingByTitle.set(title, number);
await dispatchIssueFixer(provider.id, number);
const notice = `Opened GitHub issue #${number} and dispatched the issue fixer for missing model \`${modelId}\``;
notices.push(notice);
console.log(notice);
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
const notice = `Failed to open GitHub issue for missing model \`${modelId}\`: ${message}`;
notices.push(notice);
console.error(notice);
}
}
return notices;
}
const LIST_LIMIT = 1000;
async function listTrackedTitles(providerId: string) {
// Include closed so a wontfix/closed issue does not reopen hourly.
const result = await runGh([
"issue",
"list",
"--state",
"all",
"--label",
"missing-model",
"--label",
`provider:${providerId}`,
"--limit",
String(LIST_LIMIT),
"--json",
"number,title",
]);
if (result.code !== 0) {
throw new Error(`gh issue list failed: ${result.stderr || result.stdout || `exit ${result.code}`}`);
}
const issues = JSON.parse(result.stdout || "[]") as Array<{ number: number; title: string }>;
// Fail closed when the window is full: older titles may have been truncated,
// and creating against an incomplete list could reopen duplicates.
if (issues.length >= LIST_LIMIT) {
throw new Error(
`gh issue list returned ${issues.length} issues (window limit ${LIST_LIMIT}); refusing to create against a possibly truncated dedupe list`,
);
}
return new Map(issues.map((issue) => [issue.title, issue.number]));
}
async function createIssue(title: string, body: string, labels: string[]) {
const args = ["issue", "create", "--title", title, "--body", body];
for (const label of labels) args.push("--label", label);
const result = await runGh(args);
if (result.code !== 0) {
throw new Error(`gh issue create failed: ${result.stderr || result.stdout || `exit ${result.code}`}`);
}
const url = result.stdout.trim();
const number = url.match(/\/issues\/(\d+)\s*$/)?.[1] ?? url.match(/#(\d+)\s*$/)?.[1];
if (number === undefined) {
throw new Error(`gh issue create returned no issue number: ${url}`);
}
return Number(number);
}
async function dispatchIssueFixer(providerId: string, issueNumber: number) {
const repository = process.env.GITHUB_REPOSITORY;
if (repository === undefined) {
throw new Error("GITHUB_REPOSITORY is required to dispatch the issue fixer");
}
const result = await runGh([
"api",
`repos/${repository}/dispatches`,
"--method",
"POST",
"--field",
"event_type=missing-model",
"--field",
`client_payload[provider]=${providerId}`,
"--field",
`client_payload[issue_number]=${issueNumber}`,
]);
if (result.code !== 0) {
throw new Error(`issue fixer dispatch failed: ${result.stderr || result.stdout || `exit ${result.code}`}`);
}
}
async function runGh(args: string[]) {
const proc = Bun.spawn(["gh", ...args], {
stdout: "pipe",
stderr: "pipe",
env: process.env,
});
const [stdout, stderr, code] = await Promise.all([
new Response(proc.stdout).text(),
new Response(proc.stderr).text(),
proc.exited,
]);
return { code, stdout, stderr };
}
+35 -12
View File
@@ -2,7 +2,8 @@ import path from "node:path";
import { existsSync } from "node:fs";
import { z } from "zod";
import type { ExistingModel, SyncProvider, SyncedModel } from "../index.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import { factorBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://api.anthropic.com/v1/models";
const PRICING_ENDPOINT = "https://platform.claude.com/docs/en/about-claude/pricing";
@@ -310,20 +311,42 @@ export function buildAnthropicModel(
const output = model.max_tokens > 0 ? model.max_tokens : existing?.limit?.output;
const cost = syncedCost(model, existing);
const options = reasoningOptions(model, existing);
// Models API has no fast-mode surface; preserve authored experimental/provider config.
const experimental = existing?.experimental;
const provider = existing?.provider;
const status = model.pricing?.deprecated ? "deprecated" as const : existing?.status;
const structured_output = model.capabilities.structured_outputs?.supported
?? existing?.structured_output;
const limit = context !== undefined || output !== undefined || existing?.limit !== undefined
? {
context: context ?? existing?.limit?.context ?? 0,
input: existing?.limit?.input,
output: output ?? existing?.limit?.output ?? 0,
}
: undefined;
const modalities = { input, output: ["text" as const] };
if (baseModel !== undefined) {
return {
base_model: baseModel,
const overrides: Partial<SyncedFullModel> = {
name: model.canonical_id === undefined ? undefined : name,
attachment: input.length > 1,
reasoning,
reasoning_options: options,
structured_output: model.capabilities.structured_outputs?.supported,
status: model.pricing?.deprecated ? "deprecated" : undefined,
structured_output,
status,
interleaved: existing?.interleaved,
experimental,
provider,
cost,
limit: context !== undefined && output !== undefined ? { context, output } : undefined,
modalities: { input, output: ["text"] },
limit,
modalities,
};
return factorBaseModel(
baseModel,
overrides,
limit ?? { context: 0, output: 0 },
existing?.base_model_omit,
);
}
if (
@@ -349,15 +372,15 @@ export function buildAnthropicModel(
reasoning_options: options,
temperature: existing.temperature,
tool_call: existing.tool_call,
structured_output: model.capabilities.structured_outputs?.supported ?? existing.structured_output,
structured_output,
knowledge: existing.knowledge,
open_weights: existing.open_weights,
status: model.pricing?.deprecated ? "deprecated" : existing.status,
status,
interleaved: existing.interleaved,
experimental: existing.experimental,
provider: existing.provider,
experimental,
provider,
cost,
limit: { context, input: existing.limit?.input, output },
modalities: { input, output: ["text"] },
modalities,
};
}
+19 -1
View File
@@ -29,13 +29,31 @@ const GoogleResponse = z.object({
type GoogleModel = z.infer<typeof GoogleModel>;
const TrackedModelPrefixes = [
"deep-research-",
"gemini-",
"gemma-",
"imagen-",
"lyria-",
"nano-banana-",
"veo-",
];
export function shouldTrackGoogleModel(id: string) {
return TrackedModelPrefixes.some((prefix) => id.startsWith(prefix));
}
export const google = {
id: "google",
name: "Google",
modelsDir: "providers/google/models",
skipCreates: true,
// /v1beta/models has no lifecycle fields and can retain shut-down,
// superseded, moving-alias, and EAP model IDs.
trackMissingModels: false,
sourceID(model) {
return model.name.replace(/^models\//, "");
const id = model.name.replace(/^models\//, "");
return shouldTrackGoogleModel(id) ? id : undefined;
},
skippedNotice(ids) {
if (ids.length === 0) return [];
+156
View File
@@ -0,0 +1,156 @@
import { existsSync } from "node:fs";
import path from "node:path";
import { z } from "zod";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import { factorBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://hyper.charm.land/v1/models";
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
function baseModelExists(modelID: string) {
return existsSync(path.join(MODELS_DIR, `${modelID}.toml`));
}
const ReasoningEffort = z.enum([
"default",
"max",
"low",
"high",
"none",
"medium",
"minimal",
"xhigh",
]);
export const HyperModel = z.object({
id: z.string(),
created: z.number(),
display_name: z.string(),
context_window: z.number(),
max_output_tokens: z.number(),
capabilities: z.object({
vision: z.boolean().optional(),
}).optional(),
reasoning: z.object({
effort_levels: z.array(z.object({
value: z.string(),
display: z.string().optional(),
})).optional(),
}).optional(),
pricing: z.object({
input: z.number().optional(),
output: z.number().optional(),
cache_hit: z.number().optional(),
cache_create: z.number().optional(),
}).optional(),
}).passthrough();
const HyperResponse = z.object({
data: z.array(HyperModel),
}).passthrough();
export type HyperModel = z.infer<typeof HyperModel>;
export const hyper = {
id: "hyper",
name: "Charm Hyper",
modelsDir: "providers/hyper/models",
preserveBaseModels: false,
async fetchModels() {
const key = process.env.HYPER_API_KEY;
const response = await fetch(API_ENDPOINT, key
? { headers: { Authorization: `Bearer ${key}` } }
: undefined);
if (!response.ok) {
throw new Error(`Hyper models request failed: ${response.status} ${response.statusText}`);
}
return response.json();
},
parseModels(raw) {
return HyperResponse.parse(raw).data;
},
translateModel(model, context) {
const existing = context.existing(model.id);
const baseModel = existing?.base_model;
if (baseModel === undefined || !baseModelExists(baseModel)) return undefined;
return {
id: model.id,
model: buildHyperModel(model, existing, baseModel),
};
},
} satisfies SyncProvider<HyperModel>;
function dateFromTimestamp(timestamp: number) {
return new Date(timestamp * 1000).toISOString().slice(0, 10);
}
function reasoningOptions(model: HyperModel) {
const effortLevels = model.reasoning?.effort_levels?.map((level) => level.value) ?? [];
if (effortLevels.length === 0) return [];
const values = effortLevels.filter(isReasoningEffort);
if (values.length === 0) return [{ type: "toggle" as const }];
return [{ type: "effort" as const, values }];
}
function isReasoningEffort(value: string): value is z.infer<typeof ReasoningEffort> {
return ReasoningEffort.safeParse(value).success;
}
function price(value: number) {
return Math.round(value * 1_000_000) / 1_000_000;
}
function positivePrice(value: number | undefined) {
return value !== undefined && value > 0 ? price(value) : undefined;
}
function buildCost(model: HyperModel, existing: ExistingModel["cost"] | undefined) {
const pricing = model.pricing;
if (pricing?.input === undefined || pricing.output === undefined) return existing;
return {
input: price(pricing.input),
output: price(pricing.output),
cache_read: positivePrice(pricing.cache_hit)
?? (pricing.cache_hit === undefined ? existing?.cache_read : undefined),
cache_write: positivePrice(pricing.cache_create)
?? (pricing.cache_create === undefined ? existing?.cache_write : undefined),
reasoning: existing?.reasoning,
};
}
function hyperModalities(vision: boolean) {
const input = vision ? ["text" as const, "image" as const] : ["text" as const];
return {
input,
output: ["text" as const],
};
}
export function buildHyperModel(
model: HyperModel,
existing: ExistingModel | undefined,
baseModel: string,
today = new Date().toISOString().slice(0, 10),
): SyncedModel {
const limit = {
context: model.context_window,
input: existing?.limit?.input,
output: model.max_output_tokens,
};
const modalities = hyperModalities(model.capabilities?.vision ?? false);
const values: Partial<SyncedFullModel> = {
attachment: modalities.input.some((value) => value !== "text"),
modalities,
reasoning: model.reasoning != null,
reasoning_options: model.reasoning != null ? reasoningOptions(model) : undefined,
release_date: existing?.release_date ?? dateFromTimestamp(model.created),
last_updated: existing?.last_updated ?? today,
interleaved: existing?.interleaved,
cost: buildCost(model, existing?.cost),
limit,
};
return factorBaseModel(baseModel, values, limit, existing?.base_model_omit);
}
@@ -0,0 +1,337 @@
import { z } from "zod";
import { describeModel } from "../../describe.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import { factorBaseModel, resolveCanonicalBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://api-gateway.merge.dev/v1/models";
const AvailabilityStatus = z.enum(["available", "deprecated"]);
const VendorReasoning = z.object({
configurable: z.boolean().optional(),
disable_supported: z.boolean().optional(),
default_enabled: z.boolean().optional(),
controls: z.array(z.string()).optional(),
output_style: z.string().nullable().optional(),
}).passthrough();
const VendorCapabilities = z.object({
input: z.array(z.enum(["text", "audio", "image", "document", "embedding"])),
output: z.array(z.enum(["text", "audio", "tool_use", "embedding"])),
supports_tool_calling: z.boolean(),
supports_tool_choice: z.boolean().default(false),
supports_structured_outputs: z.boolean(),
supports_reasoning: z.boolean().optional(),
reasoning: VendorReasoning.nullable().optional(),
streaming: z.boolean(),
}).passthrough();
const PromptCaching = z.object({
mode: z.enum(["automatic", "explicit", "none"]).optional(),
cache_read_cost_per_million: z.number().nonnegative().nullable().optional(),
cache_write_cost_per_million: z.number().nonnegative().nullable().optional(),
}).passthrough();
const VendorInfo = z.object({
launch_date: z.string().nullable().optional(),
context_window: z.number().int().nonnegative(),
max_output_tokens: z.number().int().nonnegative(),
availability_status: AvailabilityStatus,
capabilities: VendorCapabilities,
pricing: z.object({
currency: z.literal("USD").default("USD"),
input_per_million: z.number().nonnegative(),
output_per_million: z.number().nonnegative(),
cache_read_per_million: z.number().nonnegative().nullable().optional(),
cache_write_per_million: z.number().nonnegative().nullable().optional(),
}).passthrough(),
prompt_caching: PromptCaching.nullable().optional(),
}).passthrough();
export const MergeGatewayModel = z.object({
model: z.string().min(1),
provider: z.string().min(1),
display_name: z.string().min(1),
vendors: z.record(VendorInfo),
availability_status: AvailabilityStatus,
created_at: z.string().nullable().optional(),
updated_at: z.string().nullable().optional(),
}).passthrough().superRefine((model, context) => {
const namespace = model.model.split("/")[0];
if (namespace !== model.provider) {
context.addIssue({
code: z.ZodIssueCode.custom,
path: ["provider"],
message: `Model namespace ${namespace} does not match provider ${model.provider}`,
});
}
});
export const MergeGatewayResponse = z.object({
object: z.literal("list").default("list"),
data: z.array(MergeGatewayModel),
has_more: z.boolean().default(false),
next_cursor: z.string().nullable().optional(),
}).passthrough();
export type MergeGatewayModel = z.infer<typeof MergeGatewayModel>;
export type MergeGatewayVendor = z.infer<typeof VendorInfo>;
export async function fetchMergeGatewayModels(
fetcher: typeof fetch = fetch,
apiKey = process.env.MERGE_GATEWAY_API_KEY,
) {
if (!apiKey) throw new Error("MERGE_GATEWAY_API_KEY is required to sync Merge Gateway models");
const models = new Map<string, MergeGatewayModel>();
const cursors = new Set<string>();
let cursor: string | undefined;
do {
const url = new URL(API_ENDPOINT);
url.searchParams.set("limit", "500");
if (cursor !== undefined) url.searchParams.set("cursor", cursor);
const response = await fetcher(url, {
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) {
throw new Error(`Merge Gateway request failed: ${response.status} ${response.statusText}`);
}
const page = MergeGatewayResponse.parse(await response.json());
for (const model of page.data) {
if (models.has(model.model)) {
throw new Error(`Merge Gateway returned duplicate model ID: ${model.model}`);
}
models.set(model.model, model);
}
if (!page.has_more) break;
if (!page.next_cursor) throw new Error("Merge Gateway returned has_more=true without next_cursor");
if (cursors.has(page.next_cursor)) throw new Error(`Merge Gateway repeated cursor: ${page.next_cursor}`);
cursors.add(page.next_cursor);
cursor = page.next_cursor;
} while (true);
return {
object: "list" as const,
data: [...models.values()],
has_more: false,
next_cursor: null,
};
}
export const mergeGateway = {
id: "merge-gateway",
name: "Merge Gateway",
modelsDir: "providers/merge-gateway/models",
// API-key policy can affect catalog visibility. Retain missing local models
// until Merge exposes an account-independent catalog response.
deleteMissing: false,
sourceID(model) {
return model.model;
},
skippedNotice(ids) {
if (ids.length === 0) return [];
return [
`${ids.length} Merge Gateway models were skipped because they are not text models or lack canonical metadata.`,
`Skipped remote IDs: ${ids.map((id) => `\`${id}\``).join(", ")}`,
];
},
missingNotice(paths) {
if (paths.length === 0) return [];
return [
`${paths.length} local Merge Gateway models were absent from the API response and retained for manual lifecycle review.`,
`Retained local paths: ${paths.map((item) => `\`${item}\``).join(", ")}`,
];
},
fetchModels() {
return fetchMergeGatewayModels();
},
parseModels(raw) {
return MergeGatewayResponse.parse(raw).data;
},
translateModel(model, context) {
const existing = context.existing(model.model);
const translated = buildMergeGatewayModel(model, existing, context.authored(model.model));
return translated === undefined ? undefined : { id: model.model, model: translated };
},
} satisfies SyncProvider<MergeGatewayModel>;
export function selectMergeGatewayVendor(model: MergeGatewayModel) {
const canonical = model.vendors[model.provider];
if (canonical?.availability_status === "available") {
return { id: model.provider, info: canonical };
}
// Match Gateway's default resolver: when the model author's native route is
// unavailable, use the cheapest active route by combined input + output
// price. Object order is preserved for equal prices; the public API emits
// vendors in CMS-priority order, which is Gateway's own tiebreaker.
const available = Object.entries(model.vendors)
.filter(([, info]) => info.availability_status === "available");
const selected = available.reduce<typeof available[number] | undefined>((best, candidate) => {
if (best === undefined) return candidate;
const bestCost = best[1].pricing.input_per_million + best[1].pricing.output_per_million;
const candidateCost = candidate[1].pricing.input_per_million + candidate[1].pricing.output_per_million;
return candidateCost < bestCost ? candidate : best;
}, undefined);
if (selected !== undefined) return { id: selected[0], info: selected[1] };
if (canonical !== undefined) return { id: model.provider, info: canonical };
const fallback = Object.entries(model.vendors)[0];
return fallback === undefined ? undefined : { id: fallback[0], info: fallback[1] };
}
export function buildMergeGatewayModel(
model: MergeGatewayModel,
existing: ExistingModel | undefined,
authored: ExistingModel | undefined = existing,
): SyncedModel | undefined {
const selected = selectMergeGatewayVendor(model);
if (selected === undefined || !selected.info.capabilities.output.includes("text")) return undefined;
const input = modalities(selected.info.capabilities.input);
const output = modalities(selected.info.capabilities.output);
const limit = {
context: selected.info.context_window || existing?.limit?.context || 0,
// Preserve only a provider-authored input cap. `existing` is resolved
// against base-model metadata, so using its inherited input value here
// can keep an impossible cap when the gateway reports a smaller context.
input: authored?.limit?.input,
output: selected.info.max_output_tokens || existing?.limit?.output || selected.info.context_window,
};
const cachePricing = mergeGatewayCachePricing(selected.info, existing);
const cost = {
input: selected.info.pricing.input_per_million,
output: selected.info.pricing.output_per_million,
reasoning: existing?.cost?.reasoning,
cache_read: cachePricing.read,
cache_write: cachePricing.write,
input_audio: existing?.cost?.input_audio,
output_audio: existing?.cost?.output_audio,
tiers: existing?.cost?.tiers,
};
const status = model.availability_status === "deprecated" || selected.info.availability_status === "deprecated"
? "deprecated" as const
: undefined;
const baseModel = existing?.base_model ?? resolveCanonicalBaseModel(model.model);
// `supports_reasoning` is not part of the documented public schema
// (PublicVendorModelCapabilities) and is inconsistently populated across
// vendor routes: the same model can report `true` on one route and `false`
// on another (e.g. anthropic/claude-opus-4-6 reports `false` via `anthropic`
// and `true` via `bedrock`), and reasoning-only models such as
// deepseek/deepseek-r1 report `false` on their sole route. Treat it as a
// positive-only signal: `true` (always accompanied by route `reasoning`
// metadata) confirms the model reasons on the gateway, while `false`/absent
// means unknown and preserves curated reasoning metadata.
const routeConfirmsReasoning = Object.values(model.vendors).some(
(vendor) => vendor.availability_status === "available" && vendor.capabilities.supports_reasoning === true,
);
const reasoning = routeConfirmsReasoning ? true : existing?.reasoning;
const existingReasoningOptions = existing?.reasoning_options ?? [];
const reasoningOptions = reasoning === true && existingReasoningOptions.length === 0
&& selected.info.capabilities.reasoning?.disable_supported === true
? [{ type: "toggle" as const }]
: reasoning === true
? existingReasoningOptions
: existing?.reasoning_options;
const modelSlug = model.model.split("/").at(-1)?.toLowerCase();
const displayNameIsID = model.display_name.includes("/")
|| model.display_name.toLowerCase() === modelSlug;
const authoritative = {
// Some catalog rows use an upstream org/model ID as display_name. Let
// canonical metadata provide the human-readable name for factored models.
name: baseModel !== undefined && displayNameIsID ? undefined : model.display_name,
attachment: input.some((value) => value !== "text"),
tool_call: selected.info.capabilities.supports_tool_calling,
structured_output: selected.info.capabilities.supports_structured_outputs,
status,
cost,
limit,
modalities: { input, output },
};
if (baseModel !== undefined) {
return factorBaseModel(
baseModel,
{
...authoritative,
description: existing?.description,
reasoning,
reasoning_options: reasoningOptions,
temperature: existing?.temperature,
interleaved: existing?.interleaved,
provider: existing?.provider,
experimental: existing?.experimental,
},
limit,
existing?.base_model_omit,
);
}
if (existing === undefined) return undefined;
const releaseDate = selected.info.launch_date
?? model.created_at?.slice(0, 10)
?? existing.release_date;
if (releaseDate === undefined) return undefined;
const lastUpdated = model.updated_at?.slice(0, 10)
?? existing.last_updated
?? releaseDate;
return {
...authoritative,
description: existing.description ?? describeModel({
id: model.model,
name: model.display_name,
family: existing.family,
reasoning,
tool_call: selected.info.capabilities.supports_tool_calling,
structured_output: selected.info.capabilities.supports_structured_outputs,
open_weights: existing.open_weights,
limit,
modalities: { input, output },
}),
family: existing.family,
release_date: releaseDate,
last_updated: lastUpdated,
reasoning: reasoning ?? false,
reasoning_options: reasoningOptions,
temperature: existing.temperature,
knowledge: existing.knowledge,
open_weights: existing.open_weights ?? false,
interleaved: existing.interleaved,
provider: existing.provider,
experimental: existing.experimental,
} satisfies SyncedFullModel;
}
function mergeGatewayCachePricing(
vendor: MergeGatewayVendor,
existing: ExistingModel | undefined,
) {
const promptCaching = vendor.prompt_caching;
const pricing = vendor.pricing;
if (promptCaching?.mode === "none") {
return { read: undefined, write: undefined };
}
return {
read: promptCaching?.cache_read_cost_per_million
?? pricing.cache_read_per_million
?? existing?.cost?.cache_read,
write: promptCaching?.cache_write_cost_per_million
?? pricing.cache_write_per_million
?? existing?.cost?.cache_write,
};
}
type Modality = "text" | "audio" | "image" | "video" | "pdf";
function modalities(values: string[]): Modality[] {
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
return [...new Set(values
.map((value) => value === "document" ? "pdf" : value)
.filter((value): value is Modality => allowed.has(value as Modality))
)];
}
@@ -0,0 +1,348 @@
import { z } from "zod";
import { inferKimiFamily, ModelFamilyValues } from "../../family.js";
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
import { factorBaseModel, resolveModelMetadataBaseModel } from "./openrouter.js";
const API_ENDPOINT = "https://nano-gpt.com/api/v1/models?detailed=true";
// NanoGPT accepts these exact request values, including `max`:
// https://github.com/Nano-GPT-com/nanogpt/blob/073b25b07e9af619333c679e694de664bf1ceb30/lib/utils/reasoningInput.ts#L12-L28
const ReasoningEffort = z.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
const Pricing = z.object({
prompt: z.number().nullish(),
completion: z.number().nullish(),
input: z.number().nullish(),
output: z.number().nullish(),
cacheReadInputPer1kTokens: z.number().nullish(),
cacheWriteInputPer1kTokens: z.number().nullish(),
note: z.string().optional(),
}).passthrough();
const Architecture = z.object({
input_modalities: z.array(z.string()).optional(),
output_modalities: z.array(z.string()).optional(),
}).passthrough();
const Capabilities = z.object({
vision: z.boolean().optional(),
video_input: z.boolean().optional(),
audio_input: z.boolean().optional(),
reasoning: z.boolean().optional(),
tool_calling: z.boolean().optional(),
structured_output: z.boolean().optional(),
pdf_upload: z.boolean().optional(),
}).passthrough();
export const NanoGptModel = z.object({
id: z.string().min(1),
name: z.string().nullish(),
description: z.string().nullish(),
created: z.number().nullish(),
owned_by: z.string().nullish(),
context_length: z.number().int().nonnegative().nullish(),
max_output_tokens: z.number().int().nonnegative().nullish(),
architecture: Architecture.optional(),
capabilities: Capabilities.optional(),
reasoning_efforts: z.array(ReasoningEffort).nullish(),
open_weights: z.boolean().nullish(),
pricing: Pricing.optional(),
}).passthrough();
export const NanoGptResponse = z.object({
data: z.array(NanoGptModel),
}).passthrough();
export type NanoGptModel = z.infer<typeof NanoGptModel>;
type Modality = "text" | "audio" | "image" | "video" | "pdf";
export const nanoGpt = {
id: "nano-gpt",
name: "NanoGPT",
modelsDir: "providers/nano-gpt/models",
preserveDescriptions: false,
async fetchModels() {
const response = await fetch(process.env.NANO_GPT_MODELS_URL ?? API_ENDPOINT);
if (!response.ok) {
throw new Error(`NanoGPT models request failed: ${response.status} ${response.statusText}`);
}
return response.json();
},
parseModels(raw) {
return NanoGptResponse.parse(raw).data;
},
translateModel(model, context) {
const id = normalizeModelID(model.id);
const existing = context.existing(id);
const baseModel = existing?.base_model ?? resolveNanoGptBaseModel(model.id);
const translated = buildNanoGptModel(model, existing, baseModel);
if (translated === undefined) return undefined;
return {
id,
model: translated,
};
},
} satisfies SyncProvider<NanoGptModel>;
const ORG_ID_NORMALIZATION: Record<string, string | undefined> = {
nousresearch: "NousResearch",
qwen: "qwen",
thedrummer: "TheDrummer",
};
const BASE_MODEL_ALIASES: Record<string, string | undefined> = {
"claude-opus-4": "anthropic/claude-opus-4-0",
"claude-sonnet-4": "anthropic/claude-sonnet-4-0",
"cohere/north-mini-code": "cohere/north-mini-code-1-0",
};
const NANO_GPT_VARIANT_SUFFIX = /(?::(?:thinking|none|minimal|low|medium|high|xhigh|max|\d+)|-thinking)$/i;
const KNOWN_OPEN_WEIGHT_IDS = new Set([
"nex-agi/nex-n2-pro",
]);
export function buildNanoGptModel(
model: NanoGptModel,
existing: ExistingModel | undefined,
baseModel = existing?.base_model ?? resolveNanoGptBaseModel(model.id),
): SyncedModel | undefined {
const capabilities = model.capabilities ?? {};
const explicitInputModalities = model.architecture?.input_modalities;
const hasInputCapabilityMetadata = capabilities.vision !== undefined
|| capabilities.audio_input !== undefined
|| capabilities.video_input !== undefined
|| capabilities.pdf_upload !== undefined;
const addedInputModalities = [
...(capabilities.vision ? ["image"] : []),
...(capabilities.audio_input ? ["audio"] : []),
...(capabilities.video_input ? ["video"] : []),
...(capabilities.pdf_upload ? ["pdf"] : []),
];
const hasInputMetadata = explicitInputModalities !== undefined || hasInputCapabilityMetadata;
const hasOutputMetadata = model.architecture?.output_modalities !== undefined;
const input = normalizeModalities([
...explicitInputModalities
?? (hasInputCapabilityMetadata ? ["text"] : existing?.modalities?.input)
?? ["text"],
...addedInputModalities,
]);
const output = normalizeModalities(
model.architecture?.output_modalities ?? existing?.modalities?.output ?? ["text"],
);
const sourceContext = positive(model.context_length);
const sourceOutputLimit = positive(model.max_output_tokens);
const context = sourceContext ?? existing?.limit?.context;
const inputLimit = sourceContext ?? existing?.limit?.input;
const outputLimit = sourceOutputLimit ?? existing?.limit?.output;
const releaseDate = dateFromTimestamp(model.created) ?? existing?.release_date;
const inferredSourceReasoning = capabilities.reasoning
?? (model.reasoning_efforts != null ? true : undefined);
const reasoning = inferredSourceReasoning ?? existing?.reasoning ?? false;
const cost = buildCost(model.pricing, existing);
if (baseModel !== undefined) {
const existingAlreadyFactored = existing?.base_model === baseModel;
const factoredModalities = {
input: hasInputMetadata || existing !== undefined ? input : undefined,
output: hasOutputMetadata || existing !== undefined ? output : undefined,
};
const factoredLimit = {
context: sourceContext ?? existing?.limit?.context,
input: sourceContext ?? existing?.limit?.input,
output: sourceOutputLimit ?? existing?.limit?.output,
};
const sourceReasoning = inferredSourceReasoning;
const sourceReasoningOptions = reasoningOptions(model, sourceReasoning, existing?.reasoning_options);
return factorBaseModel(
baseModel,
{
name: existing?.name ?? model.name ?? undefined,
description: existingAlreadyFactored ? existing?.description : undefined,
family: existingAlreadyFactored ? existing?.family : undefined,
release_date: existingAlreadyFactored ? existing?.release_date : undefined,
last_updated: existingAlreadyFactored ? existing?.last_updated : undefined,
attachment: hasInputMetadata
? input.some((value) => value !== "text")
: existing?.attachment,
reasoning: sourceReasoning ?? existing?.reasoning,
reasoning_options: sourceReasoningOptions,
temperature: existing?.temperature,
tool_call: capabilities.tool_calling ?? existing?.tool_call,
structured_output: capabilities.structured_output ?? existing?.structured_output,
knowledge: existing?.knowledge,
status: existing?.status,
interleaved: existing?.interleaved,
provider: existing?.provider,
experimental: existing?.experimental,
cost,
limit: factoredLimit,
modalities: factoredModalities,
},
factoredLimit,
existingAlreadyFactored ? existing?.base_model_omit : undefined,
);
}
if (context === undefined || outputLimit === undefined || releaseDate === undefined) {
return undefined;
}
const values = {
name: existing?.name ?? model.name ?? humanizeModelName(model.id),
description: existing?.description ?? model.description ?? `${model.name ?? humanizeModelName(model.id)} on NanoGPT.`,
family: existing?.family ?? inferFamily(model.id, model.name ?? ""),
release_date: releaseDate,
last_updated: existing?.last_updated ?? releaseDate,
attachment: input.some((value) => value !== "text"),
reasoning,
reasoning_options: reasoningOptions(model, reasoning, existing?.reasoning_options),
temperature: existing?.temperature,
tool_call: capabilities.tool_calling ?? existing?.tool_call ?? false,
structured_output: capabilities.structured_output ?? existing?.structured_output,
knowledge: existing?.knowledge,
status: existing?.status,
interleaved: existing?.interleaved,
provider: existing?.provider,
experimental: existing?.experimental,
cost,
limit: { context, input: inputLimit ?? context, output: outputLimit },
modalities: { input, output },
};
return {
...values,
open_weights: model.open_weights
?? (KNOWN_OPEN_WEIGHT_IDS.has(model.id.toLowerCase()) ? true : existing?.open_weights)
?? false,
} satisfies SyncedFullModel;
}
function buildCost(
pricing: NanoGptModel["pricing"],
existing: ExistingModel | undefined,
): SyncedFullModel["cost"] {
if (pricing === undefined) return existing?.cost;
if (pricing.note === "varies_by_modality") return existing?.cost;
const input = pricing.input ?? pricing.prompt;
const output = pricing.output ?? pricing.completion;
if (!validPrice(input) || !validPrice(output)) return existing?.cost;
return {
input: price(input),
output: price(output),
reasoning: existing?.cost?.reasoning,
cache_read: !validPrice(pricing.cacheReadInputPer1kTokens)
? existing?.cost?.cache_read
: price(pricing.cacheReadInputPer1kTokens * 1_000),
cache_write: !validPrice(pricing.cacheWriteInputPer1kTokens)
? existing?.cost?.cache_write
: price(pricing.cacheWriteInputPer1kTokens * 1_000),
input_audio: existing?.cost?.input_audio,
output_audio: existing?.cost?.output_audio,
tiers: existing?.cost?.tiers,
};
}
function reasoningOptions(
model: NanoGptModel,
reasoning: boolean | undefined,
existing: SyncedFullModel["reasoning_options"],
): SyncedFullModel["reasoning_options"] {
if (reasoning === false) return undefined;
if (reasoning === undefined) return existing;
if (model.reasoning_efforts == null) return existing ?? [];
if (model.reasoning_efforts.length === 0) return [];
return [{ type: "effort", values: [...model.reasoning_efforts] }];
}
export function resolveNanoGptBaseModel(modelID: string) {
let normalized = normalizeModelID(modelID);
if (normalized.toLowerCase().startsWith("tee/")) {
normalized = normalizeModelID(normalized.slice("TEE/".length));
}
const exact = resolveNanoGptCanonicalCandidate(normalized);
if (exact !== undefined) return exact;
const stripped = stripNanoGptVariantSuffixes(normalized);
return stripped === normalized ? undefined : resolveNanoGptCanonicalCandidate(stripped);
}
function resolveNanoGptCanonicalCandidate(modelID: string) {
return BASE_MODEL_ALIASES[modelID.toLowerCase()] ?? resolveModelMetadataBaseModel(modelID);
}
function stripNanoGptVariantSuffixes(modelID: string) {
let normalized = modelID;
while (true) {
const stripped = normalized.replace(NANO_GPT_VARIANT_SUFFIX, "");
if (stripped === normalized) return normalized;
normalized = stripped;
}
}
function normalizeModalities(values: string[]): Modality[] {
const allowed = new Set<Modality>(["text", "audio", "image", "video", "pdf"]);
const result = values
.map((value) => normalizeModality(value))
.filter((value): value is Modality => allowed.has(value as Modality));
return [...new Set(result.length > 0 ? result : ["text"] as Modality[])];
}
function normalizeModality(value: string) {
const lower = value.toLowerCase();
if (lower === "images") return "image";
if (lower === "videos") return "video";
if (lower === "audios") return "audio";
if (lower === "documents") return "pdf";
return lower;
}
function normalizeModelID(modelId: string) {
const [org, ...parts] = modelId.split("/");
if (org === undefined || parts.length === 0) return modelId;
const normalizedOrg = ORG_ID_NORMALIZATION[org.toLowerCase()];
return normalizedOrg === undefined ? modelId : `${normalizedOrg}/${parts.join("/")}`;
}
function inferFamily(id: string, name: string) {
const kimiFamily = inferKimiFamily(id, name);
if (kimiFamily !== undefined) return kimiFamily;
const target = `${id} ${name}`.toLowerCase();
return [...ModelFamilyValues]
.sort((a, b) => b.length - a.length)
.find((family) => {
const value = family.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
if (family === "o") return new RegExp(`(^|[^a-z0-9])${value}(?=\\d)`).test(target);
return new RegExp(`(^|[^a-z0-9])${value}(?=$|[^a-z0-9])`).test(target);
});
}
function humanizeModelName(modelId: string) {
const modelPart = modelId.split("/").at(-1) ?? modelId;
return modelPart
.replace(/[:/_-]+/g, " ")
.replace(/\b\w/g, (value) => value.toUpperCase());
}
function dateFromTimestamp(timestamp: number | null | undefined) {
if (timestamp == null || timestamp <= 0) return undefined;
return new Date(timestamp * 1_000).toISOString().slice(0, 10);
}
function positive(value: number | null | undefined) {
return value == null || value <= 0 ? undefined : value;
}
function price(value: number) {
return Math.round(value * 1_000_000) / 1_000_000;
}
function validPrice(value: number | null | undefined): value is number {
return value !== null && value !== undefined && value >= 0;
}
@@ -56,6 +56,9 @@ export const openai = {
name: "OpenAI",
modelsDir: "providers/openai/models",
skipCreates: true,
// /v1/models is account-scoped and includes legacy, internal, and
// non-catalog surfaces without authoritative lifecycle metadata.
trackMissingModels: false,
deleteMissing: false,
sourceID(model) {
return model.id;
+94 -14
View File
@@ -10,6 +10,7 @@ const API_ENDPOINT = "https://openrouter.ai/api/v1/models";
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
const modelMetadataByID = new Map<string, Record<string, unknown>>();
const modelMetadataFilesByProvider = new Map<string, Set<string>>();
let allModelMetadataIDs: string[] | undefined;
const CANONICAL_BASE_MODEL_OVERRIDES = {
"openai/gpt-5.6-luna-pro": "openai/gpt-5.6-luna",
@@ -29,11 +30,14 @@ const CANONICAL_PROVIDER_PREFIXES = {
"meta-llama": { provider: "llama", metadata: "meta" },
minimax: { provider: "minimax", metadata: "minimax" },
mistralai: { provider: "mistral", metadata: "mistral" },
moonshot: { provider: "moonshotai", metadata: "moonshotai" },
moonshotai: { provider: "moonshotai", metadata: "moonshotai" },
openai: { provider: "openai", metadata: "openai" },
nvidia: { provider: "nvidia", metadata: "nvidia" },
qwen: { provider: "alibaba", metadata: "alibaba" },
sakana: { provider: "sakana", metadata: "sakana" },
stepfun: { provider: "stepfun", metadata: "stepfun" },
"stepfun-ai": { provider: "stepfun", metadata: "stepfun" },
tencent: { provider: "tencent", metadata: "tencent" },
thinkingmachines: { provider: "thinkingmachines", metadata: "thinkingmachines" },
"x-ai": { provider: "xai", metadata: "xai" },
@@ -41,6 +45,7 @@ const CANONICAL_PROVIDER_PREFIXES = {
xiaomi: { provider: "xiaomi", metadata: "xiaomi" },
zai: { provider: "zai", metadata: "zhipuai" },
"z-ai": { provider: "zai", metadata: "zhipuai" },
"zai-org": { provider: "zai", metadata: "zhipuai" },
} as const;
export const OpenRouterModel = z.object({
@@ -100,7 +105,8 @@ export const openrouter = {
return response.json();
},
parseModels(raw) {
return OpenRouterResponse.parse(raw).data;
// Temporarily skip batch routes (`*:batch`) — they are not catalog targets.
return OpenRouterResponse.parse(raw).data.filter((model) => !model.id.endsWith(":batch"));
},
translateModel(model, context) {
// OpenRouter serves deprecated/unavailable routes as degraded stubs:
@@ -216,7 +222,7 @@ export function buildOpenRouterModel(
return factorBaseModel(
canonical,
{
name: baseModel !== undefined || model.id.endsWith(":free") || canonicalOverride === canonical
name: shouldPreserveFactoredName(model.id, canonical, baseModel, canonicalOverride)
? name
: undefined,
description: existing?.description ?? describeModel({
@@ -309,19 +315,39 @@ export function resolveCanonicalBaseModel(openrouterID: string) {
if (prefix === undefined || modelParts.length === 0) return undefined;
if (openrouterID.startsWith("~/") || prefix.startsWith("~")) return undefined;
const canonical = CANONICAL_PROVIDER_PREFIXES[prefix as keyof typeof CANONICAL_PROVIDER_PREFIXES];
const canonical = CANONICAL_PROVIDER_PREFIXES[
prefix.toLowerCase() as keyof typeof CANONICAL_PROVIDER_PREFIXES
];
if (canonical === undefined) return undefined;
const modelID = modelParts.join("/").replace(/:free$/, "");
const candidates = canonicalCandidates(canonical.provider, modelID);
const match = candidates.find((candidate) => {
return modelMetadataExists(canonical.metadata, candidate);
});
const match = matchingModelMetadataFile(canonical.metadata, candidates);
return match === undefined ? undefined : `${canonical.metadata}/${match}`;
}
function modelMetadataExists(provider: string, modelID: string) {
/**
* Resolve provider IDs that are not OpenRouter-shaped against the same canonical
* metadata tree. Exact paths win; bare IDs only resolve when their filename is
* unique across every metadata provider.
*/
export function resolveModelMetadataBaseModel(modelID: string) {
const routed = resolveCanonicalBaseModel(modelID);
if (routed !== undefined) return routed;
const normalized = modelID.replace(/:free$/, "");
const ids = modelMetadataIDs();
const exact = ids.find((candidate) => candidate.toLowerCase() === normalized.toLowerCase());
if (exact !== undefined) return exact;
if (normalized.includes("/")) return undefined;
const lower = normalized.toLowerCase();
const matches = ids.filter((candidate) => candidate.split("/").at(-1)?.toLowerCase() === lower);
return matches.length === 1 ? matches[0] : undefined;
}
function matchingModelMetadataFile(provider: string, candidates: string[]) {
let files = modelMetadataFilesByProvider.get(provider);
if (files === undefined) {
try {
@@ -331,7 +357,30 @@ function modelMetadataExists(provider: string, modelID: string) {
}
modelMetadataFilesByProvider.set(provider, files);
}
return files.has(`${modelID}.toml`);
for (const candidate of candidates) {
const expected = `${candidate}.toml`.toLowerCase();
const match = [...files].find((file) => file.toLowerCase() === expected);
if (match !== undefined) return match.slice(0, -".toml".length);
}
return undefined;
}
function modelMetadataIDs() {
if (allModelMetadataIDs !== undefined) return allModelMetadataIDs;
try {
allModelMetadataIDs = readdirSync(MODELS_DIR, { withFileTypes: true })
.filter((entry) => entry.isDirectory())
.flatMap((entry) => {
return readdirSync(path.join(MODELS_DIR, entry.name))
.filter((file) => file.endsWith(".toml"))
.map((file) => `${entry.name}/${file.slice(0, -".toml".length)}`);
});
} catch {
allModelMetadataIDs = [];
}
return allModelMetadataIDs;
}
function canonicalBaseModelOverride(openrouterID: string) {
@@ -340,10 +389,36 @@ function canonicalBaseModelOverride(openrouterID: string) {
];
}
function shouldPreserveFactoredName(
modelID: string,
canonical: string,
baseModel: string | undefined,
canonicalOverride: string | undefined,
) {
if (baseModel !== undefined) return true;
if (modelID.endsWith(":free")) return true;
if (canonicalOverride === canonical) return true;
const modelSlug = modelID.split("/").slice(1).join("/").replace(/:free$/, "");
const canonicalSlug = canonical.split("/").slice(1).join("/");
return normalizeModelSlug(modelSlug) !== normalizeModelSlug(canonicalSlug);
}
function normalizeModelSlug(value: string) {
return value.toLowerCase().replaceAll(/[^a-z0-9]/g, "");
}
type BaseModelOverrides = Omit<Partial<SyncedFullModel>, "limit" | "modalities"> & {
limit?: Partial<SyncedFullModel["limit"]>;
modalities?: {
input?: SyncedFullModel["modalities"]["input"];
output?: SyncedFullModel["modalities"]["output"];
};
};
export function factorBaseModel(
modelID: string,
values: Partial<SyncedFullModel>,
limit: SyncedFullModel["limit"],
values: BaseModelOverrides,
limit?: Partial<SyncedFullModel["limit"]>,
existingOmit?: string[],
): SyncedModel {
return {
@@ -355,14 +430,16 @@ export function factorBaseModel(
function baseModelOmit(
modelID: string,
limit: SyncedFullModel["limit"],
limit: Partial<SyncedFullModel["limit"]> | undefined,
) {
if (limit === undefined) return undefined;
const metadata = modelMetadata(modelID);
const omit: string[] = [];
const baseLimit = metadata.limit;
if (
isPlainObject(baseLimit) &&
baseLimit.input !== undefined &&
limit.context !== undefined &&
limit.input === undefined &&
baseLimit.context !== limit.context
) {
@@ -374,7 +451,7 @@ function baseModelOmit(
function baseModelOverrides(
modelID: string,
values: Partial<SyncedFullModel>,
values: BaseModelOverrides,
) {
const metadata = modelMetadata(modelID);
const result: Record<string, unknown> = {};
@@ -451,10 +528,13 @@ function modelMetadata(modelID: string) {
function canonicalCandidates(provider: string, modelID: string) {
const candidates = [modelID];
if (modelID.endsWith("-fast")) candidates.push(modelID.slice(0, -"-fast".length));
if (provider === "anthropic") {
candidates.push(modelID.replace(/(claude-(?:opus|sonnet|haiku)-\d+)\.(\d+)/, "$1-$2"));
candidates.push(modelID.replace(/^claude-3\.5-/, "claude-3-5-"));
for (const candidate of [...candidates]) {
candidates.push(candidate.replace(/(claude-(?:opus|sonnet|haiku)-\d+)\.(\d+)/, "$1-$2"));
candidates.push(candidate.replace(/^claude-3\.5-/, "claude-3-5-"));
}
}
if (provider === "llama") {
@@ -92,6 +92,9 @@ export const pioneer = {
name: "Pioneer",
modelsDir: "providers/pioneer/models",
skipCreates: true,
// Pioneer reports 2024-01-01 for every model, so its creation dates cannot
// support a meaningful age cutoff for remote-only model notifications.
trackMissingModels: false,
deleteMissing: false,
async fetchModels() {
const response = await fetch(API_ENDPOINT);
+20 -8
View File
@@ -206,14 +206,26 @@ export function resolveVeniceBaseModel(id: string, name: string) {
const alias = BASE_MODEL_ALIASES[id];
if (alias !== undefined) return alias;
const entries = getMetadataEntries();
const normalizedID = normalize(id);
const normalizedName = normalize(name);
const ranked = [
entries.filter((entry) => entry.normalizedFull === normalizedID),
entries.filter((entry) => entry.normalizedFilename === normalizedID),
entries.filter((entry) => entry.normalizedFilename === normalizedName),
];
return ranked.find((matches) => matches.length === 1)?.[0]?.id;
for (const candidate of veniceBaseModelCandidates(id, name)) {
const normalized = normalize(candidate);
const ranked = [
entries.filter((entry) => entry.normalizedFull === normalized),
entries.filter((entry) => entry.normalizedFilename === normalized),
];
const match = ranked.find((matches) => matches.length === 1)?.[0]?.id;
if (match !== undefined) return match;
}
return undefined;
}
function veniceBaseModelCandidates(id: string, name: string) {
const candidates = [id, name];
for (const value of [id, name]) {
if (value.toLowerCase().endsWith("-fast")) candidates.push(value.slice(0, -"-fast".length));
const withoutFastLabel = value.replace(/\s*\(?\s*fast\s*\)?\s*$/i, "").trim();
if (withoutFastLabel !== "" && withoutFastLabel !== value) candidates.push(withoutFastLabel);
}
return [...new Set(candidates)];
}
function getMetadataEntries() {
+8 -2
View File
@@ -39,7 +39,10 @@ export const xai = {
modelsDir: "providers/xai/models",
skipCreates: true,
sourceID(model) {
return model.id;
// Alias rows (canonical_id set) exist only to update already-cataloged
// alias TOMLs; the canonical row carries the missing-model signal, so
// skipped aliases must not be reported as missing models.
return model.canonical_id === undefined ? model.id : undefined;
},
skippedNotice(ids) {
if (ids.length === 0) return [];
@@ -69,7 +72,10 @@ export const xai = {
for (const model of models) {
if (!seen.has(model.id)) {
seen.add(model.id);
expanded.push(model);
// Strip any API-provided canonical_id: sourceID relies on it being set
// exclusively by the synthetic alias expansion below, so an API row
// carrying it must not be mistaken for an alias and silently skipped.
expanded.push({ ...model, canonical_id: undefined });
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,42 @@
# Sources (accessed 2026-07-28):
# - Model card, limits (1M context, 999,990 max output), capabilities, GLM-5.2 base:
# https://docs.abliteration.ai/models
# - Reasoning effort ladder and per-endpoint request fields:
# https://docs.abliteration.ai/capabilities/thinking
# - Pricing ($5 per 1M tokens, flat input + output):
# https://docs.abliteration.ai/pricing
# https://abliteration.ai/pricing#api-pricing
# - Launch announcement (base model, fine-tuning, benchmarks):
# https://abliteration.ai/blog/introducing-abliterated-model-large
name = "Abliterated Model Large"
description = "GLM-5.2 model abliterated and finetuned for cyber, ML red teaming, and agent testing"
release_date = "2026-07-25"
last_updated = "2026-07-28"
attachment = false
reasoning = true
tool_call = true
structured_output = true
temperature = true
open_weights = false
# Two distinct reasoning depths: high and max. The API also accepts the other
# ladder values as aliases, mapping minimal-high -> high and xhigh-max -> max.
[[reasoning_options]]
type = "effort" # API: {"reasoning_effort": "<value>"} on /v1/chat/completions
values = ["none", "high", "max"]
[[reasoning_options]]
type = "toggle" # API: {"thinking": false} on /v1/messages (legacy alias on /v1/chat/completions)
[cost]
input = 5.00
output = 5.00
[limit]
context = 1_000_000
input = 1_000_000
output = 999_990
[modalities]
input = ["text"]
output = ["text"]
@@ -1,20 +1,27 @@
# Sources (accessed 2026-07-28):
# - Model card and capabilities: https://docs.abliteration.ai/models
# - Reasoning effort ladder and per-endpoint request fields (reasoning on by
# default; "none" disables; top-level thinking:false disables on
# /v1/messages and as a legacy alias on /v1/chat/completions):
# https://docs.abliteration.ai/capabilities/thinking
name = "Abliterated Model"
description = "Multimodal model for analyzing text, images, documents, and rich media"
# Reasoning HTTP format (accessed 2026-06-25):
# This model thinks by default. On POST /v1/chat/completions or /v1/messages,
# top-level `thinking: false` skips thinking; omission keeps it enabled.
# Sources:
# https://docs.abliteration.ai/models
# https://docs.abliteration.ai/capabilities/thinking
release_date = "2026-01-06"
last_updated = "2026-01-06"
last_updated = "2026-07-28"
attachment = true
reasoning = false
reasoning = true
tool_call = true
structured_output = false
temperature = true
open_weights = true
[[reasoning_options]]
type = "effort" # API: {"reasoning_effort": "<value>"} on /v1/chat/completions
values = ["none", "minimal", "low", "medium", "high", "xhigh", "max"]
[[reasoning_options]]
type = "toggle" # API: {"thinking": false} on /v1/messages (legacy alias on /v1/chat/completions)
[cost]
input = 3.00
output = 3.00
+11 -7
View File
@@ -1,12 +1,16 @@
# Reasoning controls for the whole API surface (verified 2026-07-28):
# https://docs.abliteration.ai/capabilities/thinking
# Both models reason by default. Effort ladder, least to most:
# none (disables reasoning), minimal, low, medium, high, xhigh, max.
# Request field per endpoint:
# - POST /v1/chat/completions: top-level "reasoning_effort": "<level>"
# (legacy top-level "thinking": false also disables reasoning)
# - POST /v1/responses: "reasoning": { "effort": "<level>" }
# - POST /v1/messages: "output_config": { "effort": "<level>" } or
# "thinking": { "type": "enabled", "budget_tokens": <n> };
# "thinking": false disables reasoning
name = "abliteration.ai"
env = ["ABLIT_KEY"]
npm = "@ai-sdk/openai-compatible"
# Reasoning HTTP format (accessed 2026-06-25):
# POST /v1/chat/completions and POST /v1/messages: top-level `thinking` is true
# by default; false skips thinking. POST /v1/responses has no thinking toggle.
# No effort or numeric reasoning-budget request field is documented.
# Sources:
# https://docs.abliteration.ai/capabilities/thinking
# https://docs.abliteration.ai/compatibility-matrix
api = "https://api.abliteration.ai/v1"
doc = "https://docs.abliteration.ai/models"
+5
View File
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 471 1280 430" width="24" height="24" fill="currentColor">
<g transform="translate(0 430)">
<path d="m1036.05 174.114 102.7-59.232 27.43 45.579c-140.14 75.45-215.743 92.363-192.311 166.512 35.811 65.478 124.001 31.082 146.991 2.463l-70.6-67.493 42.37-23.43c16.5 16.189 56.74 54.391 62.04 59.247 3.54-1.734 16.73-9.813 20-31.494h58.22c-14.86 33.303-28.14 42.07-41.99 63.027l78.56 80.071h-68.68l-41.87-41.008c-102.57 84.123-227.969 43.61-244.725-27.506-20.512-87.072 40.084-129.654 72.947-140.061l-60.566-59.407 40.229-30.788z"/><path d="m1036.63 168.825 103.63-59.764 31.92 53.045-3.97 2.133c-35.1 18.898-66.18 34.144-92.56 47.473-26.46 13.367-48.07 24.753-64.54 36.034-16.493 11.29-27.372 22.169-32.878 34.311-5.393 11.892-5.894 25.599-.394 43.228 16.822 30.395 45.632 37.773 73.752 33.954 14.16-1.922 27.99-6.69 39.67-12.719 9.99-5.159 18.2-11.133 23.65-16.829l-71.83-68.678 50.27-27.802 2.28 2.239c14.96 14.668 49.44 47.446 59.63 56.991 4.51-3.073 12.75-10.777 15.16-26.813l.55-3.653h68.53l-2.69 6.039c-7.59 17.006-14.81 27.813-21.89 37.013-6.49 8.43-12.38 14.952-18.5 23.766l83.27 84.862h-80.66l-40.4-39.564c-51.46 40.852-108.42 51.515-155.04 42.947-47.298-8.693-84.683-37.436-93.581-75.205-10.543-44.75-.266-78.449 17.17-102.295 15.196-20.783 35.684-33.899 52.071-40.471l-59.221-58.087L967.044 105zm-103.529-27.043 62.132 60.942-6.805 2.155c-15.704 4.973-38.249 17.742-54.321 39.723-15.95 21.815-25.715 52.943-15.745 95.263 7.857 33.348 41.551 60.42 86.778 68.732 45.01 8.271 100.72-2.284 151.05-43.558l2.97-2.441 43.37 42.475h56.71l-73.83-75.252 1.91-2.894c7.03-10.63 14.15-18.506 20.8-27.136 5.86-7.615 11.81-16.351 18.04-29.234h-47.91c-4.39 20.767-17.52 29.015-21.69 31.055l-2.62 1.289-2.16-1.976c-5.12-4.687-42.19-39.874-59.87-57.113l-34.46 19.062 69.22 66.18-2.47 3.07c-6.24 7.773-16.62 15.627-29.01 22.022-12.44 6.423-27.2 11.528-42.44 13.597-30.56 4.149-63.629-3.94-82.646-38.711l-.2-.367-.127-.398c-6.084-19.255-5.892-35.353.639-49.755 6.458-14.241 18.845-26.21 35.844-37.848 17.01-11.647 39.12-23.271 65.52-36.612 25.47-12.872 55.05-27.396 88.4-45.244l-22.93-38.105-101.78 58.7-68.924-63.215zM859.42 416.999h-71.842V118.77h71.842z"/><ellipse cx="823.5" cy="41" rx="45.5" ry="41"/><path d="M562.718 418q-37.308 0-61.977-12.41-24.672-12.409-36.705-33.091C452.003 351.817 452 343.743 452 327.59q0-28.363 14.442-49.044 15.044-20.683 43.925-31.909 28.885-11.82 71.004-11.819h76.422q0-23.636-6.619-39-6.62-15.954-20.459-23.636-13.841-7.682-35.502-7.682-24.673 0-42.121 11.227-17.453 10.636-21.663 33.091h-71.006q3.613-31.91 21.663-54.363 18.053-23.046 47.537-35.455 30.087-13 65.59-13 42.723 0 72.807 14.773 30.087 14.181 45.734 41.363Q730 188.728 730 226.546V410.91h-61.377l-7.22-47.864q-6.018 11.819-15.646 21.863-9.024 10.046-21.061 17.727-12.035 7.091-27.679 11.227-15.044 4.138-34.299 4.137m16.246-56.136q17.453 0 30.689-5.91 13.84-6.5 23.468-17.727 10.229-11.817 15.646-25.999 5.415-14.183 7.22-30.137v-1.182h-66.793q-21.06 0-34.899 5.317-13.84 4.73-19.859 14.182-6.015 9.456-6.016 21.865 0 12.409 6.016 21.272 6.02 8.865 17.452 13.592t27.076 4.727M347.361 144.73c11.758-9.086 28.639-.54 28.639 14.498v240.577c0 10.049-7.991 18.195-17.852 18.195H347.19a4.16 4.16 0 0 1-3.016-1.303l-69.965-73.545c-5.775-6.07-15.036-6.935-21.798-2.034l-104.986 76.09a4.15 4.15 0 0 1-2.434.792H46.885c-17.106-.002-24.416-22.157-10.786-32.693z"/><path d="M348.028 5.818c9.296-7.073 22.68.092 21.943 12.195l-4.377 71.729c-.254 4.158-2.288 7.974-5.534 10.441L21.965 357.192C12.975 364.026 0 357.569 0 345.873V277.68c0-4.473 2.072-8.662 5.557-11.315z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -0,0 +1,20 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24). GET /v1/models reports context_window = 1048576 (the catalog
# rounds this to "1M" and the shared base model to 1_000_000), so the exact
# figure is overridden here.
# reasoning_effort verified by live probe on 2026-07-24: all six documented
# values accepted ("none" produces no reasoning content, "high" does);
# invalid values rejected with 400 (negative control).
base_model = "deepseek/deepseek-v4-flash"
[[reasoning_options]]
type = "effort"
values = ["none", "minimal", "low", "medium", "high", "xhigh"]
[cost]
input = 0.15
output = 0.25
[limit]
context = 1_048_576
output = 384_000
@@ -0,0 +1,19 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24). GET /v1/models reports context_window = 1048576 (the catalog
# rounds this to "1M" and the shared base model to 1_000_000), so the exact
# figure is overridden here.
# reasoning_effort verified by live probe on 2026-07-24: all six documented
# values accepted; invalid values rejected with 400 (negative control).
base_model = "deepseek/deepseek-v4-pro"
[[reasoning_options]]
type = "effort"
values = ["none", "minimal", "low", "medium", "high", "xhigh"]
[cost]
input = 1.00
output = 2.50
[limit]
context = 1_048_576
output = 384_000
@@ -0,0 +1,22 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24) and live probes against api.aiand.com on the same date.
# Verified by direct test: image (data URL), video (video_url), and PDF
# (Files API purpose="document", referenced by file_id) inputs all accepted.
# ai& converts PDFs to per-page images at upload, so "pdf" is a provider
# input modality here even though the base model itself is not PDF-native.
# reasoning_effort verified by live probe on 2026-07-24: all six documented
# values accepted ("none" produces no reasoning content, "high" does);
# invalid values rejected with 400 (negative control).
base_model = "google/gemma-4-31b-it"
[[reasoning_options]]
type = "effort"
values = ["none", "minimal", "low", "medium", "high", "xhigh"]
[cost]
input = 0.20
output = 0.50
[modalities]
input = ["text", "image", "video", "pdf"]
output = ["text"]
@@ -0,0 +1,20 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24) and live probes against api.aiand.com on the same date.
# Verified by direct test: image and PDF (Files API, file_id) inputs are
# accepted; video is rejected ("does not support video input"), so modalities
# are overridden from the shared base model's text+image+video.
# reasoning_effort verified by live probe on 2026-07-24: all six documented
# values accepted; invalid values rejected with 400 (negative control).
base_model = "moonshotai/kimi-k2.7-code"
[[reasoning_options]]
type = "effort"
values = ["none", "minimal", "low", "medium", "high", "xhigh"]
[cost]
input = 0.75
output = 3.50
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -0,0 +1,24 @@
# Source: GET https://api.aiand.com/v1/models (USD list prices; accessed
# 2026-07-28). Pricing is aiand-specific: $3.00 input, $0.50 cache_read,
# $12.50 output (differs from Moonshot official rates).
# Modalities: text + image + pdf accepted per GET /v1/models; video rejected
# ("does not support video input") — overridden from shared base
# text+image+video. PDF kept: sibling aiand Moonshot entries (kimi-k2.6,
# kimi-k2.7-code) include pdf after catalog/probe evidence; aiand treats
# PDF as a provider-level Files API modality.
# reasoning_effort verified live: gateway schema accepts
# none/minimal/low/medium/high/xhigh/max, but the K3 backend only accepts
# none/low/high/max (minimal/medium/xhigh rejected). Invalid values rejected
# with 400 (negative control).
base_model = "moonshotai/kimi-k3"
reasoning_options = [{ type = "effort", values = ["none", "low", "high", "max"] }]
[cost]
input = 3.00
cache_read = 0.50
output = 12.50
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -0,0 +1,14 @@
# Source: https://docs.aiand.com/models/catalog/ (accessed 2026-07-18)
# reasoning_effort verified by live probe on 2026-07-24: the backend rejects
# "none", "minimal", and "xhigh" with 400 ("Supported values are: high,
# medium, low"), so the array is narrowed from the gateway-wide documented
# set. Invalid values also rejected with 400 (negative control).
base_model = "openai/gpt-oss-120b"
[[reasoning_options]]
type = "effort"
values = ["low", "medium", "high"]
[cost]
input = 0.15
output = 0.60
@@ -0,0 +1,24 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24) and live probes against api.aiand.com on the same date.
# Listed as free ("no charges, ideal for evals") in the catalog's Quick picks.
# ai&'s deployment rejects image input ("does not support image input") and
# the catalog lists no vision/video/audio capability, so modalities are
# overridden from the shared base model's text+image+video+audio to text-only,
# and attachment is set to false to match.
# reasoning_effort verified by live probe on 2026-07-24: all six documented
# values accepted; invalid values rejected with 400 (negative control).
base_model = "alibaba/qwen3.6-27b"
attachment = false
[[reasoning_options]]
type = "effort"
values = ["none", "minimal", "low", "medium", "high", "xhigh"]
[cost]
input = 0
output = 0
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,19 @@
# Source: https://docs.aiand.com/models/catalog/ (USD list prices; accessed
# 2026-07-24). GET /v1/models reports context_window = 1048576 (the catalog
# rounds this to "1M" and the shared base model to 1_000_000), so the exact
# figure is overridden here.
# reasoning_effort verified by live probe on 2026-07-24: all six documented
# values accepted; invalid values rejected with 400 (negative control).
base_model = "zhipuai/glm-5.2"
[[reasoning_options]]
type = "effort"
values = ["none", "minimal", "low", "medium", "high", "xhigh"]
[cost]
input = 1.00
output = 4.00
[limit]
context = 1_048_576
output = 131_072
+5
View File
@@ -0,0 +1,5 @@
name = "ai&"
npm = "@ai-sdk/openai-compatible"
env = ["AIAND_API_KEY"]
doc = "https://docs.aiand.com/"
api = "https://api.aiand.com/v1"
+26
View File
@@ -0,0 +1,26 @@
# AIHubMix model page documents Kimi K3 pricing, supported input modalities
# (text, vision, video), and a 1M-token context window.
# Source accessed 2026-07-27:
# https://aihubmix.com/model/kimi-k3
base_model = "moonshotai/kimi-k3"
last_updated = "2026-07-27"
[interleaved]
field = "reasoning_content"
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "effort"
values = ["low", "high", "max"]
[cost]
input = 3.00
output = 15.00
cache_read = 0.30
[modalities]
input = ["text", "image", "video"]
output = ["text"]
@@ -2,6 +2,8 @@ base_model = "minimax/MiniMax-M2.5"
# Reasoning HTTP format (accessed 2026-06-25):
# Alibaba-deployed MiniMax-M2.5 is thinking-only. No toggle, effort, or numeric
# reasoning-budget request field is documented for this model.
# Output ceiling 32,768 (probed 2026-07-24: accepts max_tokens 32,768, rejects
# 32,769); the prior 24,576 was wrong.
# Sources:
# https://help.aliyun.com/zh/model-studio/deep-thinking
reasoning_options = []
@@ -18,4 +20,4 @@ cache_write = 0
[limit]
context = 196_608
input = 196_601
output = 24_576
output = 32_768
@@ -17,3 +17,4 @@ field = "reasoning_content"
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -17,3 +17,4 @@ field = "reasoning_content"
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -1,5 +1,8 @@
base_model = "zhipuai/glm-5"
# structured_output: the Token Plan gateway accepts response_format json_schema
# (probed 2026-07-24) even though the base model and console report none.
open_weights = false
structured_output = true
[[reasoning_options]]
type = "toggle"
@@ -0,0 +1,30 @@
# HappyHorse 1.1 image-to-video. Served on the ASYNC video-synthesis endpoint,
# not the OpenAI-compatible /models list: POST
# https://token-plan.cn-beijing.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
# with header `X-DashScope-Async: enable`, then poll GET /api/v1/tasks/{task_id}.
# Family entitlement confirmed live 2026-07-24 on both Token Plan tiers. Credit-
# billed (prepaid), so per-token cost is 0.
# Sources:
# https://help.aliyun.com/zh/model-studio/happyhorse-text-to-video-api-reference
# https://help.aliyun.com/zh/model-studio/token-plan-overview
name = "HappyHorse 1.1 Image-to-Video"
description = "Video model for image-to-video generation"
release_date = "2026-07-17"
last_updated = "2026-07-17"
attachment = true
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 0
output = 0
[modalities]
input = ["image", "text"]
output = ["video"]
@@ -0,0 +1,30 @@
# HappyHorse 1.1 reference-to-video. Served on the ASYNC video-synthesis endpoint,
# not the OpenAI-compatible /models list: POST
# https://token-plan.cn-beijing.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
# with header `X-DashScope-Async: enable`, then poll GET /api/v1/tasks/{task_id}.
# Family entitlement confirmed live 2026-07-24 on both Token Plan tiers. Credit-
# billed (prepaid), so per-token cost is 0.
# Sources:
# https://help.aliyun.com/zh/model-studio/happyhorse-text-to-video-api-reference
# https://help.aliyun.com/zh/model-studio/token-plan-overview
name = "HappyHorse 1.1 Reference-to-Video"
description = "Video model for reference-guided video generation"
release_date = "2026-07-17"
last_updated = "2026-07-17"
attachment = true
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 0
output = 0
[modalities]
input = ["image", "text"]
output = ["video"]
@@ -0,0 +1,31 @@
# HappyHorse 1.1 text-to-video. Served on the ASYNC video-synthesis endpoint,
# not the OpenAI-compatible /models list: POST
# https://token-plan.cn-beijing.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
# with header `X-DashScope-Async: enable`, then poll GET /api/v1/tasks/{task_id}.
# Entitlement confirmed live 2026-07-24 on both Token Plan tiers (Singapore probe;
# China shares the catalogue). Credit-billed (prepaid), so per-token cost is 0.
# Params: resolution 720P/1080P, ratio, duration 3-15s.
# Sources:
# https://help.aliyun.com/zh/model-studio/happyhorse-text-to-video-api-reference
# https://help.aliyun.com/zh/model-studio/token-plan-overview
name = "HappyHorse 1.1 Text-to-Video"
description = "Video model for prompt-driven text-to-video generation"
release_date = "2026-07-17"
last_updated = "2026-07-17"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 0
output = 0
[modalities]
input = ["text"]
output = ["video"]
@@ -2,10 +2,15 @@ base_model = "moonshotai/kimi-k2.5"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid model: top-level `enable_thinking` true enables thinking; false is the
# default. `thinking_budget` is an integer token cap; no bounds are documented.
# structured_output: gateway accepts response_format json_schema (probed
# 2026-07-24), so the earlier base_model_omit was wrong and is dropped.
# Output cap 98,304: the enforced max_tokens ceiling (gateway rejects above it);
# a max_tokens=17,000 request truncated at exactly 17,000 (finish_reason=length),
# disproving the console/price-sheet "16K". This differs from k2.6/k2.7-code's
# 262,144 ceiling.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/kimi-api
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
base_model_omit = ["structured_output"]
family = "kimi-k2"
attachment = true
temperature = true
@@ -23,4 +28,4 @@ cache_read = 0
cache_write = 0
[limit]
output = 32_768
output = 98_304
@@ -2,10 +2,16 @@ base_model = "moonshotai/kimi-k2.6"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid model: top-level `enable_thinking` true enables thinking; false is the
# default. `thinking_budget` is an integer token cap; no bounds are documented.
# structured_output: gateway accepts response_format json_schema (probed
# 2026-07-24), so the earlier base_model_omit was wrong and is dropped.
# Output: the prior 16,384 override was wrong. A max_tokens=17,000 request
# truncated at exactly 17,000 (finish_reason=length) and a real run emitted
# 33,718 tokens (finish_reason=stop); max_tokens accepts up to 262,144 and
# rejects 262,145, so output is bounded only by the context window. The override
# is removed so it inherits the base model's 262,144.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/kimi-api
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
base_model_omit = ["structured_output"]
family = "kimi-k2"
[[reasoning_options]]
@@ -19,6 +25,3 @@ input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 16_384
@@ -2,10 +2,13 @@ base_model = "moonshotai/kimi-k2.7-code"
# Reasoning HTTP format (accessed 2026-06-25):
# Thinking-only model: `enable_thinking` defaults to true and cannot disable
# thinking. `thinking_budget` is an integer token cap; no bounds are documented.
# structured_output: gateway accepts response_format json_schema (probed
# 2026-07-24: a strict schema request returned {"name":"Alice","age":30} with
# finish_reason=stop and no "json" keyword needed), so the earlier
# base_model_omit was wrong and is dropped.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/kimi-api
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
base_model_omit = ["structured_output"]
family = "kimi-k2"
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens" }]
@@ -1,8 +1,11 @@
base_model = "alibaba/qwen3.6-flash"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 81920; no minimum or disable sentinel is
# integer `thinking_budget`; the gateway ENFORCES a max of 131072 (probed 2026-07-24:
# accepts 131072, rejects 131073) - Alibaba's docs say 81920 but the gateway exceeds it. No
# minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# Reasoning streams in `reasoning_content` (hence [interleaved], added 2026-07-24).
# Sources:
# https://help.aliyun.com/zh/model-studio/deep-thinking
# https://help.aliyun.com/zh/model-studio/compatibility-with-openai-responses-api
@@ -12,7 +15,10 @@ type = "toggle"
[[reasoning_options]]
type = "budget_tokens"
max = 81_920
max = 131_072
[interleaved]
field = "reasoning_content"
[cost]
input = 0
@@ -1,18 +1,28 @@
base_model = "alibaba/qwen3.6-plus"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 81920; no minimum or disable sentinel is
# integer `thinking_budget`; the gateway ENFORCES a max of 131072 (probed 2026-07-24:
# accepts 131072, rejects 131073) - Alibaba's docs say 81920 but the gateway exceeds it. No
# minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# Reasoning streams in `reasoning_content` (hence [interleaved], added 2026-07-24).
# structured_output: the gateway now accepts response_format json_schema (probed
# 2026-07-24); the base model reports none. Matches sibling qwen3.6-flash.
# Sources:
# https://help.aliyun.com/zh/model-studio/deep-thinking
# https://help.aliyun.com/zh/model-studio/compatibility-with-openai-responses-api
structured_output = true
[[reasoning_options]]
type = "toggle"
[[reasoning_options]]
type = "budget_tokens"
max = 81_920
max = 131_072
[interleaved]
field = "reasoning_content"
[cost]
input = 0
@@ -3,10 +3,18 @@ base_model = "alibaba/qwen3.7-max"
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 262144; no minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# structured_output: the Token Plan gateway accepts response_format json_schema
# (probed 2026-07-24) even though the base model / console report none. Reasoning
# streams in `reasoning_content` (hence [interleaved]).
# Output ceiling 131,072 (probed 2026-07-24: accepts max_tokens 131,072,
# rejects 131,073) is double the base model's 65,536 and double its sibling
# qwen3.7-plus, so output is overridden below.
# Sources:
# https://help.aliyun.com/zh/model-studio/deep-thinking
# https://help.aliyun.com/zh/model-studio/compatibility-with-openai-responses-api
structured_output = true
[[reasoning_options]]
type = "toggle"
@@ -14,8 +22,14 @@ type = "toggle"
type = "budget_tokens"
max = 262_144
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 131_072
@@ -3,10 +3,18 @@ base_model = "alibaba/qwen3.7-plus"
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 262144; no minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# structured_output: the Token Plan gateway accepts response_format json_schema
# (probed 2026-07-24) even though the base model / console report none. Reasoning
# streams in `reasoning_content` (hence [interleaved]).
# Output ceiling 65,536 (probed 2026-07-24: accepts max_tokens 65,536, rejects
# 65,537). The inherited model-metadata value is 64,000; overridden below to
# the gateway-enforced 65,536.
# Sources:
# https://help.aliyun.com/zh/model-studio/deep-thinking
# https://help.aliyun.com/zh/model-studio/compatibility-with-openai-responses-api
structured_output = true
[[reasoning_options]]
type = "toggle"
@@ -14,8 +22,14 @@ type = "toggle"
type = "budget_tokens"
max = 262_144
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 65_536
@@ -15,8 +15,11 @@
# not disable thinking. API: {"reasoning_effort":"medium"} or
# {"thinking_budget":16384}. `preserve_thinking` defaults to true, so clients must
# replay every historical `reasoning_content` value unchanged.
# structured_output: the gateway accepts response_format json_schema (probed
# 2026-07-24 on the Singapore endpoint; China shares the catalogue).
base_model = "alibaba/qwen3.8-max-preview"
structured_output = true
reasoning_options = [
{ type = "effort", values = ["low", "medium", "xhigh"] },
{ type = "budget_tokens", min = 0, max = 262_144 },
@@ -2,6 +2,8 @@ base_model = "minimax/MiniMax-M2.5"
# Reasoning HTTP format (accessed 2026-06-25):
# Alibaba-deployed MiniMax-M2.5 is thinking-only. No toggle, effort, or numeric
# reasoning-budget request field is documented for this model.
# Output ceiling 32,768 (probed 2026-07-24: accepts max_tokens 32,768, rejects
# 32,769); the prior 24,576 was wrong.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
@@ -19,4 +21,4 @@ cache_write = 0
[limit]
context = 196_608
input = 196_601
output = 24_576
output = 32_768
@@ -16,3 +16,4 @@ field = "reasoning_content"
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -16,3 +16,4 @@ field = "reasoning_content"
input = 0
output = 0
cache_read = 0
cache_write = 0
@@ -1,5 +1,8 @@
base_model = "zhipuai/glm-5"
# structured_output: the Token Plan gateway accepts response_format json_schema
# (probed 2026-07-24) even though the base model and console report none.
open_weights = false
structured_output = true
reasoning_options = [{ type = "toggle" }]
[interleaved]
@@ -0,0 +1,30 @@
# HappyHorse 1.1 image-to-video. Served on the ASYNC video-synthesis endpoint,
# not the OpenAI-compatible /models list: POST
# https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
# with header `X-DashScope-Async: enable`, then poll GET /api/v1/tasks/{task_id}.
# Family entitlement confirmed live 2026-07-24 on both Token Plan tiers (Personal
# and Team). Credit-billed (prepaid), so per-token cost is 0.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/happyhorse-text-to-video-api-reference
# https://www.alibabacloud.com/help/en/model-studio/token-plan-overview
name = "HappyHorse 1.1 Image-to-Video"
description = "Video model for image-to-video generation"
release_date = "2026-07-17"
last_updated = "2026-07-17"
attachment = true
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 0
output = 0
[modalities]
input = ["image", "text"]
output = ["video"]
@@ -0,0 +1,30 @@
# HappyHorse 1.1 reference-to-video. Served on the ASYNC video-synthesis endpoint,
# not the OpenAI-compatible /models list: POST
# https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
# with header `X-DashScope-Async: enable`, then poll GET /api/v1/tasks/{task_id}.
# Family entitlement confirmed live 2026-07-24 on both Token Plan tiers (Personal
# and Team). Credit-billed (prepaid), so per-token cost is 0.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/happyhorse-text-to-video-api-reference
# https://www.alibabacloud.com/help/en/model-studio/token-plan-overview
name = "HappyHorse 1.1 Reference-to-Video"
description = "Video model for reference-guided video generation"
release_date = "2026-07-17"
last_updated = "2026-07-17"
attachment = true
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 0
output = 0
[modalities]
input = ["image", "text"]
output = ["video"]
@@ -0,0 +1,32 @@
# HappyHorse 1.1 text-to-video. Served on the ASYNC video-synthesis endpoint,
# not the OpenAI-compatible /models list, so it does not appear in a /models
# listing: POST https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis
# with header `X-DashScope-Async: enable`, then poll GET /api/v1/tasks/{task_id}.
# Entitlement confirmed live 2026-07-24 on both Token Plan tiers (Personal and
# Team keys each accepted a t2v job: task_id + PENDING->RUNNING, no error).
# Credit-billed (prepaid), so per-token cost is 0. Params: resolution 720P/1080P,
# ratio, duration 3-15s.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/happyhorse-text-to-video-api-reference
# https://www.alibabacloud.com/help/en/model-studio/token-plan-overview
name = "HappyHorse 1.1 Text-to-Video"
description = "Video model for prompt-driven text-to-video generation"
release_date = "2026-07-17"
last_updated = "2026-07-17"
attachment = false
reasoning = false
temperature = true
tool_call = false
open_weights = false
[cost]
input = 0
output = 0
[limit]
context = 0
output = 0
[modalities]
input = ["text"]
output = ["video"]
@@ -2,10 +2,15 @@ base_model = "moonshotai/kimi-k2.5"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid model: top-level `enable_thinking` true enables thinking; false is the
# default. `thinking_budget` is an integer token cap; no bounds are documented.
# structured_output: gateway accepts response_format json_schema (probed
# 2026-07-24), so the earlier base_model_omit was wrong and is dropped.
# Output cap 98,304: the enforced max_tokens ceiling (gateway rejects above it);
# a max_tokens=17,000 request truncated at exactly 17,000 (finish_reason=length),
# disproving the console/price-sheet "16K". This differs from k2.6/k2.7-code's
# 262,144 ceiling.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/kimi-api
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
base_model_omit = ["structured_output"]
family = "kimi-k2"
attachment = true
temperature = true
@@ -21,4 +26,4 @@ cache_read = 0
cache_write = 0
[limit]
output = 32_768
output = 98_304
@@ -2,10 +2,16 @@ base_model = "moonshotai/kimi-k2.6"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid model: top-level `enable_thinking` true enables thinking; false is the
# default. `thinking_budget` is an integer token cap; no bounds are documented.
# structured_output: gateway accepts response_format json_schema (probed
# 2026-07-24), so the earlier base_model_omit was wrong and is dropped.
# Output: the prior 16,384 override was wrong. A max_tokens=17,000 request
# truncated at exactly 17,000 (finish_reason=length) and a real run emitted
# 33,718 tokens (finish_reason=stop); max_tokens accepts up to 262,144 and
# rejects 262,145, so output is bounded only by the context window. The override
# is removed so it inherits the base model's 262,144.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/kimi-api
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
base_model_omit = ["structured_output"]
family = "kimi-k2"
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens" }]
@@ -17,6 +23,3 @@ input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 16_384
@@ -2,10 +2,13 @@ base_model = "moonshotai/kimi-k2.7-code"
# Reasoning HTTP format (accessed 2026-06-25):
# Thinking-only model: `enable_thinking` defaults to true and cannot disable
# thinking. `thinking_budget` is an integer token cap; no bounds are documented.
# structured_output: gateway accepts response_format json_schema (probed
# 2026-07-24: a strict schema request returned {"name":"Alice","age":30} with
# finish_reason=stop and no "json" keyword needed), so the earlier
# base_model_omit was wrong and is dropped.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/kimi-api
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
base_model_omit = ["structured_output"]
family = "kimi-k2"
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens" }]
@@ -1,13 +1,19 @@
base_model = "alibaba/qwen3.6-flash"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 81920; no minimum or disable sentinel is
# integer `thinking_budget`; the gateway ENFORCES a max of 131072 (probed 2026-07-24:
# accepts 131072, rejects 131073) - Alibaba's docs say 81920 but the gateway exceeds it. No
# minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# Reasoning streams in `reasoning_content` (hence [interleaved], added 2026-07-24).
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
# https://www.alibabacloud.com/help/en/model-studio/compatibility-with-openai-responses-api
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens", max = 81_920 }]
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens", max = 131_072 }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0
@@ -1,13 +1,23 @@
base_model = "alibaba/qwen3.6-plus"
# Reasoning HTTP format (accessed 2026-06-25):
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 81920; no minimum or disable sentinel is
# integer `thinking_budget`; the gateway ENFORCES a max of 131072 (probed 2026-07-24:
# accepts 131072, rejects 131073) - Alibaba's docs say 81920 but the gateway exceeds it. No
# minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# Reasoning streams in `reasoning_content` (hence [interleaved], added 2026-07-24).
# structured_output: the gateway now accepts response_format json_schema (probed
# 2026-07-24, returned {"n": 7}); the base model reports none. This matches its
# sibling qwen3.6-flash.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
# https://www.alibabacloud.com/help/en/model-studio/compatibility-with-openai-responses-api
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens", max = 81_920 }]
structured_output = true
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens", max = 131_072 }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0
@@ -3,14 +3,27 @@ base_model = "alibaba/qwen3.7-max"
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 262144; no minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# structured_output: the Token Plan gateway accepts response_format json_schema
# (probed 2026-07-24) even though the base model / console report none. Reasoning
# streams in `reasoning_content` (hence [interleaved]).
# Output ceiling 131,072 (probed 2026-07-24: accepts max_tokens 131,072,
# rejects 131,073) is double the base model's 65,536 and double its sibling
# qwen3.7-plus, so output is overridden below.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
# https://www.alibabacloud.com/help/en/model-studio/compatibility-with-openai-responses-api
structured_output = true
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens", max = 262_144 }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 131_072
@@ -3,14 +3,27 @@ base_model = "alibaba/qwen3.7-plus"
# Hybrid, thinking on by default. Chat/DashScope `enable_thinking`: true|false;
# integer `thinking_budget` maximum 262144; no minimum or disable sentinel is
# documented. Responses instead uses `reasoning.effort` and no numeric budget.
# structured_output: the Token Plan gateway accepts response_format json_schema
# (probed 2026-07-24) even though the base model / console report none. Reasoning
# streams in `reasoning_content` (hence [interleaved]).
# Output ceiling 65,536 (probed 2026-07-24: accepts max_tokens 65,536, rejects
# 65,537). The inherited model-metadata value is 64,000; overridden below to
# the gateway-enforced 65,536.
# Sources:
# https://www.alibabacloud.com/help/en/model-studio/deep-thinking
# https://www.alibabacloud.com/help/en/model-studio/compatibility-with-openai-responses-api
structured_output = true
reasoning_options = [{ type = "toggle" }, { type = "budget_tokens", max = 262_144 }]
[interleaved]
field = "reasoning_content"
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
output = 65_536
@@ -15,8 +15,11 @@
# it does not disable thinking. API: {"reasoning_effort":"medium"} or
# {"thinking_budget":16384}. `preserve_thinking` defaults to true, so clients must
# replay every historical `reasoning_content` value unchanged.
# structured_output: the gateway accepts response_format json_schema (probed
# 2026-07-24: strict schema request returned {"n": 7}).
base_model = "alibaba/qwen3.8-max-preview"
structured_output = true
reasoning_options = [
{ type = "effort", values = ["low", "medium", "xhigh"] },
{ type = "budget_tokens", min = 0, max = 262_144 },
@@ -1,5 +1,6 @@
base_model = "anthropic/claude-opus-4-1-20250805"
reasoning_options = [{ type = "budget_tokens", min = 1_024 }]
status = "deprecated"
[cost]
input = 15
@@ -0,0 +1,8 @@
base_model = "anthropic/claude-opus-5"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
[cost]
input = 5
output = 25
cache_read = 0.5
cache_write = 6.25
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-opus-5"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
name = "Claude Opus 5 (AU)"
[cost]
input = 5
output = 25
cache_read = 0.5
cache_write = 6.25
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-opus-5"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
name = "Claude Opus 5 (EU)"
[cost]
input = 5.5
output = 27.5
cache_read = 0.55
cache_write = 6.875
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-opus-5"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
name = "Claude Opus 5 (Global)"
[cost]
input = 5
output = 25
cache_read = 0.5
cache_write = 6.25
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-opus-5"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
name = "Claude Opus 5 (JP)"
[cost]
input = 5
output = 25
cache_read = 0.5
cache_write = 6.25
@@ -1,5 +1,6 @@
base_model = "anthropic/claude-opus-4-1-20250805"
reasoning_options = [{ type = "budget_tokens", min = 1_024 }]
status = "deprecated"
name = "Claude Opus 4.1 (US)"
[cost]
@@ -0,0 +1,9 @@
base_model = "anthropic/claude-opus-5"
reasoning_options = [{ type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
name = "Claude Opus 5 (US)"
[cost]
input = 5
output = 25
cache_read = 0.5
cache_write = 6.25
@@ -9,9 +9,9 @@ type = "effort"
values = ["high", "max"]
[cost]
input = 0.5
output = 0.8
cache_read = 0.2
input = 0.14
output = 0.28
cache_read = 0.028
cache_write = 0
[limit]
@@ -5,7 +5,7 @@ temperature = true
reasoning_options = []
[cost]
input = 0.85
output = 3.8
cache_read = 0.17
input = 0.73
output = 3.5
cache_read = 0.15
cache_write = 0
@@ -1,8 +1,5 @@
base_model = "anthropic/claude-haiku-4-5"
name = "Claude Haiku 4.5 (latest)"
description = "Fast Claude lane for lightweight agents, office tasks, and responsive chat"
attachment = true
reasoning = true
structured_output = true
[[reasoning_options]]
@@ -14,11 +11,3 @@ input = 1
output = 5
cache_read = 0.1
cache_write = 1.25
[limit]
context = 200_000
output = 64_000
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
@@ -1,8 +1,5 @@
base_model = "anthropic/claude-opus-4-1"
name = "Claude Opus 4.1 (latest)"
description = "Flagship Claude model for deep reasoning, coding, and long-horizon agents"
attachment = true
reasoning = true
structured_output = true
status = "deprecated"
@@ -15,11 +12,3 @@ input = 15
output = 75
cache_read = 1.5
cache_write = 18.75
[limit]
context = 200_000
output = 32_000
[modalities]
input = ["text", "image", "pdf"]
output = ["text"]
Loaded 100 of 705 files, more files were not shown because too many files have changed in this diff. Show more