Add a sync provider for the LLM Gateway (llmgateway.io) aggregator,
mirroring its public /v1/models catalog into providers/llmgateway.
The gateway exposes an OpenRouter-shaped response, but its
supported_parameters and modality data are noisy (it omits "tools" for
flagship models yet lists "temperature" for ones marked temperature=false).
So the gateway is treated as authoritative only for the volatile,
gateway-specific data — cost and served limits — while capability and
modality fields stay curated (preserved from the existing entry, which a
factored model inherits from its base). Only text-output models are synced.
- packages/core/src/sync/providers/llmgateway.ts: new provider
- packages/core/src/sync/index.ts: register in providers + aggregators
- package.json: add llmgateway:sync script
- .github/workflows/sync-models.yml: optional LLMGATEWAY_API_KEY
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Convert Azure Foundry and Azure Cognitive Services models to inherit from anthropic/claude-opus-4-8
- Fix Cognitive Services API endpoint to use AZURE_COGNITIVE_SERVICES_RESOURCE_NAME (was incorrectly symlinked)
The CMS catalog tracks only input and output cost per million, with no
separate cache rate. The cache_read/cache_write values added earlier
were sourced from the vendor canonical, not from Gateway billing, so
they advertised a caching discount the Gateway does not apply. Drop them
so displayed cost matches actual billing.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The [cost] block replaces the canonical's pricing, so specifying only
input/output silently dropped cache_read/cache_write. Re-add cache
pricing for the 8 models whose list price matches the canonical (so the
canonical cache rate applies), matching the existing stub convention
(e.g. glm-5). qwen3.7-max keeps flat input/output only (its list price
differs from the canonical, manual pricing with no cache rate).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Verified against merge-gateway-ai-sdk-provider source: the provider
exposes reasoning solely as thinking { type: enabled|disabled;
budgetTokens } — i.e. a toggle plus a token budget, NOT effort.
All 10 reasoning models now declare reasoning_options = toggle +
budget_tokens, with the budget max bounded by each model's
max_output_tokens from the Gateway catalog. Drops the earlier effort
entries (opus-4-8, glm-5.2), which the provider cannot honor. GLM/Kimi
keep interleaved reasoning_content.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Per review feedback: empty reasoning_options understated what works
through the Gateway passthrough. Align each model to its actual controls
(matching the canonical entries / openrouter parity):
- effort: claude-opus-4-8, glm-5.2
- toggle: kimi-k2.5, kimi-k2.6, minimax-m3
- toggle + budget_tokens: qwen3.7-max, qwen3.6-plus
reasoning_options = [] retained only for always-on thinking variants
with no client-side control (kimi-k2-thinking, kimi-k2.7-code[-highspeed]),
matching their canonical entries. GLM/Kimi keep interleaved reasoning_content.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Per review feedback. All 10 models are reasoning-capable; declare
reasoning_options = [] (base_model does not inherit it) plus
[interleaved] reasoning_content on GLM and the Kimi family, matching
the existing deepseek-v4-pro / o4-mini stub convention.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds 10 models now served through Merge Gateway that postdate the
initial provider PR, each extending its canonical entry with list pricing:
- anthropic/claude-opus-4-8
- zhipuai/glm-5.2
- moonshotai: kimi-k2.7-code, kimi-k2.7-code-highspeed, kimi-k2.6,
kimi-k2.5, kimi-k2-thinking
- minimax/MiniMax-M3
- alibaba: qwen3.7-max, qwen3.6-plus
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Wafer serves GLM-5.2 serverless (confirmed via GET https://pass.wafer.ai/v1/models)
but it was missing from the models.dev catalog, so the opencode CLI (which pulls
its provider/model list from models.dev) did not list wafer.ai/GLM-5.2.
Pricing and limits from the live wafer /v1/models endpoint:
- context: 1048576
- output: 131072
- input: $1.20 / output: $4.10 / cache_read: $0.20 per million tokens
- reasoning: true (toggle), tool_call: true, structured_output: true
- vision/attachment: false, text-only I/O
Matches the existing wafer.ai/GLM-5.1.toml convention (self-contained TOML,
toggle reasoning_options, underscore-separated numeric literals).
On Windows, `path.relative()` and `Bun.Glob` return paths with backslash
separators, while model IDs and the Chutes API use forward slashes. This
broke two things on Windows:
- `generate()` keyed model metadata as `provider\model`, so every
`base_model` reference failed to resolve, making `bun run validate`,
the test suite and the web build unusable.
- `generate-chutes.ts` compared backslash file paths against forward-slash
API IDs, so the orphan check matched nothing and would delete every
existing model file.
Normalize the affected paths to forward slashes. No behaviour change on
POSIX, where `path.sep` is already `/`.
Add metered GLM-5.2 for the standard Z.AI API endpoint, matching
zhipuai pricing and reasoning_options and using base_model inheritance
like other zai models.
Co-authored-by: Cursor <cursoragent@cursor.com>
Align the umans-ai and umans-ai-coding-plan reasoning_options with the
levels each model actually exposes via the Umans gateway:
- GLM 5.1: toggle only (reasoning is on/off; effort is not meaningful)
- GLM 5.2: toggle + effort high/max (only high/max are real levels)
- Umans Coder / Kimi K2.7: [] (always-on; no toggle, no effort tiers)
Flash and the Qwen alias are unchanged (off + low/medium/high).
Mirror the existing daily model-catalog sync for the Hugging Face
Inference Providers router (https://router.huggingface.co/v1/models),
modeled on the baseten provider.
The router is an aggregator: each model is served by several inference
providers with their own pricing, context window, and capabilities, and
requests are routed to the fastest one. The provider collapses them into
the route a request would actually take -- pricing and context from the
highest-throughput provider, with tool/structured-output support taken
from any provider since a caller can pin a slower one.
New models are created via canonical base_model resolution (the same
resolveCanonicalBaseModel/factorBaseModel path baseten uses); unmappable
or unpriced models are skipped and reported in a notice. For now the sync
only creates new models -- existing curated TOMLs are left untouched via
sameModel -- and never deletes (deleteMissing: false).
HF_TOKEN is optional; the router model list is public.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PzQSYd3VwBK5NAsC9dYmSw
Brings both umans providers in line with what umans.ai serves today, with identical
model structure across them. Per-token [cost] lives on the pay-by-token provider
(umans-ai) only; the coding plan is a flat subscription, so its models stay at [cost] = 0.
Both providers (umans-ai and umans-ai-coding-plan):
- umans-coder: base_model -> moonshotai/kimi-k2.7-code (inherits the kimi-k2 family).
Always reasons, so it exposes effort levels only (no on/off toggle).
- add umans-glm-5.2 (reasoning toggle + effort, 405504 context).
- drop umans-kimi-k2.6 (no longer published in the catalogue).
- reasoning_options: effort (low/medium/high) everywhere; the on/off toggle is kept only
on models that can disable reasoning (flash, glm-5.1, glm-5.2, qwen3.6-35b-a3b).
kimi-k2.7 and coder always reason, so no toggle.
Pricing (umans-ai / pay-by-token only, $/M in / out / cache-read):
umans-coder, umans-kimi-k2.7 0.95 / 4.00 / 0.19
umans-glm-5.2 1.40 / 4.40 / 0.26
umans-glm-5.1 1.40 / 4.40 / 0.29
umans-flash 0.15 / 1.00 / 0.05
umans-ai-coding-plan keeps [cost] = 0 (subscription, no per-token charge).
The kimi-k2.5.toml and kimi-k2.6.toml files in azure-cognitive-services used
AZURE_RESOURCE_NAME in their API URLs, but the provider declares
AZURE_COGNITIVE_SERVICES_RESOURCE_NAME as the expected environment variable.
Changes:
- kimi-k2.5.toml: converted from symlink (pointing to azure/models/) to
standalone real file with the corrected env var
- kimi-k2.6.toml: replaced AZURE_RESOURCE_NAME with
AZURE_COGNITIVE_SERVICES_RESOURCE_NAME in the API URL
This matches the pattern used by other models with provider overrides in
azure-cognitive-services (e.g. claude-haiku-4-5, claude-opus-4-1, etc.).
GLM-5.2 accepts the OpenAI-standard reasoning_effort field and supports
a wider depth range than the three levels previously advertised. Per
the Neuralwatt chat-completions docs [1], the gateway accepts and
normalizes the full scale:
minimal -> skips the reasoning phase entirely (eq enable_thinking: false)
low -> mapped to high
medium -> mapped to high
high -> enhanced reasoning (balanced)
xhigh -> mapped to max (deepest; best for math/planning/agentic tasks)
The provider's thinkingLevelMap (pi-neuralwatt-provider/patch.json) already
exposes all five pi tiers, so mirror that here by adding minimal and xhigh
to the effort values for glm-5.2.
[1] https://portal.neuralwatt.com/docs/api/chat-completions
Sync neuralwatt provider with the current Neuralwatt API data (from
../pi-neuralwatt-provider: models.json -> patch.json -> custom-models.json).
Added:
- glm-5.2: GLM 5.2 (family glm, 1_048_560 context/output, 1.45/4.5 cost,
reasoning via effort [low,medium,high] — provider sets
supportsReasoningEffort with no reasoning_content interleaving)
Removed (no longer in the provider API):
- MiniMaxAI/MiniMax-M2.5.toml
- mistralai/Devstral-Small-2-24B-Instruct-2512.toml
- openai/gpt-oss-20b.toml
README: added GLM 5.2 to the reasoning list; dropped the MiniMax M2.5,
GPT OSS 20B lines and the now-empty Devstral section.
opus/flex/long and canary variants excluded by request.
- Add GLM-5.2 (accounts/fireworks/models/glm-5p2) with 1M context and
Fireworks serverless pricing ($1.40 / $0.26 / $4.40).
- Normalize Kimi K2.7 Code and Kimi K2.7 Code Fast TOML files to be
self-contained and follow the same metadata pattern as Kimi K2.6.
- Fix Kimi K2.7 Code Fast input price ($2.00 -> $1.90).
- Fix DeepSeek V4 Flash cache read price ($0.03 -> $0.028).
- Fix GPT OSS 120B cache read price ($0.01 -> $0.015).
- Set last_updated to 2026-06-16 for all touched provider files.
Configure Baseten serving metadata for zai-org/GLM-5.2 using the
zhipuai/glm-5.2 base model. Limits and reasoning options are sourced
from the Baseten Model APIs catalog; cost is omitted until pricing is
published in the /v1/models endpoint.
Add provider entries for newly available LLM Gateway text models:
- gemma-4-31b-it, gemma-4-26b-a4b-it (Google, reasoning)
- kimi-k2.7-code-highspeed (Moonshot, highspeed tier of kimi-k2.7-code)
- qwen3.5-9b (Alibaba)
- glm-5.2 (Z.AI)
Adds base model metadata for kimi-k2.7-code-highspeed and qwen3.5-9b.
Pricing for gemma/kimi/qwen taken from the api.llmgateway.io catalog;
glm-5.2 pricing from the Z.AI docs (input $1.4, cache_read $0.26, output $4.4).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Update the Ambient catalog for two models from the live
api.ambient.xyz/v1/models endpoint:
- add moonshotai/kimi-k2.7-code (base_model: moonshotai/kimi-k2.7-code)
- refresh zai-org/GLM-5.1-FP8 display name
Both inherit canonical metadata via base_model and override only the
fields Ambient's API reports (pricing, capabilities).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace duplicated provider-agnostic metadata with base_model references for `Gemini 2.5 Flash`, `Gemini 2.5 Pro`, and `mistral-large-2411`.
Follow on to 5a8f9d4, 61a153e and PR #2251
Addresses review feedback: kimi-k2.7-code and grok-build-0-1 use the
effort (low/medium/high) option matching the kimi/grok gateway models;
nemotron-3-ultra-550b uses a reasoning toggle per its nvidia source.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
command-r7b-12-2024 had release_date/last_updated set to 2024-02-27,
which predates the model — its id encodes December 2024, and 02-27 was
evidently copied from the sibling command-r7b-arabic-02-2025 entry.
Cohere's official announcement is dated December 2, 2024.
Newest text models from the LLM Gateway catalog, using the base_model
structure to inherit from the canonical model registry with gateway-specific
cost overrides.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
description:Audit or write models.dev reasoning_options in provider TOML files and reasoning-option PRs. Use when verifying toggle, effort, budget_tokens, provider reasoning controls, or citations.
---
# Audit Reasoning Options
Use this workflow to add or review `reasoning_options` for a specific provider. Treat these fields as provider capabilities, not provider-agnostic model facts.
Provider capability means the inference service's accepted HTTP request surface. It does not mean the controls exposed by the repository's configured npm package, a preferred SDK, or a typed client wrapper.
## Available Options
The schema in `packages/core/src/schema.ts` supports:
```toml
[[reasoning_options]]
type="toggle"
[[reasoning_options]]
type="effort"
values=["low","medium","high"]
[[reasoning_options]]
type="budget_tokens"
min=1_024
max=32_000
```
-`toggle`: The provider offers an explicit way to switch reasoning on and off for the same model ID.
-`effort`: The provider accepts one or more discrete effort values. Schema values are `null`, `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`, and `default`.
-`budget_tokens`: The provider accepts a numeric reasoning-token budget. `min` and `max` are optional and must only be included when verified.
-`reasoning_options = []`: The model reasons, but no user-selectable control was verified through this provider.
- Omitted `reasoning_options`: No provider-specific claim has been authored. Do not treat omission as equivalent to an audited empty list.
An option describes a control exposed to a caller. Do not add an option merely because a model reasons internally or another provider exposes that control.
## Evidence Standard
Use evidence in this order:
1. The provider's current API reference or model documentation.
2. The provider's raw OpenAPI schema, compatibility endpoint documentation, model endpoint metadata, or playground request payload.
3. A reproducible request against the provider API, including a negative control with an invalid value where practical.
4. The provider's official SDK source, but only as positive evidence for requests it emits.
5. The upstream model developer's documentation.
6. High-quality secondary sources only as supporting context.
Provider documentation proves what the provider accepts. Upstream documentation proves what the model can support, but cannot by itself prove that a gateway forwards or exposes the control.
An SDK can prove support when it emits a field. An SDK's omission, type restriction, or missing convenience option does not prove the inference API rejects that field. Before removing a control because an SDK cannot express it, inspect raw HTTP docs, compatibility base URLs, passthrough guarantees, migration guides, and direct API behavior.
Prefer versioned or model-specific documentation over generic examples. Record the access date when a page is mutable or unversioned.
## Audit Workflow
1. Read the provider configuration to identify the API base URL and protocol. Record the SDK only as one possible client.
2. Inspect the PR diff and list every changed model with its exact proposed options.
3. Group models by API family or request adapter, not only by model developer.
4. Locate provider documentation for reasoning request fields and model-specific restrictions.
5. Check every raw compatibility endpoint the inference provider advertises, such as OpenAI-, Anthropic-, or provider-compatible base URLs. Existing calls working unchanged is positive evidence that native reasoning fields are accepted.
6. Cross-check upstream model documentation for supported values and ranges after establishing provider passthrough or translation.
7. Test the provider API when credentials are already available and documentation is incomplete. Never print credentials.
8. Compare each TOML claim independently: toggle, each effort value, budget support, minimum, and maximum.
9. Remove any claim that lacks inference-provider evidence. Do not remove it merely because one SDK lacks a type or helper.
10. Run `bun validate` and `git diff --check`.
11. Update the PR body with citations, request-field details, audit conclusions, and validation commands.
## Toggle Verification
Only add `toggle` if all of these are true:
- The same provider model ID can run with reasoning enabled and disabled.
- The caller controls the state through a documented or reproduced request.
- The exact field and values are known.
Examples of possible controls include `thinking.type = "enabled" | "disabled"`, `enable_thinking = true | false`, a documented `reasoning` object, or a provider-defined prompt switch such as `/think` and `/no_think`.
The following do not prove a toggle:
- Separate thinking and non-thinking model IDs.
- Omitting a reasoning budget when omission selects an automatic budget.
- Setting effort to `low` unless the provider says it disables reasoning.
- A model card saying the model is hybrid without provider request documentation.
- A provider UI switch when its API payload cannot be identified.
For every proposed toggle, write this sentence before accepting it:
> `<provider model ID>` toggles reasoning with `<request path>` set to `<enabled value>` or `<disabled value>`.
If that sentence cannot be completed and cited or reproduced, do not claim `toggle`.
## Effort Verification
Verify every value separately. Do not copy the schema's full enum into a model.
- For an OpenAI-compatible API, `low`, `medium`, and `high` are a useful investigation baseline, not proof.
- Require explicit evidence for `null`, `none`, `minimal`, `xhigh`, `max`, and `default`.
- Check model-specific differences. A generic gateway enum may be rejected or ignored by some routed models.
- Distinguish accepted values from meaningful values. If the gateway silently ignores a field, it is not a supported control.
- Preserve JSON `null` as TOML `null`, not the string `"null"`, when evidence requires a null value.
When practical, send one valid request per claimed value and one invalid value. A structured `400` for the invalid value makes silent field dropping less likely.
## Budget Verification
`budget_tokens` is an abstract models.dev capability; providers may spell it `reasoning.max_tokens`, `thinking.budget_tokens`, `thinkingBudget`, or another field.
- Cite the provider's actual request path.
- Verify that the field controls reasoning tokens rather than total output tokens.
- Do not infer `max` from `limit.output`, context length, or an upstream provider's limit.
- Do not infer a provider minimum from an SDK default.
- Omit unverified bounds while retaining verified budget support.
- Check whether zero or a negative sentinel disables reasoning. If so, verify whether this also proves `toggle` for that model.
- Check constraints relating budget to `max_tokens` or total output.
## API Testing
Use existing credentials only when permitted and necessary. Keep secrets out of commands, logs, files, PR bodies, and chat output.
For each control, prefer this matrix:
| Request | Expected evidence |
| --- | --- |
| No reasoning field | Establishes default behavior |
| Each claimed valid value | Successful response or documented acceptance |
| Explicit disabled value | Proves toggle-off behavior |
| One invalid value | Structured rejection rather than silent dropping |
| Boundary and adjacent value | Supports a claimed minimum or maximum |
Acceptance alone is weak when an OpenAI-compatible gateway ignores unknown fields. Inspect returned metadata, reasoning content, usage fields, or error behavior where available.
## Citations
Put citations in the PR body, not TOML comments. TOML model files should remain data-only unless the repository establishes another convention.
Use direct links to the narrowest authoritative section. For each link, state exactly what it proves:
`reasoning_effort` values `low`, `medium`, and `high`.
- [Provider model page](https://example.com/models/foo) documents that
`thinking.type = "disabled"` turns reasoning off for `foo`.
- [Upstream model documentation](https://example.com/upstream/foo) confirms
the model-native budget range; provider requests at both boundaries succeeded.
```
Do not cite a search-results page, an AI-generated summary, or a generic upstream page for a provider-specific claim. If evidence comes from authenticated endpoint metadata or testing, describe the endpoint, date, request field, result, and negative control without including credentials or sensitive response data.
## PR Audit Output
For each audited PR, report:
- Models and proposed options.
- Verdict for every option: verified, corrected, or removed.
- Exact toggle mechanism, when applicable.
- Provider-level citations and what each proves.
- Upstream citations used only for model-specific constraints.
- Tests performed and their limitations.
- Final validation result.
If documentation is ambiguous, state the ambiguity and use the least permissive metadata supported by evidence.
`${ids.length} Hugging Face Inference Providers models were not created because their IDs could not be mapped to provider-agnostic metadata, had no live provider, or had no priced provider.`,
Loaded 100 of 1224 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.