From 04e188aaec7d7480742f48746dc5f10f07265634 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 12 Oct 2026 21:04:10 +0800 Subject: [PATCH] =?UTF-8?q?qoder=200.2.13:=20an=20account=20lists=20the=20?= =?UTF-8?q?models=20Qoder's=20app=20shows,=20Fast=20(0.8=C3=97)=20among=20?= =?UTF-8?q?them,=20and=20keeps=20Performance=20(#97)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Qoder's model listing (/algo/api/v2/model/list) has a list per scene. The plugin read only "chat", while its requests are sent as Qoder's app (product and session_type "app"). On 2026-10-12 the app scene lists Fast (key fast, 0.8×) where chat still lists Performance (1.1×), so magpie showed Performance and never Fast, which Qoder's app shows (yygutn, #97). The models hook now lists the app scene in its order and adds each model only chat still lists after the model it follows there, so a pick of Performance stays served. Each key once; the app's entry wins. A listing with one scene gives that one. New app models show from the account's own listing without a plugin release. The fallback list gains Fast. Verified: - The real listing read through the plugin on the owner's Qoder account (sandbox HOME, credential copied in memory, nothing written, no token renewed): fast "Fast" rate 0.8 and performance rate 1.1 both listed. - models.test.mjs runs on that real listing (testdata/listing.json, the chat and app scenes); all 4 tests fail with modelInfos put back to listing.chat, and pass with the change. - bun test (sandbox HOME/TMPDIR): 1133 pass, 0 fail. bun scripts/check.mjs ok. Not verified: a real chat on fast. Every model on that account (fast, performance, efficient, qfmodel) was refused with 403 code 10605 (serviceAvailable false, queueType p3, retryAfterSeconds 30) though the trial has 143/300 credits; the plugin reports that as a lapsed sign-in, filed separately. Qoder CN's listing wasn't read (no CN account). --- packages/qoder/README.md | 14 +- packages/qoder/index.mjs | 32 +- packages/qoder/models.test.mjs | 51 + packages/qoder/package.json | 2 +- packages/qoder/testdata/listing.json | 1647 ++++++++++++++++++++++++++ 5 files changed, 1738 insertions(+), 8 deletions(-) create mode 100644 packages/qoder/models.test.mjs create mode 100644 packages/qoder/testdata/listing.json diff --git a/packages/qoder/README.md b/packages/qoder/README.md index 0931c4c..abceb42 100644 --- a/packages/qoder/README.md +++ b/packages/qoder/README.md @@ -91,17 +91,23 @@ itself. ## Models The `provider.models` hook reads the account's own list, as Qoder's client -asks for it (`/algo/api/v2/model/list`). It keeps the enabled chat models -and leaves out "auto" and "default", which route inside Qoder. It takes +asks for it (`/algo/api/v2/model/list`). It keeps the enabled models of the +listing's `app` scene, the list Qoder's app shows and the one a request +names (`session_type: "app"`), and adds any model only the `chat` scene +still lists after the model it follows there, so a model picked before +stays served (since 0.2.13, #97: the app listed Fast, 0.8×, where chat +lists Performance, 1.1×). It leaves out "auto" and "default", which route +inside Qoder. It takes each model's reasoning levels from its `thinking_config`, and its context from its `context_config`: the largest window it offers (Qoder's docs give Qwen3.8-Flash 200K, 400K and 1M), not `max_input_tokens` (180K there), which is only what a request naming no window gets. A model listed with no windows keeps `max_input_tokens`. -The `config` hook declares the list as it was on 2026-09-30: +The `config` hook declares the list as it was on 2026-09-30, with the +app's Fast from 2026-10-12: -- Ultimate, Performance, Efficient +- Ultimate, Fast, Performance, Efficient - Sonus, Cantus - Qwen3.8-Max, Qwen3.8-Flash, Qwen3.7-Max, Qwen3.7-Plus - Kimi-K3, Kimi-K2.8-Preview diff --git a/packages/qoder/index.mjs b/packages/qoder/index.mjs index afbbb0a..cbbfeee 100644 --- a/packages/qoder/index.mjs +++ b/packages/qoder/index.mjs @@ -340,9 +340,11 @@ async function refreshJob(site, refresh, user) { const EFFORT_ORDER = ["minimal", "low", "medium", "high", "xhigh", "max"] const EFF5 = ["low", "medium", "high", "xhigh", "max"] -// Qoder's list when the account's can't be asked (as it was on 2026-09-30). +// Qoder's list when the account's can't be asked (as it was on 2026-09-30, +// with the app's Fast from 2026-10-12). const MODELS = [ { id: "ultimate", name: "Ultimate", context: 1_000_000, efforts: EFF5 }, + { id: "fast", name: "Fast", context: 1_000_000 }, { id: "performance", name: "Performance", context: 1_000_000, efforts: EFF5 }, { id: "efficient", name: "Efficient", context: 200_000 }, { id: "smodel", name: "Sonus", context: 180_000, efforts: EFF5 }, @@ -485,10 +487,34 @@ function modelInfo(raw) { return m } -// modelInfos is the listing's enabled chat models an agent can pick: "auto" +// sceneModels is the models an agent can pick from the listing: the "app" +// scene's, which is what Qoder's app shows and what a request names +// (qoderBody's product and session_type "app"), in its order, then any +// "chat" model the app no longer lists, after the model it followed there, +// so a pick made before stays served. On 2026-10-12 the app listed Fast +// (fast, 0.8×) where Performance (1.1×) had been, and chat still listed +// Performance (magpie-community/plugins#97). A listing with only one scene +// gives that one. Each key once: the app's entry wins. +function sceneModels(listing) { + const app = Array.isArray(listing?.app) ? listing.app : [] + const chat = Array.isArray(listing?.chat) ? listing.chat : [] + const out = [...app] + let after = -1 + for (const m of chat) { + const i = out.findIndex((x) => x?.key === m?.key) + if (i >= 0) { + after = i + continue + } + out.splice(++after, 0, m) + } + return out +} + +// modelInfos is the listing's enabled models an agent can pick: "auto" // and "default" route inside Qoder and aren't one model. function modelInfos(listing) { - return (listing?.chat ?? []) + return sceneModels(listing) .filter((m) => m?.enable && !["", "auto", "default"].includes(String(m.key ?? "").trim())) .map(modelInfo) } diff --git a/packages/qoder/models.test.mjs b/packages/qoder/models.test.mjs new file mode 100644 index 0000000..279e35a --- /dev/null +++ b/packages/qoder/models.test.mjs @@ -0,0 +1,51 @@ +// The models an account lists are the "app" scene's, which Qoder's app +// shows and a request names, with any model only "chat" still lists kept +// (magpie-community/plugins#97). testdata/listing.json is a real account's +// /algo/api/v2/model/list on 2026-10-12 (its chat and app scenes): the app +// lists Fast at 0.8× where chat lists Performance at 1.1×. +import { afterEach, expect, test } from "bun:test" +import { readFileSync } from "node:fs" +import { QoderAuthPlugin } from "./index.mjs" + +const LISTING = JSON.parse(readFileSync(new URL("./testdata/listing.json", import.meta.url), "utf8")) +const real = globalThis.fetch +afterEach(() => (globalThis.fetch = real)) + +const account = () => ({ type: "oauth", access: "jt", refresh: "rt", expires: Date.now() + 3_600_000, accountId: "a@x", uid: "u1", machineId: "m1" }) + +async function listed(listing) { + globalThis.fetch = async (url) => { + if (new URL(String(url)).pathname === "/algo/api/v2/model/list") return new Response(JSON.stringify(listing)) + return new Response("", { status: 404 }) + } + const hooks = await QoderAuthPlugin({ client: { auth: { set: async () => {} } } }) + return hooks.provider.models({ models: { fallback: {} } }, { auth: account() }) +} + +test("the app's Fast is listed at its price, and chat's Performance stays", async () => { + const ms = await listed(LISTING) + expect(ms.fast).toMatchObject({ name: "Fast", rate: 0.8 }) + expect(ms.performance).toMatchObject({ name: "Performance", rate: 1.1 }) + expect(Object.keys(ms)).toEqual([ + "ultimate", "performance", "fast", "efficient", "smodel", "cmodel", "qmodel_38max", "qfmodel", "qmodel_latest", "qmodel", + "gmodel", "gfmodel", "kmodel_latest", "kmodel", "dmodel", "dfmodel", "mmodel", + ]) +}) + +test("a model both scenes list is listed once, as the app gives it", async () => { + const chat = LISTING.chat.map((m) => (m.key === "ultimate" ? { ...m, display_name: "Ultimate (chat)" } : m)) + const ms = await listed({ chat, app: LISTING.app }) + expect(ms.ultimate.name).toBe("Ultimate") +}) + +test("a listing with only one scene lists that scene", async () => { + expect(Object.keys(await listed({ chat: LISTING.chat }))).toContain("performance") + expect(Object.keys(await listed({ chat: LISTING.chat }))).not.toContain("fast") + expect(Object.keys(await listed({ app: LISTING.app }))).toContain("fast") + expect(Object.keys(await listed({ app: LISTING.app }))).not.toContain("performance") +}) + +test("a model the app turns off isn't listed though chat has it on", async () => { + const app = LISTING.app.map((m) => (m.key === "efficient" ? { ...m, enable: false } : m)) + expect(Object.keys(await listed({ chat: LISTING.chat, app }))).not.toContain("efficient") +}) diff --git a/packages/qoder/package.json b/packages/qoder/package.json index bf2d1b2..081e158 100644 --- a/packages/qoder/package.json +++ b/packages/qoder/package.json @@ -1,6 +1,6 @@ { "name": "@magpie-community/opencode-qoder-auth", - "version": "0.2.12", + "version": "0.2.13", "description": "Qoder subscriptions in OpenCode and magpie: Qoder (qoder.com) and Qoder CN (qoder.cn)", "type": "module", "main": "./index.mjs", diff --git a/packages/qoder/testdata/listing.json b/packages/qoder/testdata/listing.json new file mode 100644 index 0000000..f0a431d --- /dev/null +++ b/packages/qoder/testdata/listing.json @@ -0,0 +1,1647 @@ +{ + "chat": [ + { + "key": "auto", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Auto", + "is_vl": true, + "is_reasoning": false, + "is_default": true, + "price_factor": 0.5, + "max_input_tokens": 200000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "context_config": { + "200K": { + "token_count": 200000, + "is_default": true + } + } + }, + { + "key": "ultimate", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Ultimate", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "price_factor": 2.0, + "max_input_tokens": 1000000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "efforts": { + "xhigh": {}, + "high": { + "is_default": true + }, + "low": {}, + "max": {}, + "medium": {} + }, + "is_default": true + } + } + }, + { + "key": "performance", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Performance", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "price_factor": 1.1, + "max_input_tokens": 1000000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_editable": true, + "context_config": { + "272K": { + "token_count": 272000, + "is_default": true + }, + "1M": { + "token_count": 1000000 + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "efforts": { + "xhigh": { + "description": "Extreme thinking intensity" + }, + "high": { + "description": "High thinking intensity" + }, + "low": { + "description": "Low thinking intensity" + }, + "max": { + "description": "Maximum thinking intensity" + }, + "medium": { + "description": "Medium thinking intensity", + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "efficient", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Efficient", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "price_factor": 0.3, + "max_input_tokens": 200000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true + }, + { + "key": "smodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Sonus", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 8.0, + "max_input_tokens": 180000, + "minimal_version": { + "cli": "1.0.48", + "jb_plugin": "2026.715.1", + "ide": "1.13.3", + "qoder_wake": "1.0.48" + }, + "strategies": [ + { + "tag": "C4", + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "xhigh": {}, + "high": { + "is_default": true + }, + "low": {}, + "max": {}, + "medium": {} + }, + "is_default": true + } + } + }, + { + "key": "cmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Cantus", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 4.0, + "max_input_tokens": 180000, + "minimal_version": { + "cli": "1.0.48", + "jb_plugin": "2026.715.1", + "ide": "1.13.3", + "qoder_wake": "1.0.48" + }, + "strategies": [ + { + "tag": "C4", + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "xhigh": {}, + "high": { + "is_default": true + }, + "low": {}, + "max": {}, + "medium": {} + }, + "is_default": true + } + } + }, + { + "key": "qmodel_38max", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.8-Max", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.5, + "max_input_tokens": 180000, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": {}, + "enabled": { + "efforts": { + "xhigh": { + "is_default": true + }, + "low": {}, + "medium": {} + }, + "is_default": true + } + }, + "promotion": { + "active": false, + "badge": { + "en": "Off-Peak 60% off", + "zh": "错峰 4 折" + }, + "description": { + "en": "Off-Peak 60% off (10 PM-8 AM UTC+8)", + "zh": "错峰时段4折优惠(10 PM-8 AM UTC+8)" + }, + "timezone": "Asia/Singapore", + "rule_id": "idle_time_model_credit_discount", + "discount_factor": 0.4, + "before_promotion_price_factor": 0.5, + "link_url": { + "en": "https://docs.qoder.com/events/offpeakrate", + "zh": "https://docs.qoder.com/zh/events/offpeakrate" + }, + "window_start": "22:00", + "window_end": "08:00" + } + }, + { + "key": "qfmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.8-Flash", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.0, + "original_price_factor": 0.1, + "max_input_tokens": 180000, + "is_free": true, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": {}, + "enabled": { + "efforts": { + "xhigh": {}, + "low": {}, + "medium": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "qmodel_latest", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.7-Max", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.5, + "original_price_factor": 0.5, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "is_default": true + } + } + }, + { + "key": "qmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.7-Plus", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.1, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "is_default": true + } + }, + "promotion": { + "active": false, + "badge": { + "en": "Off-Peak 60% off", + "zh": "错峰4折" + }, + "description": { + "en": "Off-Peak 60% off (10 PM-8 AM UTC+8)", + "zh": "错峰时段4折优惠(10 PM-8 AM UTC+8)" + }, + "timezone": "Asia/Singapore", + "rule_id": "idle_time_model_credit_discount", + "discount_factor": 0.4, + "before_promotion_price_factor": 0.1, + "link_url": { + "en": "https://docs.qoder.com/events/offpeakrate", + "zh": "https://docs.qoder.com/zh/events/offpeakrate" + }, + "window_start": "22:00", + "window_end": "08:00" + } + }, + { + "key": "kmodel_latest", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Kimi-K3", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 1.4, + "max_input_tokens": 180000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": {}, + "low": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "kmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Kimi-K2.8-Preview", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.8, + "minimal_version": { + "cli": "0.1.26", + "jb_plugin": "0.12.0", + "ide": "0.3.1" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": {}, + "low": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "gmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "GLM-5.3", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.8, + "max_input_tokens": 180000, + "strategies": [ + { + "tag": "C4", + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "high": {}, + "low": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "gfmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "GLM-5.3-Flash", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.1, + "max_input_tokens": 1000000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "high": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "dmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "DeepSeek-V4-Pro", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.5, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": { + "description": "High thinking intensity" + }, + "max": { + "description": "Maximum thinking intensity", + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "dfmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "DeepSeek-Flash", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.1, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": {}, + "max": { + "is_default": true + }, + "low": {} + }, + "is_default": true + } + } + }, + { + "key": "mmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "MiniMax-M3", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.2, + "max_input_tokens": 180000, + "minimal_version": { + "cli": "0.1.26", + "jb_plugin": "0.12.0", + "ide": "0.3.1" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + } + } + ], + "app": [ + { + "key": "auto", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Auto", + "is_vl": true, + "is_reasoning": false, + "is_default": true, + "price_factor": 0.5, + "max_input_tokens": 200000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "context_config": { + "200K": { + "token_count": 200000, + "is_default": true + } + } + }, + { + "key": "ultimate", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Ultimate", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "price_factor": 2.0, + "max_input_tokens": 1000000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "efforts": { + "xhigh": {}, + "high": { + "is_default": true + }, + "low": {}, + "max": {}, + "medium": {} + }, + "is_default": true + } + } + }, + { + "key": "fast", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Fast", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "price_factor": 0.8, + "max_input_tokens": 200000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + } + }, + { + "key": "efficient", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Efficient", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "price_factor": 0.3, + "max_input_tokens": 200000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true + }, + { + "key": "smodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Sonus", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 8.0, + "max_input_tokens": 180000, + "minimal_version": { + "cli": "1.0.48", + "jb_plugin": "2026.715.1", + "ide": "1.13.3", + "qoder_wake": "1.0.48" + }, + "strategies": [ + { + "tag": "C4", + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "xhigh": {}, + "high": { + "is_default": true + }, + "low": {}, + "max": {}, + "medium": {} + }, + "is_default": true + } + } + }, + { + "key": "cmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Cantus", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 4.0, + "max_input_tokens": 180000, + "minimal_version": { + "cli": "1.0.48", + "jb_plugin": "2026.715.1", + "ide": "1.13.3", + "qoder_wake": "1.0.48" + }, + "strategies": [ + { + "tag": "C4", + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "xhigh": {}, + "high": { + "is_default": true + }, + "low": {}, + "max": {}, + "medium": {} + }, + "is_default": true + } + } + }, + { + "key": "qmodel_38max", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.8-Max", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.5, + "max_input_tokens": 180000, + "strategies": [ + { + "tag": "enterprise-safety", + "enabled": true + } + ], + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": {}, + "enabled": { + "efforts": { + "xhigh": {}, + "low": {}, + "medium": { + "is_default": true + } + }, + "is_default": true + } + }, + "promotion": { + "active": false, + "badge": { + "en": "Off-Peak 60% off", + "zh": "错峰 4 折" + }, + "description": { + "en": "Off-Peak 60% off (10 PM-8 AM UTC+8)", + "zh": "错峰时段4折优惠(10 PM-8 AM UTC+8)" + }, + "timezone": "Asia/Singapore", + "rule_id": "idle_time_model_credit_discount", + "discount_factor": 0.4, + "before_promotion_price_factor": 0.5, + "link_url": { + "en": "https://docs.qoder.com/events/offpeakrate", + "zh": "https://docs.qoder.com/zh/events/offpeakrate" + }, + "window_start": "22:00", + "window_end": "08:00" + } + }, + { + "key": "qfmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.8-Flash", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.0, + "original_price_factor": 0.1, + "max_input_tokens": 180000, + "strategies": [ + { + "tag": "enterprise-safety", + "enabled": true + } + ], + "is_free": true, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": {}, + "enabled": { + "efforts": { + "xhigh": {}, + "low": {}, + "medium": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "qmodel_latest", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.7-Max", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.5, + "original_price_factor": 0.5, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "strategies": [ + { + "tag": "enterprise-safety", + "enabled": true + } + ], + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "is_default": true + } + } + }, + { + "key": "qmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Qwen3.7-Plus", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.1, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "strategies": [ + { + "tag": "enterprise-safety", + "enabled": true + } + ], + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "is_default": true + } + }, + "promotion": { + "active": false, + "badge": { + "en": "Off-Peak 60% off", + "zh": "错峰4折" + }, + "description": { + "en": "Off-Peak 60% off (10 PM-8 AM UTC+8)", + "zh": "错峰时段4折优惠(10 PM-8 AM UTC+8)" + }, + "timezone": "Asia/Singapore", + "rule_id": "idle_time_model_credit_discount", + "discount_factor": 0.4, + "before_promotion_price_factor": 0.1, + "link_url": { + "en": "https://docs.qoder.com/events/offpeakrate", + "zh": "https://docs.qoder.com/zh/events/offpeakrate" + }, + "window_start": "22:00", + "window_end": "08:00" + } + }, + { + "key": "gmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "GLM-5.3", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.8, + "max_input_tokens": 180000, + "strategies": [ + { + "tag": "C4", + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "high": {}, + "low": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "gfmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "GLM-5.3-Flash", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.1, + "max_input_tokens": 1000000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "efforts": { + "high": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "kmodel_latest", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Kimi-K3", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 1.4, + "max_input_tokens": 180000, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": {}, + "low": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "kmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "Kimi-K2.8-Preview", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.8, + "minimal_version": { + "cli": "0.1.26", + "jb_plugin": "0.12.0", + "ide": "0.3.1" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": {}, + "low": {}, + "max": { + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "dmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "DeepSeek-V4-Pro", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.5, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": { + "description": "High thinking intensity" + }, + "max": { + "description": "Maximum thinking intensity", + "is_default": true + } + }, + "is_default": true + } + } + }, + { + "key": "dfmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "DeepSeek-Flash", + "is_vl": true, + "is_reasoning": true, + "is_default": false, + "is_new": true, + "price_factor": 0.1, + "max_input_tokens": 1000000, + "minimal_version": { + "cli": "0.1.25", + "jb_plugin": "0.15.0", + "ide": "0.3.0" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + }, + "thinking_config": { + "disabled": { + "description": "Disable thinking" + }, + "enabled": { + "description": "Enable thinking", + "efforts": { + "high": {}, + "max": { + "is_default": true + }, + "low": {} + }, + "is_default": true + } + } + }, + { + "key": "mmodel", + "format": "openai", + "source": "system", + "enable": true, + "display_name": "MiniMax-M3", + "is_vl": true, + "is_reasoning": false, + "is_default": false, + "is_new": true, + "price_factor": 0.2, + "max_input_tokens": 180000, + "minimal_version": { + "cli": "0.1.26", + "jb_plugin": "0.12.0", + "ide": "0.3.1" + }, + "strategies": [ + { + "tag": "C4", + "priority": 999, + "enabled": false, + "disabled_message_key": "codeSafeModelReason" + } + ], + "is_sensitive": true, + "is_free": false, + "is_editable": true, + "context_config": { + "1M": { + "token_count": 1000000 + }, + "200K": { + "token_count": 200000, + "is_default": true + }, + "400K": { + "token_count": 400000 + } + } + } + ] +} \ No newline at end of file