Skip to content

Add ngrok AI Gateway provider - #13494

Open
samcrichard wants to merge 6 commits into
anomalyco:devfrom
samcrichard:add-ngrok-ai-gateway
Open

samcrichard wants to merge 6 commits into
anomalyco:devfrom
samcrichard:add-ngrok-ai-gateway

Conversation

@samcrichard

@samcrichard samcrichard commented Nov 12, 2026 •

Copy link
Copy Markdown

Adds the ngrok AI Gateway (ngrok.ai) as a provider. It has one access key, one OpenAI-compatible base URL (https://gateway.ngrok.ai/v1), and models from 12 labs that can be paid for with ngrok.ai credits. You don't need a provider account.

Provider

  • id = ngrok, name = "ngrok AI Gateway", env = ["NGROK_AI_GATEWAY_KEY"]. These match ngrok's existing OpenCode setup guide: https://ngrok.com/docs/ai-gateway/agents/opencode
  • npm = "@ai-sdk/openai-compatible", opencodeai = "@opencode/ai/providers/openai-compatible", api = "https://gateway.ngrok.ai/v1"
  • logo.svg is the ngrok wordmark with currentColor, centered in a square viewBox.

Models (88)

OpenAI 30, Anthropic 15, Z.ai 13, Google 7, Moonshot 5, Qwen 5, Meta 4, DeepSeek 3, Xiaomi 2, Tencent 2, MiniMax 1, StepFun 1.

  • IDs are ngrok's full catalog IDs (author/model, e.g. openai/gpt-5.5). The gateway accepts them and routes to the model author's own provider first. See https://ngrok.com/docs/ai-gateway/concepts/models
  • Scope: chat models whose default route can be paid with credits. Image, speech, embedding and decision models are out of scope. So are models that need the user's own provider key and models with announced retirement dates.
  • Every entry uses base_model. Each points at an existing models/ lab file, so no lab files were added. Files are override-only.
  • Reasoning, structured_output, cache and chat-completions compatibility (reasoning_field, max_tokens_field) are copied from each lab's own provider entry, per the multi-model relay policy in AGENTS.md. Two IDs have no first-party entry, so their controls come from a same-API peer: claude-opus-4-1 from google-vertex-anthropic and gpt-5.2-codex from openrouter. Toggle, effort and budget wire paths are in the header comments. The gateway forwards requests minus unsupported params and returns responses unchanged: https://ngrok.com/docs/ai-gateway/how-it-works
  • tools.freeform is not authored on the GPT-5+ models yet; custom-tool grammars haven't been live-probed through the gateway. Each header notes this.
  • Claude models list [api.messages] first. The gateway forwards output_config on /v1/messages but strips reasoning_effort on Chat Completions: https://ngrok.com/docs/ai-gateway/providers/anthropic#parameters-the-gateway-removes
  • APIs come from each model's catalog surfaces: chat-completions, responses and messages. Responses-only models (the Pro, Codex and deep-research models) list only [api.responses].
  • [limit] and [modalities] are overridden only where the gateway's catalog differs from the lab file. Example: MiniMax M3.1 Flash is text-only through the gateway.

Pricing

  • Source: the ngrok.ai catalog (GET https://api.ngrok.ai/v1/models pricing rates), accessed 2026-11-12.
  • Each price is the catalog's per-token rate plus ngrok.ai's $0.05 per million token processing fee. The fee applies to all request and response tokens: https://ngrok.com/docs/ai-gateway/concepts/credits#processing-fee
    • Example: Claude Opus 5.5 is $4.05 in / $20.05 out, with cache read $0.25 and cache write 5m/1h $5.05/$8.05.
  • Cache read and write rates are the catalog's (with TTLs where given), plus the fee. A $0 write rate is left out. Google's per-token audio input is in [cost.audio.input].
  • DeepSeek models bill at DeepSeek's off-peak price at every hour when paid with credits, so there's no peak multiplier: https://ngrok.com/docs/ai-gateway/providers/deepseek#peak-and-off-peak-pricing
  • Intentionally left out of this PR: models whose upstream has long-context price tiers that the ngrok catalog doesn't model yet. These are GPT-5.4 and later, Grok 4.x, Claude Haiku 5.5, Gemini 3.1 Pro, MiniMax M3, Qwen 3.6/3.7 and Gemini 3.5 Flash. Gemma 4 is also deferred until its on/off wire through Google's OpenAI-compatible endpoint is verified. They'll come in a follow-up once the catalog carries the tiers, rather than listing a flat price here.

v1 output

  • This intentionally adds a new provider, ngrok, with 88 models to the v1 API (api.json). The goal is for existing v1 consumers to see the provider; no existing provider or model changes.
  • I couldn't run bun run v1:check locally, so I'm asking for maintainer sign-off on these v1 additions. If you'd rather keep new providers v2-only, say so and I'll set v2_only = true on every file.

Why no sync module yet

  • The ngrok catalog API (GET https://api.ngrok.ai/v1/models) needs an account API key, so a sync job running in this repo's CI can't read it.
  • The same data is public as HTML at https://ngrok.ai/models. We're asking for a public JSON endpoint, then we'll add packages/core/src/sync/providers/ngrok.ts.
  • Until then, these files are generated from the catalog by a script and checked against the live listing.

tools.freeform on GPT-5+

  • Not authored yet. AGENTS.md asks for a live grammar probe, e.g. ZZ[0-9]{3}, on each API through the host, and that needs a funded ngrok.ai access key.
  • Each GPT-5+ header says so. A follow-up will set freeform per API once the probe has been run.

Validation

  • I didn't run bun validate or bun run v1:check locally; bun wasn't available in my environment. I'm relying on the Validate workflow here.
  • Locally, a Python check confirmed that:
    • all 88 files parse and have schema = 2;
    • every base_model target exists;
    • only provider-authored keys are used;
    • [api.*] protocols are valid and prices are non-negative;
    • the logo uses only svg/path with currentColor.
  • Headline prices, context and max output for every model were cross-checked against the live catalog listing.
  • This PR only adds new provider files; it doesn't edit any existing file.

🤖 Generated with Claude Code

Adds providers/ngrok (https://gateway.ngrok.ai/v1, OpenAI-compatible, with
Responses and Anthropic Messages surfaces) and 91 credit-billable models from
the ngrok.ai catalog across 12 labs. Every entry uses base_model; reasoning
and cache controls are copied from each lab's own provider entry. Prices are
the catalog's list price plus ngrok.ai's $0.05/M processing fee.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v1 base_model parse requires modalities.output whenever [modalities]
is overridden. Seven files narrowed input only (Gemma 4, Qwen3.8 Max,
MiniMax M3.1 Flash, Step 5 Preview, MiMo V2.6); add output from the lab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [high] [violation] providers/ngrok/models/anthropic/claude-opus-4-1.toml:8 - Check: Relays of a controllable reasoner must author host controls; reasoning = { supported = true } with no toggle/effort/budget publishes "always-on, no caller control". Why: Claude 4.1 thinking is caller-controlled: OpenRouter's claude-opus-4.1 authors toggle = true, and this PR's own 4.x-generation files (claude-haiku-4-5, claude-sonnet-4-5) author budget = { min = 1024 } copied from providers/anthropic; the file even lists [api.messages], which the PR says forwards thinking controls. It also omits the cache capability while publishing cache read/write prices (lines 16-17), unlike every other Claude file here. Action: Copy the 4.x-generation controls (budget min 1024) and the explicit-cache capability from the lab entries, or cite gateway evidence that both are stripped for this model.
  • [high] [violation] providers/ngrok/models/openai/gpt-5.2-codex.toml:8 - Check: Missing capabilities.reasoning controls on a relay of a controllable reasoner. Why: reasoning = { supported = true } claims no caller control, but this same PR's gpt-5.3-codex.toml authors effort = ["none", "low", "medium", "high", "xhigh"] and OpenRouter's gpt-5.2-codex authors effort = ["low", "medium", "high", "xhigh"] with structured_output = true and cache = { implicit = { min_tokens = 1_024 } }; this file has none of those yet carries a cache-read price (line 15) with no cache capability. Action: Author the effort set, structured_output, and implicit cache copied from the lab/peers, or document live evidence that the gateway rejects them.
  • [medium] [violation] providers/ngrok/models/openai/gpt-5-chat-latest.toml:21 - Check: Cache pricing must not be published without a cache capability ("a kind that isn't listed isn't supported"). Why: This file and gpt-5.1-chat-latest.toml, gpt-5.2-chat-latest.toml, o3-deep-research.toml, o4-mini-deep-research.toml (all dropping the lab entries' cache = { implicit = { min_tokens = 1_024 } }) plus google/gemma-4-26b-a4b-it.toml:18 and gemma-4-31b-it.toml price cache reads while the resolved model says the host doesn't cache. Action: Either add the copied cache capability or remove the cache prices; don't publish both.
  • [medium] [violation] providers/ngrok/models/tencent/hy3.toml:9 - Check: toggle must not be paired with an effort list that already includes none. Why: reasoning = { supported = true, toggle = true, effort = ["none", "high"] } violates the documented none/toggle rule; the PR's own hy4.toml applies it correctly ("none is how thinking is turned off on this id, so per AGENTS.md there is no separate toggle entry"). The file also lacks the required toggle wire comment. Action: Drop toggle, keep effort = ["none", "high"], and add the leading effort wire comment.
  • [medium] [violation] providers/ngrok/models/qwen/qwen3.7-max.toml:9 - Check: Every toggle needs a leading top-of-file comment with the exact wire path. Why: This file authors toggle = true + budget = {} with no Toggle/Budget wire comment (its sibling qwen3.5-flash.toml documents enable_thinking/thinking_budget); same omission in anthropic/claude-sonnet-5.toml:10 (thinking.type), google/gemma-4-26b-a4b-it.toml:13 and gemma-4-31b-it.toml:13. Action: Add # Toggle: … (and # Budget: … where applicable) header lines naming the request fields.
  • [medium] [possible mistake] providers/ngrok/models/qwen/qwen3.7-max.toml:14 - Check: Provider [limit] overrides must be real host deltas, not widenings past the lab's documented window. Why: All five qwen files override context = 1_048_576, but the lab files say 1_000_000 for qwen3.5-flash/3.7-max/3.8-flash/3.8-max and 262_144 for qwen3.8-2.4t-a95b (Alibaba's own live-probed entry keeps 1_000_000; only OpenRouter/kilo list 1_048_576, and only for 2.4t-a95b). Publishing a larger window than the model supports invites over-long requests. Action: Verify the gateway's actual limit (live request or cited catalog row) and correct, or drop the overrides.
  • [medium] [possible mistake] providers/ngrok/models/moonshotai/kimi-k3.toml:19 - Check: Cache cost structure must match the host's real pricing when capability TTLs are declared. Why: kimi-k3.toml and kimi-k3.1-pro.toml advertise implicit = { ttl = ["5m", "1h"] } but flatten write to a single number that is only the 5m price + fee ($3.05/$2.05), losing the 1h write ($6/$4 upstream); qwen3.7-max.toml:26, qwen3.8-max.toml and qwen3.8-2.4t-a95b.toml drop the separate explicit-cache read price (lab explicit.read $0.25/$0.17) behind the implicit read; qwen3.5-flash.toml:14 drops the cache read price entirely while advertising an explicit 5m cache. Action: Verify the gateway's per-TTL/per-kind credit pricing and mirror the lab structure (TTL-keyed writes, explicit read), or cite the catalog's flat prices.
  • [medium] [violation] providers/ngrok/models/openai/gpt-5.toml:12 - Check: AGENTS.md requires checking which freeform formats each API accepts (live grammar probe) and noting the evidence in the header when adding GPT-5+ models on any host. Why: None of the 14 GPT-5+ files (gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, gpt-5.1, gpt-5.2, gpt-5.2-pro, gpt-5.2-codex, gpt-5.3-codex, gpt-5.4-mini, gpt-5.4-nano, gpt-5-chat-latest, gpt-5.1-chat-latest, gpt-5.2-chat-latest) author per-API tools.freeform or note any evidence, while OpenRouter's entries show Responses accepts text/lark/regex custom tools and Chat Completions rejects them. Action: Probe the gateway's /v1/responses (and chat-completions) with a restrictive grammar, set freeform on the APIs where it works, and note the evidence in each header.
  • [medium] [violation] providers/ngrok/models/openai/gpt-4.1.toml:9 - Check: base_model files must be override-only; identical values must not be restated. Why: reasoning = { supported = false } is restated identically to the lab in gpt-3.5-turbo, gpt-4, gpt-4-turbo, gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano; reasoning = { supported = true } is restated identically in gpt-5-chat-latest, gpt-5.1-chat-latest, gpt-5.2-chat-latest, gpt-5.2-codex, o3-deep-research, o4-mini-deep-research (OpenRouter's relay files omit the key and inherit). Action: Delete the restated reasoning lines from these files.
  • [medium] [possible mistake] providers/ngrok/models/xiaomi/mimo-v2.5-pro.toml:7 - Check: The PR's stated scope excludes models with announced retirement dates, and retired upstream models need status. Why: providers/xiaomi/models/mimo-v2.5-pro.toml documents retirement on 2026-10-21 (upstream API returns 400 "Unsupported model mimo-v2.5-pro") and sets status = "deprecated"; the ngrok file carries no status, so it publishes as a live model. Action: Drop the entry, or verify the tokenhub route still serves this id and set status = "deprecated".
  • [medium] [possible mistake] providers/ngrok/models/deepseek/deepseek-v4-pro.toml:15 - Check: Wire-compatibility markers for the surfaces a relay forwards. Why: The lab provider entries author compatibility = { reasoning_field = "reasoning_content", max_tokens_field = "max_tokens" } on chat-completions for DeepSeek, Z.ai (all 13 glm files), StepFun, and reasoning_field for Moonshot/Qwen/Xiaomi/MiniMax; the ngrok copies list the same [api.chat-completions] surfaces but drop both markers. If the gateway passes bodies through (as the PR describes), clients lose output capping (upstreams ignore max_completion_tokens) and reasoning-field discovery. Action: Verify whether the gateway normalizes these fields and carry the compatibility entries, or note in the headers why they don't apply.
  • [low] [possible mistake] providers/ngrok/models/tencent/hy3.toml:20 - Check: Prices must follow the PR's stated list-price + $0.05/M formula against a citable source. Why: hy3 is priced 0.182/0.083/0.578, but the repo's tokenhub entry (the cited default route) lists hy3 as free (0/0/0), while hy4's ngrok prices match TokenHub + fee exactly — so these numbers fit no in-repo source. Action: Cite the ngrok catalog row for hy3's list price or correct the numbers.
  • [low] [possible mistake] providers/ngrok/models/moonshotai/kimi-k2.7-code-highspeed.toml:6 - Check: Resolved display name for alias/variant ids. Why: Pointing at moonshotai/kimi-k2.7-code resolves the name to "Kimi K2.7 Code", identical to its sibling; Moonshot's own entry adds name = "Kimi K2.7 Code HighSpeed", and models/moonshotai/kimi-k2.7-code-highspeed.toml exists as a base target. Likewise deepseek-v4-pro.toml resolves to "DeepSeek V4 Pro 0813" where providers/deepseek overrides the name to "DeepSeek V4 Pro". Action: Point base_model at the variant lab file or add a name override.
  • [low] [possible mistake] providers/ngrok/models/openai/gpt-5-chat-latest.toml:10 - Check: Resolved limits must be internally consistent after deep-merge. Why: The [limit] override narrows context to 128_000 and output to 16_384, but the lab's input = 272_000 is inherited, so the resolved input limit exceeds the resolved context. Action: Override limit.input too, or use base_model_omit = ["limit.input"].

- Copy reasoning/cache controls for IDs with no first-party file from a
  same-API peer (claude-opus-4-1 from google-vertex-anthropic, gpt-5.2-codex
  from openrouter); add implicit cache (catalog implicit_caching) for the
  OpenAI chat-latest and deep-research models.
- Override-only: drop capability values identical to the base.
- Publish cache prices only where the resolved model has a cache capability;
  mirror each lab's cache cost structure (explicit read/write for Qwen) and
  note where the catalog bills one write rate across TTLs (Kimi K3, K3.1 Pro).
- hy3: drop toggle (effort already has none) and cite the catalog price row.
- Add Toggle/Budget/Effort wire comments where the source file had none.
- Carry chat-completions reasoning_field/max_tokens_field from the lab entry;
  the gateway forwards requests and returns responses unchanged.
- Limits: use the tighter of the catalog and the lab host (drops the widened
  Qwen contexts); omit limit.input where context narrows below it.
- Carry first-party display names (DeepSeek V4 Pro, Kimi K2.7 Code HighSpeed).
- Drop xiaomi/mimo-v2.5-pro (retired upstream 2026-10-21).
- Note in GPT-5+ headers that tools.freeform is not yet live-probed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
validate requires reasoning_options whenever reasoning is true, so the
seven models with no host controls (GPT-5 chat-latest x3, o3/o4-mini deep
research, and two others) keep reasoning = { supported = true }, meaning
always on with no caller control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/ngrok/models/moonshotai/kimi-k2.7-code-highspeed.toml:8 - Check: base_model must point at the lab entry for the exact model this ID serves. Why: The file points at the sibling moonshotai/kimi-k2.7-code, but models/moonshotai/kimi-k2.7-code-highspeed.toml exists as the lab entry for the Highspeed variant (its own name, description, limits, weights), and peer hosts of the same ID (vercel, merge-gateway, ofox, nano-gpt, empiriolabs, etc.) all target it. As written, the entry inherits the non-Highspeed model's description and benchmarks, with a name override masking the mismatch. Action: Change base_model to "moonshotai/kimi-k2.7-code-highspeed" and drop the now-unneeded name override (or align its capitalization with the lab's "Kimi K2.7 Code Highspeed").
  • [medium] [violation] providers/ngrok/models/openai/gpt-5.2.toml:8 - Check: AGENTS.md requires checking which tools.freeform formats each API accepts whenever an OpenAI GPT-5+ model is added on any host, with the evidence noted in the header. Why: All 14 ngrok GPT-5+ entries state custom-tool grammars "have not been live-probed through the gateway yet" and author no freeform. The first-party entries publish freeform = ["text","lark","regex"], and the peer this PR copies elsewhere (openrouter gpt-5.2-codex) found freeform works on /v1/responses while Chat Completions rejects custom tools — so the per-API answer is material and currently unknown. Action: Probe the gateway (e.g. a ZZ[0-9]{3} regex grammar whose output proves enforcement) or cite ngrok docs per endpoint, then set freeform on the APIs where it works and record the evidence in each header.
  • [low] [possible mistake] providers/ngrok/models/google/gemma-4-26b-a4b-it.toml:1 - Check: A toggle must name a distinct on/off request field; per AGENTS.md, effort containing none is authored as effort-only with no toggle. Why: Both Gemma files author reasoning = { supported = true, toggle = true }, but the new header comment documents the off state as reasoning_effort = "none" | any other level — the "effort includes none" shape, which the policy explicitly says is not a toggle. The first-party google entry documents no wire path for its toggle, so this comment is unsourced. Action: Verify the gateway's real on/off field for Gemma and document that in the comment, or — if reasoning_effort none/graded is the only control — author effort = ["none", …] and drop toggle (also gemma-4-31b-it.toml:1).
  • [low] [possible mistake] providers/ngrok/models/moonshotai/kimi-k3.toml:25 - Check: Cache-write prices must match what the host bills for each advertised TTL. Why: This file and kimi-k3.1-pro.toml advertise implicit cache TTLs ["5m","1h"] but publish a single flat write price (3.05 / 2.05), while the in-repo first-party entries document Moonshot billing 1h writes at 2× the 5m rate (6 / 4). Under the PR's own "list price + $0.05 fee, requests forwarded unchanged" pricing model, the 1h write appears underpriced ~2×. Action: Confirm how ngrok bills 1h prompt-cache writes; if it passes Moonshot's rate through, publish write = { "5m" = 3.05, "1h" = 6.05 } (and 2.05/4.05 for K3.1 Pro); if the catalog's flat rate is truly what credits pay at both TTLs, state that explicitly in the header so the deliberate delta from the lab is sourced.
  • [low] [possible mistake] providers/ngrok/models/deepseek/deepseek-v4-pro.toml:28 - Check: Published token prices must be what the host charges in all billing states. Why: The three DeepSeek files publish DeepSeek's off-peak list price + $0.05 with no peak multiplier and no header note, but the in-repo first-party entry documents a 2× multiplier on weekday peak windows (01:00–04:00 and 06:00–10:00 UTC, excluding CN holidays). If ngrok credits meter provider cost plus the fee as the PR describes, peak-hour usage costs roughly double the published price. Action: Confirm whether ngrok credits bill DeepSeek's peak surcharge; if so, copy the [[cost.multipliers]] from providers/deepseek; if the catalog rate is flat at all hours, note that in the headers so the omission is clearly deliberate (same question for deepseek-flash.toml and deepseek-v4-flash.toml).

- kimi-k2.7-code-highspeed: base_model -> moonshotai/kimi-k2.7-code-highspeed
  (the exact lab entry); drop the name override.
- DeepSeek: note that credits bill the off-peak price at every hour, so no
  peak multiplier (ngrok docs, providers/deepseek#peak-and-off-peak-pricing).
- Kimi K3 / K3.1 Pro: state that credits pay the catalog's single cache-write
  rate at every TTL (no TTL-conditioned write rate in the catalog).
- Drop Gemma 4 26B/31B for now: the on/off wire for Gemma through Google's
  OpenAI-compatible endpoint isn't documented, so the toggle can't be sourced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/ngrok/models/openai/gpt-5.2.toml:8 (and the other GPT-5+ files: gpt-5, 5-mini/nano/pro, 5.1, 5.2-pro, 5.2-codex, 5.3-codex, 5.4-mini/nano, the three chat-latest entries) - Check: AGENTS.md requires that when adding OpenAI GPT-5+ models on any host, you check which tools.freeform formats each API accepts (host docs or a live probe with a restrictive grammar such as regex ZZ[0-9]{3}), set them per API, and note the evidence in the header. Why: Every GPT-5+ header in this PR instead says "tools.freeform not authored: custom-tool grammars have not been live-probed through the gateway yet" — the required check was not done, so the resolved freeform is absent for ~14 models even though the gateway is documented as forwarding requests unchanged to OpenAI. Peers show the expected shape (e.g. providers/openai sets freeform = ["text", "lark", "regex"]; OpenRouter's gpt-5.2-codex sets it on [api.responses] only, with Chat Completions rejecting custom tools). Action: Probe or cite the gateway's per-API custom-tool behavior and author freeform on the APIs where it works, or document why it cannot be set.
  • [medium] [violation] providers/ngrok/provider.toml:1 - Check: AGENTS.md requires running bun run v1:check after every catalog change; every v1 change must be listed in the PR and maintainer-approved, and the check itself states new models should usually be v2_only. Why: Adding a new provider with 88 models changes the published v1 API (a new provider plus 88 models across all views), so bun run v1:check exits 1; the PR body never mentions v1. Recent model additions on existing providers (e.g. providers/alibaba/models/deepseek-v4-pro-0813.toml, qwen3.8-2.4t-a95b.toml) are v2_only = true for exactly this reason. Action: Run bun run v1:check, read its output, and either record in the PR that the 88 v1 additions are intentional and get maintainer sign-off, or set v2_only = true on the new files.
  • [medium] [possible mistake] providers/ngrok/models/deepseek/deepseek-v4-pro.toml:24 - Check: A model's [api.*] tables are its complete list of APIs this host actually serves. Why: The DeepSeek entries list [api.responses], but DeepSeek's own API (per providers/deepseek, the cited source for these controls) offers only Chat Completions and the Anthropic-compatible Messages endpoint — so a passthrough gateway cannot serve /v1/responses unless it translates protocols. Conversely, the five Kimi entries (providers/ngrok/models/moonshotai/kimi-k2.6.toml:19 etc.) list only [api.chat-completions], although Moonshot natively serves Responses and Messages and every other lab in this PR (alibaba, zhipuai, xiaomi, minimax, stepfun, meta, tencent) lists all three surfaces. One of these two patterns must be wrong, and neither is cited. Action: Verify which surfaces each route actually serves through gateway.ngrok.ai and make the per-model API lists consistent and documented.
  • [low] [possible mistake] providers/ngrok/models/meta/muse-spark-1.1.toml:35 - Check: Costs must match the resolved model's modalities. Why: The file publishes [cost.audio.input] price = 1.3, but the base lab models/meta/muse-spark-1.1.toml has no audio input (text, images, PDF, video/mp4 only; muse-spark-1.2/1.3 and muse-wonder-1.0 do include audio/mpeg/audio/wav), and the ngrok file does not override modalities — so it prices a modality the model doesn't accept. Action: Drop [cost.audio.input] from muse-spark-1.1, or override [modalities] with a citation if the gateway route genuinely accepts audio.
  • [low] [possible mistake] providers/ngrok/models/qwen/qwen3.8-flash.toml:32 - Check: Cache cost structure should mirror the source data for this route. Why: The file sets cache = { read = 0.066, explicit = { read = 0.066, write = 0.25 } } — the explicit read is identical to the implicit read, and the lab's own entry (providers/alibaba/models/qwen3.8-flash.toml) publishes no explicit cache read at all, unlike qwen3.8-max/2.4T where the explicit read (0.17) differs from the implicit read (0.25). This looks like the catalog's single cache-read price applied to both kinds. Action: Verify against the ngrok catalog whether an explicit-cache read price exists for qwen3.8-flash; if the catalog lists only one read price, model just the implicit read as the lab entry does.
  • [low] [possible mistake] providers/ngrok/provider.toml:22 - Check: sync.md / AGENTS.md recommend a sync module when a provider's catalog API can authoritatively populate model data or remove retired models. Why: The PR itself uses the ngrok catalog as the authority for prices, limits, implicit-cache flags and retirements (mimo-v2.5-pro dropped as retired; catalog rows quoted for hy3 and step-5-preview), which is exactly the data a sync module could keep current and use to delete models the gateway stops serving — without one, all 88 files drift as the catalog changes. Action: Add an ngrok sync module (or note in the PR why hand-authoring is preferred, e.g. the catalog lacks fields needed for complete entries).

- Cite per-route API surfaces from the ngrok model catalog in each header
  (Kimi is Chat Completions only on this gateway; DeepSeek serves Chat,
  Responses and Messages per ngrok's DeepSeek page).
- muse-spark-1.1: drop audio input price (the lab model takes no audio).
- Qwen: publish an explicit cache read only where the lab entry models one
  (qwen3.8-flash now mirrors providers/alibaba).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/ngrok/models/openai/gpt-5.2.toml:10 - Check: AGENTS.md requires that when a GPT-5+ model is added on any host, the author checks which tools.freeform formats each of the model's listed APIs accepts, via a live probe with a restrictive grammar (or host docs), and notes the evidence in the file's header. Why: All 14 ngrok GPT-5.x entries (gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, the three chat-latest ids, gpt-5.1, gpt-5.2, gpt-5.2-codex, gpt-5.2-pro, gpt-5.3-codex, gpt-5.4-mini, gpt-5.4-nano) publish no freeform and their headers state "custom-tool grammars have not been live-probed through the gateway yet" — the required check was deferred, so these files currently publish "no custom tools" for a pass-through gateway. The lab entries (providers/openai) and the same-API peer this PR copies from (providers/openrouter/models/openai/gpt-5.2-codex.toml, freeform text/lark/regex enforced on Responses, custom tools rejected on Chat Completions) indicate the published value is likely wrong on the Responses tables of these models. Action: Probe a restrictive grammar (e.g. a custom tool with regex ZZ[0-9]{3} whose output proves enforcement) through the gateway on each API these models list (chat-completions and/or responses), or cite ngrok docs stating custom tools are forwarded or stripped; then author the verified freeform formats on the APIs where they work, leave freeform out where custom tools are rejected, and keep the per-file evidence note in the header.

This branch was previously deployed

1 inactive deployment
release — 89bdffa6 Deployed Nov 13, 2026 by samcrichard via review #18835
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant