Skip to content

feat(providers): add Isoquant - #13577

Closed
NachiketKandari wants to merge 11 commits into
anomalyco:devfrom
NachiketKandari:isoquant
Closed

NachiketKandari wants to merge 11 commits into
anomalyco:devfrom
NachiketKandari:isoquant

Conversation

@NachiketKandari

@NachiketKandari NachiketKandari commented Nov 13, 2026 •

Copy link
Copy Markdown

Summary

Adds Isoquant as a provider with both models currently available from its public catalog:

  • deepseek-v4.1-flash-1017-fast
  • glm-5.3-flash

Isoquant exposes OpenAI-compatible Chat Completions and Responses APIs at the same base URL. Both models reuse the existing lab definitions via base_model; no lab metadata is duplicated. A sync module keeps pricing, limits and effort lists current from the public /v1/models catalog.

Models

Model Context Max output Input Output Cached input
DeepSeek V4.1 Flash 1017 Fast 1,048,576 943,718 $0.035/M $0.37/M $0.005/M
GLM-5.3-Flash 1,048,576 131,072* $0.07/M $0.15/M $0.025/M

* Isoquant reports output_limit.policy = "remaining_context" with no fixed host cap published in /v1/models for GLM, so the model-level 131,072 output limit is inherited.

Both models support strict tools, structured output, reasoning effort, image input, and automatic prefix caching.

APIs

  • chat-completions: POST https://api.isoquant.ai/v1/chat/completions, reasoning in reasoning_content
  • messages: POST https://api.isoquant.ai/v1/messages (Anthropic-compatible), effort via output_config.effort
  • responses: POST https://api.isoquant.ai/v1/responses

Messages requires anthropic-version: 2023-06-01; both x-api-key and Bearer auth work, and both models were verified against it.

Auth: ISOQUANT_API_KEY.

Sources

Validation

  • bun validate passes.
  • bun test packages/core/test/isoquant-sync.test.ts passes.
  • bun models:sync isoquant --dry-run reports 0 created, 0 updated, 0 removed, 2 unchanged.
  • bun run v1:check reports the expected new-provider additions; see below.

These are chat models, so they are intentionally not marked v2_only.

bun run v1:check
Added to v1 (2; new models should usually be v2_only): isoquant/glm-5.3-flash, isoquant/deepseek-v4.1-flash-1017-fast

Changed v1 fields (count, change, examples):
     1  api id: added   [isoquant (provider)]
     1  api env: added   [isoquant (provider)]
     1  api npm: added   [isoquant (provider)]
     1  api api: added   [isoquant (provider)]
     1  api name: added   [isoquant (provider)]
     1  api doc: added   [isoquant (provider)]

v1 output changed in 3 of 22 views.

Live testing

Tested in OpenCode with a custom Isoquant provider entry and only ISOQUANT_API_KEY set. Both models completed real agentic tool calls, not just chat:

  • isoquant/deepseek-v4.1-flash-1017-fast → shell ran printf catalog-ok → catalog-ok
  • isoquant/glm-5.3-flash → shell ran printf catalog-glm-ok → catalog-glm-ok

OpenCode running DeepSeek V4.1 Flash 1017 Fast via Isoquant

The screenshot shows OpenCode using DeepSeek V4.1 Flash 1017 Fast · Isoquant, with context and cost visible in the sidebar. It is hosted on a separate assets branch so the diff stays limited to the catalog and sync module.

Notes

  • Isoquant-ZDR: required opts a request into zero data retention; the DeepSeek route is ZDR-required at the model level, and an account requirement applies when the header is omitted.
  • Isoquant publishes a cached-input price but no cache-write price, so only the read price is modeled.
  • The logo is adapted from Isoquant's official favicon (https://isoquant.ai/icon.svg) to currentColor; happy to replace it with an official brand SVG if one is provided.
  • isoquant:sync updates prices, context/output limits, effort lists and the default effort from /v1/models. It creates no new models (skipCreates) and retains files absent from a response (deleteMissing: false) because the catalog is small.
  • Capability evidence beyond the catalog came from live probes: GLM accepts top_k on all three APIs and gif/webp images, DeepSeek rejects top_k and max effort, strict tool calls work on Messages for both models, and both reject store: true. Sources for each are in the TOML headers.

Add DeepSeek V4.1 Flash 1017 Fast and GLM-5.3-Flash with Chat
Completions and Responses APIs, reasoning controls, limits, and pricing
from https://api.isoquant.ai/v1/models.
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [low] [possible mistake] providers/isoquant/models/glm-5.3-flash.toml:14 - Check: The [modalities] input = ["text", "image/jpeg", "image/png"] override must be a real, evidenced host delta from the base (models/zhipuai/glm-5.3-flash.toml lists video/mp4, video/x-matroska, video/quicktime, application/pdf as well). Why: Arrays replace on merge, so this publishes a narrower v2 input-modality set than the lab model, yet nothing in the PR body or the file's header comment supports the narrowing — the PR body only claims "image input", and peer relays document their narrowed lists with citations (e.g. OpenRouter's glm-5.3-flash header cites its multimodal docs). If Isoquant forwards video_url/file content parts, this entry under-reports the host. Action: Cite the host evidence (catalog metadata, docs, or a live probe) for the exact accepted input content types in the leading header comment, or drop the override and inherit the lab's input list.
  • [low] [possible mistake] providers/isoquant/models/deepseek-v4.1-flash-1017-fast.toml:19 (also providers/isoquant/models/glm-5.3-flash.toml:21) - Check: store = false publishes an affirmative v2 capability claim that must reflect documented host behavior. Why: The header comments enumerate the host's published parameter set (top_k absent/rejected, temperature/top_p accepted) but never mention store, and provider.toml says zero data retention is opt-in via the Isoquant-ZDR header — implying retention is the default. The repo's existing store entries are each tied to documented behavior (OpenAI/Azure store = true where supported; Snowflake Cortex store = false citing a compatibility chart that errors on store), so an undocumented flag here is unverified and may misinform consumers. Action: Verify against the host's parameter set/docs whether store is rejected or completions are retained by default, cite that evidence in the header, or remove store = false from both files.

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [possible mistake] providers/isoquant/models/deepseek-v4.1-flash-1017-fast.toml:19 - Check: Reasoning effort set for DeepSeek V4.1 Flash 1017 on Isoquant. Why: The lab's own entry for this exact model (providers/deepseek/models/deepseek-flash.toml) and every relay peer in the repo serving it (OpenRouter, Kilo, CoralBricks, Hyper, Engy) expose max in the effort set; this file drops it, resting only on the host's /v1/models parameter list. DeepSeek's own GET /models reports effort.supported_levels = [low, high, max] while none is also accepted, so a models-endpoint effort list can omit values the endpoint still accepts — the same could hold for max here. If max works on Isoquant, the catalog wrongly tells callers it doesn't exist. Action: Verify with a live probe (reasoning_effort = "max" on chat-completions, reasoning.effort = "max" on responses) or the host's docs that max is actually rejected; if it is accepted, add it to effort and note the evidence in the header comment.

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [possible mistake] providers/isoquant/models/glm-5.3-flash.toml:19 - Check: Input modality claims must be sourced to this host or inherited from the lab file. Why: The list adds image/gif and image/webp, but models/zhipuai/glm-5.3-flash.toml documents only image/jpeg/image/png as image inputs (plus video and PDF) — the header's "the remaining image types are inherited from the lab" covers neither, and the list exactly matches the DeepSeek lab's image formats rather than the GLM lab's, so it looks copied from the other file. No cited evidence covers image/webp at all, and the lab's documented vision formats (jpg/jpeg/png) contradict it. Clients relying on this will send formats the host may reject. Action: Remove image/webp (and image/gif unless the host docs enumerate accepted formats rather than only using gif in an example), or cite where Isoquant documents its accepted image formats for this model.
  • [low] [possible mistake] providers/isoquant/models/glm-5.3-flash.toml:23 - Check: Top-level tool details must hold on every listed API and be evidenced in the file. Why: strict = true claims strict tool schemas are enforced on both chat-completions and responses, but this file's header documents no source for it — the deepseek file in this same PR documents its strict support explicitly, and the lab's own entry (providers/zhipuai/models/glm-5.3-flash.toml) records "no strict tool mode" on Zhipu's API, so it cannot be assumed inherited. Action: Cite the catalog field or probe showing strict tool schemas are enforced for GLM-5.3-Flash on both APIs (as done for the DeepSeek model), or drop strict.
  • [low] [possible mistake] providers/isoquant/provider.toml:1 - Check: Sync module recommendation per sync.md when the catalog API is context-rich. Why: The PR's own headers show https://api.isoquant.ai/v1/models authoritatively publishes prices (including cached input), context/output limits and output policy, effort levels with defaults, and tool-choice values — enough to populate cost/limit/capability fields and detect removed models (comparable hosts such as empiriolabs are sync-owned). Action: Add a sync module for isoquant, or note in the PR why the provider stays hand-authored.

@NachiketKandari NachiketKandari changed the title Add Isoquant provider feat(providers): add Isoquant Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [low] [possible mistake] providers/isoquant/models/glm-5.3-flash.toml:8 - Check: A top-level sampling capability must hold on every API the model lists (schema-v2.ts: "the model's top-level capabilities apply to every API"; there is no per-API top_k override). Why: Patch 4 removed top_k = false so the file now inherits top_k = true from models/zhipuai/glm-5.3-flash.toml, but the cited live probe covers only Chat Completions. The model also lists responses and messages, and the sibling file on the same host (deepseek-v4.1-flash-1017-fast.toml:9-10) documents Isoquant's Responses API rejecting top_k outright, so the published top_k: true is unverified — and plausibly false — for two of the three APIs. Action: Live-probe top_k on Isoquant's Responses (and Messages) endpoints for glm-5.3-flash; if it is rejected, restore top_k = false, otherwise document the per-API probe result in the header.

  • [low] [possible mistake] providers/isoquant/models/glm-5.3-flash.toml:26 - Check: Top-level [capabilities] tools values (including strict) hold on every API the model lists; per AGENTS.md, a tool detail that differs by API is set only on the APIs that have it ([api.<protocol>] capabilities = { tools = { … } }). Why: Patch 5 added [api.messages] (and the Anthropic-compatible Messages surface) to both files, so the top-level strict = true (and the recorded choice set) now claims the Messages API too — but the cited evidence (strict_tools: true) is explicitly scoped to "both Chat Completions and Responses" (line 7), and no Messages tool probe is documented; the same gap applies to deepseek-v4.1-flash-1017-fast.toml:21. Action: Verify strict tools (and tool_choice values) on the Messages endpoint, or scope strict to the [api.chat-completions]/[api.responses] capabilities tables so the Messages API doesn't inherit an unverified claim.

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [low] [possible mistake] providers/isoquant/models/deepseek-v4.1-flash-1017-fast.toml:29 - Check: A top-level capability value must hold on every API the model lists (AGENTS.md → APIs). Why: The file asserts top_k = false across three listed APIs, but its own header documents the rejection probe on only "both APIs" (Chat Completions and Responses) — Messages is unprobed for top_k (and for the none|low|high effort levels and temperature/top_p). The sibling glm-5.3-flash.toml on the same host records live probes showing top_k is accepted on Messages, so the Anthropic-compatible surface plausibly takes it here too, which would make the top-level false wrong for one of the three APIs. Action: Live-probe top_k (and the effort levels) on /v1/messages for this model and record the result in the header comment; if Messages accepts top_k, reword the comment so the file no longer implies the rejection holds on every listed API.

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/isoquant/models/glm-5.3-flash.toml:28 - Check: Top-level capabilities.tools values must hold on every API the model lists; a value that differs by API must be set only on the APIs that have it (AGENTS.md → APIs / tool details). Why: The file's own header documents Responses tool choice as auto|required|named|function (no none), while the top-level choice = ["auto", "none", "required", "tool"] is inherited by every listed API — v2 resolves api.responses.capabilities.tools.choice from the top level unless [api.responses] overrides it, so the published catalog tells clients tool_choice: "none" works on Responses where the PR's own probe evidence says it doesn't. The DeepSeek file is consistent (all three APIs support none); only GLM has the mismatch. Action: Either narrow the top-level choice to the intersection (["auto", "required", "tool"]) and add capabilities = { tools = { choice = ["auto", "none", "required", "tool"] } } on [api.chat-completions] and [api.messages] (the pattern providers/zhipuai/models/glm-5.3-flash.toml uses), or, if Responses actually accepts none, correct the header comment to match the authored data.

@NachiketKandari

NachiketKandari commented Nov 13, 2026 •

Copy link
Copy Markdown
Author

Resolution summary — head 03e5115

Every action item below is addressed. Evidence is from the public catalog (https://api.isoquant.ai/v1/models), https://isoquant.ai/docs, or live probes against https://api.isoquant.ai/v1 on 2026-11-13. bun validate passes; the sync dry-run is clean.

store = false (14:04)

Both models reject store: true on /v1/responses:

Model Status Error
deepseek-v4.1-flash-1017-fast 400 unsupported_parameter: "Only stateless foreground Responses are supported"
glm-5.3-flash 400 unsupported_responses_feature: "This backend requires store=false and full input history; stored Responses are not available"

Both model headers cite the probes.

GLM input modalities (14:04, 14:17)

/v1/models reports input_modalities: ["text","image"] for all three APIs. Live probes sent valid 1×1 data URIs on /v1/chat/completions:

Format Status Evidence
image/png 200 model described the image; 41 prompt tokens
image/gif 200 same image perception and token count
image/webp 200 same image perception and token count

Declared list: text, jpeg, png, gif, webp. PNG/GIF/WebP were probed; JPEG is inherited from the Z.AI lab docs. Video/PDF are not advertised by Isoquant. Header cites the probes.

DeepSeek max effort (14:11)

Rejected on all three APIs: 400 "Supported reasoning efforts are low, high and none" — Chat Completions (reasoning_effort), Messages (output_config.effort), and Responses (reasoning.effort). Header now says "all three APIs".

GLM strict tools (14:17, 16:59)

The catalog reports strict_tools: true on chat_completions, messages, and responses. Forced strict: true tool calls returned schema-conforming tool calls:

API Result
Chat Completions 200, finish_reason: tool_calls, get_weather
Messages 200, stop_reason: tool_use, {"city":"Paris"}
Responses 200, function_call

Header covers all three APIs. Top-level strict = true is valid.

Sync module (14:17)

Added packages/core/src/sync/providers/isoquant.ts, registration in packages/core/src/sync/index.ts (aggregators), packages/core/test/isoquant-sync.test.ts, sync.md notes, and bun isoquant:sync.

  • Dry run: 0 created, 0 updated, 0 removed, 2 unchanged.
  • Owns: prices (nano-USD → USD/M), context/output limits, effort lists, default effort.
  • Hand-authored: input formats, store, cache, tool details, API tables.
  • Retains files absent from a response (deleteMissing: false) and fails on an empty catalog.

GLM top_k per API (16:59)

Accepted on every listed API:

API top_k: 5
Chat Completions 200
Messages 200
Responses 200

Header: "top_k is accepted on Chat Completions, Messages and Responses (live probes 2026-11-13)."

DeepSeek Messages sampling (17:07)

/v1/messages for deepseek-v4.1-flash-1017-fast:

Probe Result
top_k: 5 400 "Unsupported request field","param":"top_k"
output_config.effort: "none" 200
output_config.effort: "low" 200
output_config.effort: "high" 200
output_config.effort: "max" 400 "Supported reasoning efforts are low, high and none"
temperature: 0.3 + top_p: 0.9 200

top_k = false now holds on all three APIs; the header names each one.

GLM Responses tool_choice: "none" (17:19)

The header was wrong, not the authored value. Responses does accept none:

API tool_choice Status Tool call
Responses "none" 200 no — response echoes "tool_choice":"none" and returns text
Responses "auto" 200 yes — function_call
Responses "required" 200 yes — function_call
Responses named function 200 yes — function_call
Chat Completions "none" 200 no
Messages {"type":"none"} 200 no

This matches the catalog, which lists none for Responses (isoquant.apis.responses.tool_choice = ["auto","required","named","none"]), and the docs: "Use auto, required, none, or a named function."

The canonical set ["auto","none","required","tool"] therefore holds on all three APIs; no per-API override is needed. Corrected in 85c2d72.

Redundant toggle + effort none (latest)

Neither model exposes a working reasoning toggle on Isoquant; the effort control is the only switch.

DeepSeek on Messages:

Payload Status Result
thinking: {type:"disabled"} alone 200 no thinking block, reasoning_tokens: 0
thinking: {type:"disabled"} + output_config.effort:"none" 200 identical
thinking: {type:"enabled"} + output_config.effort:"none" 400 "Conflicting thinking and reasoning effort"
thinking: {type:"disabled"} + output_config.effort:"high" 400 same conflict

GLM:

Payload Status Result
Messages: thinking: {type:"disabled"} alone 400 validation error
Messages: thinking: {type:"disabled"} + output_config.effort:"max" 200 thinking block — identical to output_config.effort:"max" alone
Messages: thinking: {type:"disabled"} + output_config.effort:"low" 200 no thinking — identical to output_config.effort:"low" alone
Chat: thinking: {type:"disabled"} + reasoning_effort:"low" 400 validation error
Chat: reasoning_effort:"low" alone 200 thinking present

DeepSeek Chat accepts thinking, but every non-conflicting combination returns the same result as the effort value alone (reasoning_content: null, 0 reasoning tokens); Responses has no toggle field. GLM reasoning is always on and none is rejected.

A hand-authored file with both passes bun validate and would publish two competing off controls (no Isoquant file does today); the sync drops the toggle on the next run. Fixed in bc2daf9: the sync drops a preserved toggle when the effort list includes none, matching Vercel (vercel.ts:362-363), CrossModel (crossmodel.ts:197), EmpirioLabs (empiriolabs.ts:203-205) and W&B (wandb.ts:191), with a none|low|high test fixture.

Validation

  • bun validate — pass
  • bun models:sync isoquant --dry-run — 0 created, 0 updated, 0 removed, 2 unchanged
  • bun test packages/core/test/isoquant-sync.test.ts — 9 pass
  • bun run v1:check — only the expected new-provider entries

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [low] [possible mistake] packages/core/src/sync/providers/isoquant.ts:118 - Check: Reasoning-control policy in AGENTS.md → Reasoning controls / .opencode/skills/audit-reasoning-options/SKILL.md: an effort list containing none must never be combined with toggle = true. Why: isoquantReasoningOptions keeps every non-effort entry from existing.reasoning_options (including an authored { type = "toggle" }) and appends the catalog's published effort list, which already contains none for deepseek-v4.1-flash-1017-fast (catalog: none|low|high, file: effort = ["none", "low", "high"]). If a toggle is ever hand-authored on this host (e.g. a future thinking.type passthrough on the DeepSeek route), the next sync run would write toggle = true together with an effort list containing none — the exact combination the policy prohibits — and nothing in the runner or schema rejects it. The peer modules this one is patterned on all guard this: empiriolabs.ts (reasoningOptions filters the toggle when effort includes none), wandb.ts (mergeReasoningOptions), and the Vercel generator. Action: In isoquantReasoningOptions, drop a preserved toggle option when the parsed catalog efforts include none (mirror the empiriolabs.ts guard), and extend the effort-replacement test in packages/core/test/isoquant-sync.test.ts (the reasoning_options: [{ type: "toggle" }] fixture) to assert the toggle is removed when the published list contains none.

@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 13, 2026
@github-actions github-actions Bot removed the reviewer: ready Automated review found no actionable items label Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 13, 2026
@github-actions github-actions Bot removed the reviewer: ready Automated review found no actionable items label Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 14, 2026
@rekram1-node

Copy link
Copy Markdown
Member

Closing as a duplicate: the Isoquant provider was merged in #13318. A sync module can come as a follow-up PR against the merged files.

@NachiketKandari
NachiketKandari deleted the isoquant branch November 15, 2026 05:24

This branch was previously deployed

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

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants