Repository navigation
feat(providers): add Isoquant - #13577
NachiketKandari wants to merge 11 commits into
Conversation
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.
Action items
|
Action items
|
Action items
|
Action items
|
Action items
|
Action items
|
Resolution summary — head
|
| 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— passbun models:sync isoquant --dry-run— 0 created, 0 updated, 0 removed, 2 unchangedbun test packages/core/test/isoquant-sync.test.ts— 9 passbun run v1:check— only the expected new-provider entries
Action items
|
|
No actionable findings. |
|
No actionable findings. |
|
No actionable findings. |
|
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. |
Summary
Adds Isoquant as a provider with both models currently available from its public catalog:
deepseek-v4.1-flash-1017-fastglm-5.3-flashIsoquant 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/modelscatalog.Models
* Isoquant reports
output_limit.policy = "remaining_context"with no fixed host cap published in/v1/modelsfor 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 inreasoning_contentmessages:POST https://api.isoquant.ai/v1/messages(Anthropic-compatible), effort viaoutput_config.effortresponses:POST https://api.isoquant.ai/v1/responsesMessages requires
anthropic-version: 2023-06-01; bothx-api-keyand Bearer auth work, and both models were verified against it.Auth:
ISOQUANT_API_KEY.Sources
Validation
bun validatepasses.bun test packages/core/test/isoquant-sync.test.tspasses.bun models:sync isoquant --dry-runreports 0 created, 0 updated, 0 removed, 2 unchanged.bun run v1:checkreports the expected new-provider additions; see below.These are chat models, so they are intentionally not marked
v2_only.bun run v1:checkLive testing
Tested in OpenCode with a custom Isoquant provider entry and only
ISOQUANT_API_KEYset. Both models completed real agentic tool calls, not just chat:isoquant/deepseek-v4.1-flash-1017-fast→shellranprintf catalog-ok→catalog-okisoquant/glm-5.3-flash→shellranprintf catalog-glm-ok→catalog-glm-okThe 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: requiredopts 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.https://isoquant.ai/icon.svg) tocurrentColor; happy to replace it with an official brand SVG if one is provided.isoquant:syncupdates 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.top_kon all three APIs and gif/webp images, DeepSeek rejectstop_kandmaxeffort, strict tool calls work on Messages for both models, and both rejectstore: true. Sources for each are in the TOML headers.