@eddyskywalker/dsh-chatgpt-subscription 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +8 -3
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +70 -6
- package/lib/index.js +225 -109
- package/lib/{tool-result-pruner-CuKHwU2R.js → tool-result-pruner-Duw9-Gwo.js} +381 -127
- package/lib/tool-result-pruner.js +1 -1
- package/lib/types/client/locales-ru/grok.d.ts.map +1 -1
- package/lib/types/client/providers/grok/locales.d.ts +3 -1
- package/lib/types/client/providers/grok/locales.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/common/model-facts-data.d.ts +4 -0
- package/lib/types/host/common/model-facts-data.d.ts.map +1 -0
- package/lib/types/host/common/model-facts.d.ts +41 -0
- package/lib/types/host/common/model-facts.d.ts.map +1 -0
- package/lib/types/host/common/prompt-cache-policy.d.ts.map +1 -1
- package/lib/types/host/providers/glm-coding-plan/model-catalog.d.ts +9 -11
- package/lib/types/host/providers/glm-coding-plan/model-catalog.d.ts.map +1 -1
- package/lib/types/host/providers/grok/model-catalog.d.ts +5 -1
- package/lib/types/host/providers/grok/model-catalog.d.ts.map +1 -1
- package/lib/types/host/providers/minimax-code/mapper.d.ts.map +1 -1
- package/lib/types/host/providers/minimax-code/model-catalog.d.ts +17 -11
- package/lib/types/host/providers/minimax-code/model-catalog.d.ts.map +1 -1
- package/lib/types/host/providers/qoder/mapper.d.ts +0 -25
- package/lib/types/host/providers/qoder/mapper.d.ts.map +1 -1
- package/lib/types/host/providers/qoder/model-catalog.d.ts.map +1 -1
- package/lib/types/host/providers/step-code/model-catalog.d.ts.map +1 -1
- package/lib/types/host/providers/workbuddy/model-catalog.d.ts.map +1 -1
- package/lib/types/host/runtime/codemode/transport.d.ts +4 -3
- package/lib/types/host/runtime/codemode/transport.d.ts.map +1 -1
- package/lib/types/host/runtime/deepseek-v41-flash/discipline.d.ts.map +1 -1
- package/lib/types/host/runtime/deepseek-v41-flash/index.d.ts +2 -2
- package/lib/types/host/runtime/deepseek-v41-flash/index.d.ts.map +1 -1
- package/lib/types/host/runtime/deepseek-v41-flash/match.d.ts.map +1 -1
- package/lib/types/host/runtime/deepseek-v41-flash/state-anchor.d.ts +4 -0
- package/lib/types/host/runtime/deepseek-v41-flash/state-anchor.d.ts.map +1 -1
- package/lib/types/host/runtime/open-models/identity.d.ts +6 -0
- package/lib/types/host/runtime/open-models/identity.d.ts.map +1 -0
- package/lib/types/host/runtime/open-models/index.d.ts +4 -5
- package/lib/types/host/runtime/open-models/index.d.ts.map +1 -1
- package/lib/types/host/runtime/open-models/profiles.d.ts +10 -22
- package/lib/types/host/runtime/open-models/profiles.d.ts.map +1 -1
- package/lib/types/host/runtime/open-models/state-anchor.d.ts.map +1 -1
- package/lib/types/shared/grok-contracts.d.ts +1 -1
- package/lib/types/shared/grok-contracts.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as resolveProgressUpdatesSettings, n as attachProgressSettings, o as
|
|
|
2
2
|
import { n as ADVISOR_TOOL_TIMEOUT_MS, r as CONSULT_ADVISOR_TOOL_NAME, t as ADVISOR_STATE_PATH } from "./advisor-contracts-BG7iEfUc.js";
|
|
3
3
|
import { h as resolvePlanModePipelineEnabled, l as attachPlanModePipelineSettings } from "./plan-mode-pipeline-DQ8TM6mP.js";
|
|
4
4
|
import { a as PLUGIN_MESSAGE_SOURCE_KIND, c as formatToolUpdateNotice, d as midConversationUpdateToUserMessage, f as normalizeGenerateOptions, i as LlmError$1, l as leadingSystemEndIndex, n as installBundledPresets, o as extractSystemText, r as resolvesFromHere, s as formatMidConversationSystemReminder, u as midConversationSystemToUserMessage } from "./preset-sync-DspdQkYN.js";
|
|
5
|
-
import { A as isDeepSeekV41Flash, B as estimateCodexPayloadTokens, C as
|
|
5
|
+
import { A as isDeepSeekV41Flash, B as estimateCodexPayloadTokens, C as isQwenOpenModel, D as matchOpenModelSession, E as matchOpenModelScope, F as checkpointFromMetadata, G as shouldCompactCodexPayload, H as latestCodexCompaction, I as checkpointFromOutputItems, K as withCodexCompactionTrigger, L as codexCompactionReplayMetadata, M as isDeepSeekV41FlashSession, N as readScopeRoute, O as bareOpenModelId, P as readSessionRoute, R as codexRemoteCompactionEnabled, S as isOpenModelSessionPrefixCacheProtected, T as matchOpenModelProfile, U as noteCodexRemoteCompactionFailure, V as isCompactionItem, W as projectFreshCodexCompaction, _ as isLongSparseOpenModel, b as isOpenModelCacheWarmupProtected, d as OPEN_MODEL_PROFILES, f as isDeepSeekV4NonV41Model, g as isKimiOpenModel, h as isKimiK31OpenModel, j as isDeepSeekV41FlashScope, k as DEEPSEEK_OFFICIAL_PROVIDERS, l as resolveSkipProviders, m as isGlm5OpenModel, n as DEFAULT_SKIP_PROVIDERS, p as isGlm54OpenModel, r as PRUNER_SERVICE_NAME, u as shouldSkipPruningForSession, v as isMimoOpenModel, w as isStepOpenModel, x as isOpenModelPrefixCacheProtected, y as isMinimaxOpenModel, z as codexRemoteCompactionThreshold } from "./tool-result-pruner-Duw9-Gwo.js";
|
|
6
6
|
import { C as isDelegatedCaller, S as installDispatchExecutionGuard, T as resolveDispatchExecutionGuardEnabled, _ as installPlanModeExitReminder, b as registeredPlanControllerActive, h as createPlanNotice, l as PLAN_PROJECTION_KEY, n as EXIT_PLAN_MODE, w as isDelegatedSession } from "./plan-mode-cY8pp0PZ.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import * as LlmModule from "@deepseek-ai/dsh-llm";
|
|
@@ -892,7 +892,7 @@ const ROUTE_PREFIX$6 = "/api/dsh-chatgpt-subscription";
|
|
|
892
892
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
893
893
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
894
894
|
*/
|
|
895
|
-
const PLUGIN_VERSION = "1.
|
|
895
|
+
const PLUGIN_VERSION = "1.5.0";
|
|
896
896
|
const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
|
|
897
897
|
const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
|
|
898
898
|
const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
|
|
@@ -8529,7 +8529,7 @@ const PROMPT_CACHE_POLICIES = Object.freeze({
|
|
|
8529
8529
|
waitJobs: true
|
|
8530
8530
|
}),
|
|
8531
8531
|
"minimax-code": policy({
|
|
8532
|
-
mode: "
|
|
8532
|
+
mode: "automatic",
|
|
8533
8533
|
scope: "unknown",
|
|
8534
8534
|
staticPrefix: true,
|
|
8535
8535
|
coldStart: "in-flight",
|
|
@@ -50452,10 +50452,11 @@ const GROK_VIDEO_TOOL_NAME = "grok_imagine_video";
|
|
|
50452
50452
|
const GROK_REASONING_EFFORTS = [
|
|
50453
50453
|
"low",
|
|
50454
50454
|
"medium",
|
|
50455
|
-
"high"
|
|
50455
|
+
"high",
|
|
50456
|
+
"xhigh"
|
|
50456
50457
|
];
|
|
50457
50458
|
function isGrokReasoningEffort(value) {
|
|
50458
|
-
return value === "low" || value === "medium" || value === "high";
|
|
50459
|
+
return value === "low" || value === "medium" || value === "high" || value === "xhigh";
|
|
50459
50460
|
}
|
|
50460
50461
|
//#endregion
|
|
50461
50462
|
//#region src/host/providers/grok/types.ts
|
|
@@ -50541,32 +50542,49 @@ function entry(input) {
|
|
|
50541
50542
|
...input
|
|
50542
50543
|
};
|
|
50543
50544
|
}
|
|
50544
|
-
/** Source: xai-org/grok-build xai-grok-models/default_models.json (grok-4.6, grok-4.5). */
|
|
50545
|
-
const GROK_MODEL_CATALOG = [
|
|
50546
|
-
|
|
50547
|
-
|
|
50548
|
-
|
|
50549
|
-
|
|
50550
|
-
|
|
50551
|
-
|
|
50552
|
-
|
|
50553
|
-
|
|
50554
|
-
|
|
50555
|
-
|
|
50556
|
-
|
|
50557
|
-
|
|
50558
|
-
|
|
50559
|
-
|
|
50560
|
-
|
|
50561
|
-
|
|
50562
|
-
|
|
50563
|
-
|
|
50564
|
-
|
|
50565
|
-
|
|
50566
|
-
|
|
50567
|
-
|
|
50568
|
-
|
|
50569
|
-
|
|
50545
|
+
/** Source: xai-org/grok-build xai-grok-models/default_models.json (grok-4.7, grok-4.6, grok-4.5). */
|
|
50546
|
+
const GROK_MODEL_CATALOG = [
|
|
50547
|
+
entry({
|
|
50548
|
+
id: "grok-4.7",
|
|
50549
|
+
name: "Grok 4.7",
|
|
50550
|
+
contextWindow: 5e5,
|
|
50551
|
+
maxOutputTokens: 128e3,
|
|
50552
|
+
reasoningEfforts: [
|
|
50553
|
+
"low",
|
|
50554
|
+
"medium",
|
|
50555
|
+
"high",
|
|
50556
|
+
"xhigh"
|
|
50557
|
+
],
|
|
50558
|
+
described: true,
|
|
50559
|
+
description: "Grok 4.7 coding and agentic model."
|
|
50560
|
+
}),
|
|
50561
|
+
entry({
|
|
50562
|
+
id: "grok-4.6",
|
|
50563
|
+
name: "Grok 4.6",
|
|
50564
|
+
contextWindow: 5e5,
|
|
50565
|
+
maxOutputTokens: 64e3,
|
|
50566
|
+
reasoningEfforts: [
|
|
50567
|
+
"low",
|
|
50568
|
+
"medium",
|
|
50569
|
+
"high"
|
|
50570
|
+
],
|
|
50571
|
+
described: true,
|
|
50572
|
+
description: "SpaceXAI's frontier coding model."
|
|
50573
|
+
}),
|
|
50574
|
+
entry({
|
|
50575
|
+
id: "grok-4.5",
|
|
50576
|
+
name: "Grok 4.5",
|
|
50577
|
+
contextWindow: 5e5,
|
|
50578
|
+
maxOutputTokens: 64e3,
|
|
50579
|
+
reasoningEfforts: [
|
|
50580
|
+
"low",
|
|
50581
|
+
"medium",
|
|
50582
|
+
"high"
|
|
50583
|
+
],
|
|
50584
|
+
described: true,
|
|
50585
|
+
description: "Grok 4.5 coding and agentic model."
|
|
50586
|
+
})
|
|
50587
|
+
];
|
|
50570
50588
|
GROK_MODEL_CATALOG.map((item) => item.id);
|
|
50571
50589
|
function resolveGrokModel(entries, id) {
|
|
50572
50590
|
const wanted = id.trim();
|
|
@@ -52614,7 +52632,7 @@ function parseSettingsPatch$7(body, catalog) {
|
|
|
52614
52632
|
patch.contextWindowOverrides = overrides;
|
|
52615
52633
|
}
|
|
52616
52634
|
if (body.defaultReasoningEffort !== void 0) {
|
|
52617
|
-
if (body.defaultReasoningEffort !== null && !isGrokReasoningEffort(body.defaultReasoningEffort)) throw new Error("defaultReasoningEffort must be low, medium, high or null");
|
|
52635
|
+
if (body.defaultReasoningEffort !== null && !isGrokReasoningEffort(body.defaultReasoningEffort)) throw new Error("defaultReasoningEffort must be low, medium, high, xhigh or null");
|
|
52618
52636
|
patch.defaultReasoningEffort = body.defaultReasoningEffort;
|
|
52619
52637
|
}
|
|
52620
52638
|
return patch;
|
|
@@ -58271,7 +58289,7 @@ const KIMI_CODE_MODELS = [
|
|
|
58271
58289
|
thinkingType: "only",
|
|
58272
58290
|
minimumPlan: "Moderato",
|
|
58273
58291
|
contextPlan: "Allegretto",
|
|
58274
|
-
description: "The K3.1 Pro flagship:
|
|
58292
|
+
description: "The K3.1 Pro flagship: 2.8T parameters, a 256K context window on Plus/Moderato and 1M on Pro/Allegretto and above. Thinking runs at low/high/max, defaults to high, and cannot be disabled.",
|
|
58275
58293
|
supportsDynamicTools: true,
|
|
58276
58294
|
quotaMultiplier: 2,
|
|
58277
58295
|
speed: "regular"
|
|
@@ -67936,7 +67954,7 @@ async function assertVideoCapableRoute(ctx, exec, source) {
|
|
|
67936
67954
|
const llm = ctx.get("llm");
|
|
67937
67955
|
if (llm === void 0) throw new HarnessError(`cannot attach "${source}": the LLM service is unavailable`, "KIMI_VIDEO_NO_LLM");
|
|
67938
67956
|
const active = await llm.resolveModelInfo(provider, model, exec.signal);
|
|
67939
|
-
if (active.inputModalities === void 0 || !active.inputModalities.includes("video")) throw new HarnessError(`cannot attach "${source}": model "${model}" does not accept video input; switch to k3, k3.1-pro, kimi-for-coding or kimi-for-coding-highspeed`, "KIMI_VIDEO_MODEL_UNSUPPORTED");
|
|
67957
|
+
if (active.inputModalities === void 0 || !active.inputModalities.includes("video")) throw new HarnessError(`cannot attach "${source}": model "${model}" does not accept video input; switch to k3, k3.1-pro, k3.1-pro-highspeed, kimi-for-coding or kimi-for-coding-highspeed`, "KIMI_VIDEO_MODEL_UNSUPPORTED");
|
|
67940
67958
|
}
|
|
67941
67959
|
function humanBytes$1(bytes) {
|
|
67942
67960
|
return bytes < 1024 * 1024 ? `${(bytes / 1024).toFixed(1)} KB` : `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
@@ -69678,8 +69696,9 @@ function floorForcedThinkingTokens(modelId, requested) {
|
|
|
69678
69696
|
function maxOutputTokensFor$1(modelId, contextWindow) {
|
|
69679
69697
|
const model = catalogEntry$2(modelId);
|
|
69680
69698
|
const declared = model?.maxTokens ?? 32768;
|
|
69699
|
+
const preferred = Math.min(model?.defaultMaxTokens ?? declared, declared);
|
|
69681
69700
|
const window = contextWindow ?? model?.contextWindow ?? 512e3;
|
|
69682
|
-
return Math.max(1, Math.min(
|
|
69701
|
+
return Math.max(1, Math.min(preferred, window - CONTEXT_HEADROOM_TOKENS));
|
|
69683
69702
|
}
|
|
69684
69703
|
/** Reduce a requested cap so prompt plus output still fit the window. */
|
|
69685
69704
|
function clampOutputToContext(requested, contextWindow, estimatedInputTokens) {
|
|
@@ -69788,7 +69807,7 @@ function buildMinimaxRequest(options, images = NO_RESOLVED_IMAGES$2, request = {
|
|
|
69788
69807
|
const thinking = thinkingFieldFor(options.model, requestedEffort);
|
|
69789
69808
|
const modelDef = catalogEntry$2(options.model);
|
|
69790
69809
|
const thinkingEngaged = outputConfig !== void 0 || thinking?.type === "adaptive" || modelDef?.thinking === "always-on" || modelDef?.thinking === "forced-effort";
|
|
69791
|
-
const caching = request.cacheControl !== false;
|
|
69810
|
+
const caching = request.cacheControl !== false && modelDef?.supportsExplicitCache !== false;
|
|
69792
69811
|
const body = {
|
|
69793
69812
|
model: options.model,
|
|
69794
69813
|
max_tokens: maxTokens,
|
|
@@ -70265,12 +70284,12 @@ function processMinimaxStreamLine(line, state) {
|
|
|
70265
70284
|
//#endregion
|
|
70266
70285
|
//#region src/host/providers/minimax-code/model-catalog.ts
|
|
70267
70286
|
/**
|
|
70268
|
-
* The
|
|
70287
|
+
* The five ids the subscription serves today.
|
|
70269
70288
|
*
|
|
70270
|
-
* `MiniMax-M3`
|
|
70271
|
-
*
|
|
70289
|
+
* `MiniMax-M3` remains the measured baseline, and `MiniMax-M4` is the current
|
|
70290
|
+
* 3T flagship published for the API, M Plan and MiniMax Code.
|
|
70272
70291
|
*
|
|
70273
|
-
* The
|
|
70292
|
+
* The M3.1 id used to be `MiniMax-M3.1-Flash-Preview`. MiniMax published
|
|
70274
70293
|
* `MiniMax-M3.1-Flash` (no suffix) and the preview id was measured answering
|
|
70275
70294
|
* 200 on the same day, so the catalog carries the GA name only. Anything still
|
|
70276
70295
|
* naming the preview id in a stored selection, a `provider/model` route string
|
|
@@ -70330,6 +70349,7 @@ const MINIMAX_CODE_MODELS = [
|
|
|
70330
70349
|
"max"
|
|
70331
70350
|
],
|
|
70332
70351
|
defaultReasoningEffort: null,
|
|
70352
|
+
supportsExplicitCache: false,
|
|
70333
70353
|
maxAttachments: 9,
|
|
70334
70354
|
maxImageBytes: 10 * 1024 * 1024,
|
|
70335
70355
|
maxVideoBytes: 50 * 1024 * 1024,
|
|
@@ -70356,11 +70376,40 @@ const MINIMAX_CODE_MODELS = [
|
|
|
70356
70376
|
"max"
|
|
70357
70377
|
],
|
|
70358
70378
|
defaultReasoningEffort: null,
|
|
70379
|
+
supportsExplicitCache: false,
|
|
70359
70380
|
maxAttachments: 4,
|
|
70360
70381
|
maxImageBytes: 10 * 1024 * 1024,
|
|
70361
70382
|
maxVideoBytes: 50 * 1024 * 1024,
|
|
70362
70383
|
filesApiDocumented: true,
|
|
70363
70384
|
description: "Flash model with a 1M context window. Thinking is forced on with a selectable effort level. Accepts up to 4 attachments."
|
|
70385
|
+
},
|
|
70386
|
+
{
|
|
70387
|
+
id: "MiniMax-M4",
|
|
70388
|
+
name: "MiniMax M4",
|
|
70389
|
+
contextWindow: 512e3,
|
|
70390
|
+
optionalContextWindow: 1e6,
|
|
70391
|
+
maxTokens: 262144,
|
|
70392
|
+
defaultMaxTokens: 131072,
|
|
70393
|
+
inputModalities: [
|
|
70394
|
+
"text",
|
|
70395
|
+
"image",
|
|
70396
|
+
"video"
|
|
70397
|
+
],
|
|
70398
|
+
thinking: "forced-effort",
|
|
70399
|
+
reasoningEfforts: [
|
|
70400
|
+
"low",
|
|
70401
|
+
"medium",
|
|
70402
|
+
"high",
|
|
70403
|
+
"xhigh",
|
|
70404
|
+
"max"
|
|
70405
|
+
],
|
|
70406
|
+
defaultReasoningEffort: null,
|
|
70407
|
+
supportsExplicitCache: false,
|
|
70408
|
+
maxAttachments: null,
|
|
70409
|
+
maxImageBytes: null,
|
|
70410
|
+
maxVideoBytes: null,
|
|
70411
|
+
filesApiDocumented: false,
|
|
70412
|
+
description: "2.74T-parameter MoE flagship with 66B active parameters, MSA2 and a 1M-token context window. Thinking is always on with a selectable effort level. Accepts text, image and video input."
|
|
70364
70413
|
}
|
|
70365
70414
|
];
|
|
70366
70415
|
const BY_ID = new Map(MINIMAX_CODE_MODELS.map((model) => [model.id, model]));
|
|
@@ -70469,6 +70518,23 @@ function contextWindowForModel(modelId, contextWindowOverrides) {
|
|
|
70469
70518
|
return fallback;
|
|
70470
70519
|
}
|
|
70471
70520
|
/**
|
|
70521
|
+
* The "everything enabled" selections shipped before M4.
|
|
70522
|
+
*
|
|
70523
|
+
* A stored list equal to one of these is still an untouched default, not an
|
|
70524
|
+
* explicit choice to keep the new model out. The current default is handled
|
|
70525
|
+
* separately from the live catalog size.
|
|
70526
|
+
*/
|
|
70527
|
+
const PREVIOUS_DEFAULT_MODEL_IDS = [[
|
|
70528
|
+
"MiniMax-M2.7",
|
|
70529
|
+
"MiniMax-M2.7-highspeed",
|
|
70530
|
+
"MiniMax-M3"
|
|
70531
|
+
], [
|
|
70532
|
+
"MiniMax-M2.7",
|
|
70533
|
+
"MiniMax-M2.7-highspeed",
|
|
70534
|
+
"MiniMax-M3",
|
|
70535
|
+
"MiniMax-M3.1-Flash"
|
|
70536
|
+
]];
|
|
70537
|
+
/**
|
|
70472
70538
|
* The catalog ids the user's stored selection actually resolves to.
|
|
70473
70539
|
*
|
|
70474
70540
|
* A stored list that still equals the shipped default has never been edited, so
|
|
@@ -70483,7 +70549,7 @@ function resolveMinimaxCodeEnabledModelIds(stored, enabled = true) {
|
|
|
70483
70549
|
const catalogIds = minimaxCodeModelIds();
|
|
70484
70550
|
const shipped = new Set(catalogIds);
|
|
70485
70551
|
const resolved = stored.map((id) => resolveMinimaxCodeModelId(id));
|
|
70486
|
-
if (resolved.length === shipped.size && resolved.every((id) => shipped.has(id))) return catalogIds;
|
|
70552
|
+
if (PREVIOUS_DEFAULT_MODEL_IDS.some((previous) => previous.length === resolved.length && previous.every((id) => resolved.includes(id))) || resolved.length === shipped.size && resolved.every((id) => shipped.has(id))) return catalogIds;
|
|
70487
70553
|
return [...new Set(resolved)].filter((id) => shipped.has(id));
|
|
70488
70554
|
}
|
|
70489
70555
|
/**
|
|
@@ -88274,7 +88340,7 @@ const GLM_MODEL_CATALOG = [
|
|
|
88274
88340
|
supportsImages: true,
|
|
88275
88341
|
defaultContextWindow: 1e6,
|
|
88276
88342
|
defaultMaxTokens: GLM5_MAX_OUTPUT,
|
|
88277
|
-
description: "旗舰模型,1M
|
|
88343
|
+
description: "旗舰模型,1M 上下文,Coding Plan 端点支持图片输入,强制思考。"
|
|
88278
88344
|
},
|
|
88279
88345
|
{
|
|
88280
88346
|
id: "GLM-5.3-Flash",
|
|
@@ -88298,7 +88364,19 @@ const GLM_MODEL_CATALOG = [
|
|
|
88298
88364
|
supportsImages: true,
|
|
88299
88365
|
defaultContextWindow: 1e6,
|
|
88300
88366
|
defaultMaxTokens: GLM5_MAX_OUTPUT,
|
|
88301
|
-
description: "上一代旗舰,1M
|
|
88367
|
+
description: "上一代旗舰,1M 上下文,Coding Plan 端点支持图片输入(新套餐会路由到 GLM-5.3)。"
|
|
88368
|
+
},
|
|
88369
|
+
{
|
|
88370
|
+
id: "GLM-5.1",
|
|
88371
|
+
name: "GLM-5.1",
|
|
88372
|
+
regions: BOTH,
|
|
88373
|
+
reasoningEfforts: [],
|
|
88374
|
+
thinkingDisableable: false,
|
|
88375
|
+
wire: "anthropic",
|
|
88376
|
+
supportsImages: false,
|
|
88377
|
+
defaultContextWindow: 202752,
|
|
88378
|
+
defaultMaxTokens: GLM5_MAX_OUTPUT,
|
|
88379
|
+
description: "上一代 GLM 模型,200K 上下文,纯文本输入。"
|
|
88302
88380
|
},
|
|
88303
88381
|
{
|
|
88304
88382
|
id: "GLM-5-Turbo",
|
|
@@ -88318,7 +88396,7 @@ const GLM_MODEL_IDS = GLM_MODEL_CATALOG.map((model) => model.id);
|
|
|
88318
88396
|
/**
|
|
88319
88397
|
* 首次安装默认勾选的模型。
|
|
88320
88398
|
*
|
|
88321
|
-
*
|
|
88399
|
+
* 刻意是全部行:这张表已经是 Coding Plan 面的模型全集(官方 builtin 配置公布的那一份),
|
|
88322
88400
|
* 藏掉任何一行都等于不给用户开启它的办法——与其如此,不如让用户在设置页里自己取消。
|
|
88323
88401
|
*/
|
|
88324
88402
|
const DEFAULT_VISIBLE_MODEL_IDS$4 = [...GLM_MODEL_IDS];
|
|
@@ -96079,9 +96157,10 @@ async function loadStepQuota(quotaCredential, profile, options = {}) {
|
|
|
96079
96157
|
/**
|
|
96080
96158
|
* Step 5 系列的官方规格(2026-11-30 读取)。
|
|
96081
96159
|
*
|
|
96082
|
-
*
|
|
96083
|
-
* - Step 5:1M 上下文、
|
|
96084
|
-
* - Step 5 Preview:1M
|
|
96160
|
+
* 官方模型页(托管 API):
|
|
96161
|
+
* - Step 5 GA:1M 上下文、65536 输出上限、text/image/video 输入、low/medium/high/xhigh/max。
|
|
96162
|
+
* - Step 5 Preview:1M 上下文;托管 API 输出上限 65536 与 low/medium/high。HF 权重卡的
|
|
96163
|
+
* 最大输出 1M 是自托管口径,不得覆盖托管 API 的 65536。
|
|
96085
96164
|
* - 两者都未声明可关闭思考;`max_tokens` 的官方默认值是 INF。
|
|
96086
96165
|
*
|
|
96087
96166
|
* 这张表**不是**随包目录:它只给运行时目录补能力,是否出现仍由 `/models` 决定。
|
|
@@ -96091,7 +96170,7 @@ const KNOWN_STEP_MODEL_FACTS = {
|
|
|
96091
96170
|
"step-5": {
|
|
96092
96171
|
name: "Step 5",
|
|
96093
96172
|
defaultContextWindow: 1e6,
|
|
96094
|
-
maxOutputTokens:
|
|
96173
|
+
maxOutputTokens: 65536,
|
|
96095
96174
|
reasoningEfforts: [
|
|
96096
96175
|
"low",
|
|
96097
96176
|
"medium",
|
|
@@ -96107,7 +96186,7 @@ const KNOWN_STEP_MODEL_FACTS = {
|
|
|
96107
96186
|
"step-5-preview": {
|
|
96108
96187
|
name: "Step 5 Preview",
|
|
96109
96188
|
defaultContextWindow: 1e6,
|
|
96110
|
-
maxOutputTokens:
|
|
96189
|
+
maxOutputTokens: 65536,
|
|
96111
96190
|
reasoningEfforts: [
|
|
96112
96191
|
"low",
|
|
96113
96192
|
"medium",
|
|
@@ -104290,23 +104369,35 @@ const STATIC_GLOBAL_SEEDS = [
|
|
|
104290
104369
|
name: "Auto",
|
|
104291
104370
|
reasoning: false,
|
|
104292
104371
|
supportsEffort: false,
|
|
104293
|
-
supportsImages:
|
|
104372
|
+
supportsImages: false,
|
|
104373
|
+
contextWindow: 2e5
|
|
104294
104374
|
},
|
|
104295
104375
|
{
|
|
104296
104376
|
id: "Ultimate",
|
|
104297
104377
|
upstreamKey: "ultimate",
|
|
104298
104378
|
name: "Ultimate",
|
|
104299
|
-
reasoning:
|
|
104300
|
-
supportsEffort:
|
|
104301
|
-
supportsImages:
|
|
104379
|
+
reasoning: false,
|
|
104380
|
+
supportsEffort: false,
|
|
104381
|
+
supportsImages: false,
|
|
104382
|
+
contextWindow: 2e5
|
|
104302
104383
|
},
|
|
104303
104384
|
{
|
|
104304
104385
|
id: "Performance",
|
|
104305
104386
|
upstreamKey: "performance",
|
|
104306
104387
|
name: "Performance",
|
|
104307
|
-
reasoning:
|
|
104308
|
-
supportsEffort:
|
|
104309
|
-
supportsImages:
|
|
104388
|
+
reasoning: false,
|
|
104389
|
+
supportsEffort: false,
|
|
104390
|
+
supportsImages: false,
|
|
104391
|
+
contextWindow: 2e5
|
|
104392
|
+
},
|
|
104393
|
+
{
|
|
104394
|
+
id: "Fast",
|
|
104395
|
+
upstreamKey: "fast",
|
|
104396
|
+
name: "Fast",
|
|
104397
|
+
reasoning: false,
|
|
104398
|
+
supportsEffort: false,
|
|
104399
|
+
supportsImages: false,
|
|
104400
|
+
contextWindow: 2e5
|
|
104310
104401
|
},
|
|
104311
104402
|
{
|
|
104312
104403
|
id: "Efficient",
|
|
@@ -104314,7 +104405,7 @@ const STATIC_GLOBAL_SEEDS = [
|
|
|
104314
104405
|
name: "Efficient",
|
|
104315
104406
|
reasoning: false,
|
|
104316
104407
|
supportsEffort: false,
|
|
104317
|
-
supportsImages:
|
|
104408
|
+
supportsImages: false,
|
|
104318
104409
|
contextWindow: 2e5
|
|
104319
104410
|
},
|
|
104320
104411
|
{
|
|
@@ -104437,7 +104528,7 @@ const STATIC_CN_SEEDS = [
|
|
|
104437
104528
|
name: "Auto",
|
|
104438
104529
|
reasoning: false,
|
|
104439
104530
|
supportsEffort: false,
|
|
104440
|
-
supportsImages:
|
|
104531
|
+
supportsImages: false,
|
|
104441
104532
|
contextWindow: 2e5
|
|
104442
104533
|
},
|
|
104443
104534
|
{
|
|
@@ -106053,6 +106144,11 @@ async function loadQoderQuota(credentials, options = {}) {
|
|
|
106053
106144
|
*
|
|
106054
106145
|
* @module dsh-chatgpt-subscription/qoder-mapper
|
|
106055
106146
|
*/
|
|
106147
|
+
const QODER_V41_FLASH_REPLAY_NAMES = /* @__PURE__ */ new Set([
|
|
106148
|
+
"DeepSeek-Flash",
|
|
106149
|
+
"DeepSeek-V4-Flash",
|
|
106150
|
+
"dfmodel"
|
|
106151
|
+
]);
|
|
106056
106152
|
const qoderReasoningDialect = new ReasoningKeyDialect$1();
|
|
106057
106153
|
function isRecord$47(value) {
|
|
106058
106154
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -106266,12 +106362,12 @@ function createQoderReplayDiagnostics() {
|
|
|
106266
106362
|
};
|
|
106267
106363
|
}
|
|
106268
106364
|
/**
|
|
106269
|
-
* Qoder 的 V4.1 Flash
|
|
106365
|
+
* Qoder 的 V4.1 Flash 实时目录叫 `DeepSeek-Flash`、兜底表叫 `DeepSeek-V4-Flash`,上行 key 是 `dfmodel`。
|
|
106270
106366
|
* 自有回放标记按上行 key 生成,示范信封按可见 id 生成;两者必须视为同一模型,
|
|
106271
106367
|
* 但仍只放行这一对已知别名,换到 Qwen/GLM/Kimi 时继续拒绝。
|
|
106272
106368
|
*/
|
|
106273
106369
|
function qoderReplayModelMatches(responseModel, model) {
|
|
106274
|
-
return responseModel === model || responseModel === "
|
|
106370
|
+
return responseModel === model || typeof responseModel === "string" && QODER_V41_FLASH_REPLAY_NAMES.has(responseModel) && QODER_V41_FLASH_REPLAY_NAMES.has(model);
|
|
106275
106371
|
}
|
|
106276
106372
|
/**
|
|
106277
106373
|
* 把助手消息拆成上游要的三段,并决定**这条消息的推理能不能回放**。
|
|
@@ -123834,6 +123930,12 @@ const DEEPSEEK_V41_FLASH_DISCIPLINE_TEXT = [
|
|
|
123834
123930
|
"",
|
|
123835
123931
|
"Before a change that other code or data may rely on (deleting, renaming, overwriting, or altering a signature, schema, or configuration), use tools to find what depends on the target and confirm those dependents still work afterward. Read-only checks are cheap here, so do not ration them. Runtime notices, guards, and failing tests arrive only after an action has happened; they are not a reason to skip a check before it.",
|
|
123836
123932
|
"",
|
|
123933
|
+
"Tool use is free or cheap in this session, and the budget is ample. Do not conserve reads, searches, tool calls, or verification to protect a budget; use as much support as the task needs, including parallel reads and repeated checks.",
|
|
123934
|
+
"",
|
|
123935
|
+
"Before a state-changing action—delete, rename, publish, submit, overwrite, or change a shared contract—name the immediate state it changes and one downstream effect it can trigger. If that effect is not written in the rules or visible in a tool result, run one minimal check instead of assuming it away.",
|
|
123936
|
+
"",
|
|
123937
|
+
"When you notice a risk you cannot handle now, put it in the task list with the condition that makes it urgent; do not leave it only in prose. A rule restated from memory is not evidence: verify an ambiguous limit with one minimal tool call.",
|
|
123938
|
+
"",
|
|
123837
123939
|
"When inspecting multiple files, searching symbols, or reading large logs, prefer one programmatic batch (`code_run` / `run_code`) or parallel read-only calls that return concise structured evidence rather than raw log dumps.",
|
|
123838
123940
|
"",
|
|
123839
123941
|
"Act as soon as you have a clear plan or verified evidence instead of re-deriving settled facts. If two consecutive attempts in the same direction add no new evidence or hit the same error, switch to minimal reproduction or inspect the underlying definition. Follow `[V4.1-Flash State Anchor]` notices to stay on the primary goal, and deliver once acceptance criteria are verified.",
|
|
@@ -124459,6 +124561,7 @@ function createSessionState$1() {
|
|
|
124459
124561
|
errorAnchorPending: false,
|
|
124460
124562
|
activeFiles: [],
|
|
124461
124563
|
taskLine: "",
|
|
124564
|
+
taskLineAgeSteps: 0,
|
|
124462
124565
|
compactionAnchorPending: false,
|
|
124463
124566
|
lastEffort: void 0,
|
|
124464
124567
|
lastEffortWarnedTransition: void 0,
|
|
@@ -124481,6 +124584,12 @@ function summarizeTodoItems(rawTodos) {
|
|
|
124481
124584
|
if (pending !== void 0 && label(pending).length > 0) parts.push(`NEXT: ${label(pending)}`);
|
|
124482
124585
|
return parts.join(" | ");
|
|
124483
124586
|
}
|
|
124587
|
+
/** 紧凑任务行里是否仍有未完成项。 */
|
|
124588
|
+
function hasOpenTaskLine(taskLine) {
|
|
124589
|
+
const match = /^(\d+)\/(\d+)\s+done/.exec(taskLine);
|
|
124590
|
+
if (match === null) return taskLine.length > 0;
|
|
124591
|
+
return Number(match[1]) < Number(match[2]);
|
|
124592
|
+
}
|
|
124484
124593
|
/** 把 `todo_write` 参数归纳成紧凑进度行:完成数/总数、进行中与下一项。 */
|
|
124485
124594
|
function summarizeTodos(args) {
|
|
124486
124595
|
if (!isRecord$29(args) || !Array.isArray(args["todos"])) return void 0;
|
|
@@ -124618,7 +124727,7 @@ function renderStateAnchorText(input) {
|
|
|
124618
124727
|
let remaining = MAX_ANCHOR_CHARS - fixed.reduce((sum, line) => sum + line.length + 1, 0);
|
|
124619
124728
|
let tasksLine;
|
|
124620
124729
|
if (input.tasks !== void 0 && input.tasks.length > 0) {
|
|
124621
|
-
const full = `TASKS: ${input.tasks}`;
|
|
124730
|
+
const full = `TASKS: ${input.taskStaleSteps !== void 0 && input.taskStaleSteps >= 8 && hasOpenTaskLine(input.tasks) ? `STALE ${String(input.taskStaleSteps)} steps; handle/update | ` : ""}${input.tasks}`;
|
|
124622
124731
|
if (full.length + 1 <= remaining) tasksLine = full;
|
|
124623
124732
|
else if (remaining - 1 >= 15) tasksLine = full.slice(0, remaining - 4).trimEnd() + "...";
|
|
124624
124733
|
if (tasksLine !== void 0) remaining -= tasksLine.length + 1;
|
|
@@ -124753,8 +124862,11 @@ function installDeepSeekV41FlashStateAnchor(ctx, options = {}) {
|
|
|
124753
124862
|
if (events !== void 0) recoverGoalFromEvents(state.goals, events, currentTurn);
|
|
124754
124863
|
}
|
|
124755
124864
|
const projectedTasks = readSessionTaskLine(host, payload?.agent);
|
|
124756
|
-
if (projectedTasks !== void 0
|
|
124757
|
-
|
|
124865
|
+
if (projectedTasks !== void 0 && projectedTasks !== state.taskLine) {
|
|
124866
|
+
state.taskLine = projectedTasks;
|
|
124867
|
+
state.taskLineAgeSteps = 0;
|
|
124868
|
+
} else if (hasOpenTaskLine(state.taskLine)) state.taskLineAgeSteps += 1;
|
|
124869
|
+
const hasOpenTasks = hasOpenTaskLine(state.taskLine);
|
|
124758
124870
|
let trigger;
|
|
124759
124871
|
let nextWatermarkIndex = state.crossedWatermarkIndex;
|
|
124760
124872
|
for (let i = state.crossedWatermarkIndex + 1; i < watermarks.length; i += 1) if (approxTokens >= watermarks[i]) nextWatermarkIndex = i;
|
|
@@ -124782,6 +124894,7 @@ function installDeepSeekV41FlashStateAnchor(ctx, options = {}) {
|
|
|
124782
124894
|
goal,
|
|
124783
124895
|
earlierGoal: earlierGoals(state.goals),
|
|
124784
124896
|
tasks: state.taskLine,
|
|
124897
|
+
taskStaleSteps: hasOpenTasks ? state.taskLineAgeSteps : 0,
|
|
124785
124898
|
activeFiles: state.activeFiles,
|
|
124786
124899
|
consecutiveErrors: state.consecutiveToolErrors,
|
|
124787
124900
|
lastErrorTool: state.lastErrorTool
|
|
@@ -124802,7 +124915,10 @@ function installDeepSeekV41FlashStateAnchor(ctx, options = {}) {
|
|
|
124802
124915
|
const failed = result?.isError === true || isRecord$29(decision) && decision["kind"] === "block";
|
|
124803
124916
|
if (!failed && exec?.name === "todo_write") {
|
|
124804
124917
|
const tasks = summarizeTodos(exec.arguments);
|
|
124805
|
-
if (tasks !== void 0)
|
|
124918
|
+
if (tasks !== void 0) {
|
|
124919
|
+
if (tasks !== state.taskLine) state.taskLineAgeSteps = 0;
|
|
124920
|
+
state.taskLine = tasks;
|
|
124921
|
+
}
|
|
124806
124922
|
}
|
|
124807
124923
|
if (exec?.parent !== void 0) return decision;
|
|
124808
124924
|
const targetFile = extractTargetFile$1(exec?.arguments);
|
|
@@ -126037,7 +126153,8 @@ function installOpenModelObservationGuard(ctx, options = {}) {
|
|
|
126037
126153
|
* 顺应三大开源模型物理阵营的共同约束:
|
|
126038
126154
|
* - **阵营 A(Kimi K3/K3.1 KDA+Gated DSA、Qwen GDN+QSA、GLM-5.3-Flash、Ling 7:1 KDA)**:
|
|
126039
126155
|
* 固定递推状态随超长对话发生覆写/混叠,NoPE + 稀疏索引强依赖显式文件路径与符号名;
|
|
126040
|
-
* - **阵营 B(GLM-5.2/5.3 IndexShare、MiniMax M3/M3.1 MSA
|
|
126156
|
+
* - **阵营 B(GLM-5.2/5.3 IndexShare、MiniMax M3/M3.1 MSA、MiniMax M4 MSA2、
|
|
126157
|
+
* DeepSeek V4 CSA+HCA、Hy4)**:
|
|
126041
126158
|
* 单步精确历史注意力预算约 ~2,048 tokens,高水位易失焦;
|
|
126042
126159
|
* - **阵营 C(Step-3.5/3.7 SWA W=512、Step-5 深窄网、MiMo-V2.6 SWA W=128)**:
|
|
126043
126160
|
* 局部滑窗极窄,超过 128–512 tokens 外的目标约束难以进入局部层。
|
|
@@ -126311,7 +126428,7 @@ function installOpenModelStateAnchor(ctx, options = {}) {
|
|
|
126311
126428
|
//#region src/host/runtime/open-models/index.ts
|
|
126312
126429
|
/**
|
|
126313
126430
|
* 开源模型运行时专项优化总成(Kimi K3/K3.1、GLM-5.x、DeepSeek-V4 Pro/Flash、
|
|
126314
|
-
* MiniMax M3/M3.1/M2.7、Qwen 3.5–4、Step 3.5–5、MiMo V2.6、Ling 3.1、Hunyuan Hy4、
|
|
126431
|
+
* MiniMax M4/M3/M3.1/M2.7、Qwen 3.5–4、Step 3.5–5、MiMo V2.6、Ling 3.1、Hunyuan Hy4、
|
|
126315
126432
|
* LongCat 2.0 及 Ollama 本地推理模型)。
|
|
126316
126433
|
*
|
|
126317
126434
|
* 采用「共享物理架构积木 + 模型手术刀级专属补丁」两层设计:
|
|
@@ -126322,8 +126439,7 @@ function installOpenModelStateAnchor(ctx, options = {}) {
|
|
|
126322
126439
|
* 3. **入库前观测头 + Kimi 只读空转提醒 + ESC ANSI 清洗 + 非受控失控提醒**(`observation-guard.ts`);
|
|
126323
126440
|
* 4. **按模型精准门控的无损双信号推理坍塌守卫**(复用 `reasoning-collapse-guard`)。
|
|
126324
126441
|
*
|
|
126325
|
-
* 严格排除 DeepSeek V4.1 Flash
|
|
126326
|
-
* (Claude / GPT-5 / GPT-6 / Gemini / Grok)。
|
|
126442
|
+
* 严格排除 DeepSeek V4.1 Flash(由专属模块负责)以及所有未登记或动态未知模型。
|
|
126327
126443
|
*
|
|
126328
126444
|
* @module @eddyskywalker/dsh-chatgpt-subscription/host/open-models
|
|
126329
126445
|
*/
|
|
@@ -128580,15 +128696,15 @@ const FALLBACK_MODELS$1 = [
|
|
|
128580
128696
|
{
|
|
128581
128697
|
id: "default-model",
|
|
128582
128698
|
name: "Auto",
|
|
128583
|
-
contextWindow:
|
|
128584
|
-
maxContextWindow:
|
|
128585
|
-
maxTokens:
|
|
128699
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
128700
|
+
maxContextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
128701
|
+
maxTokens: FALLBACK_MAX_TOKENS,
|
|
128586
128702
|
regions: ["intl"],
|
|
128587
|
-
supportsImage:
|
|
128703
|
+
supportsImage: false,
|
|
128588
128704
|
reasoningEfforts: [],
|
|
128589
128705
|
defaultReasoningEffort: null,
|
|
128590
128706
|
canDisableThinking: false,
|
|
128591
|
-
description: "
|
|
128707
|
+
description: "动态路由,具体后端由订阅决定"
|
|
128592
128708
|
},
|
|
128593
128709
|
{
|
|
128594
128710
|
id: "fast-model",
|
|
@@ -129318,24 +129434,24 @@ const FALLBACK_MODELS$1 = [
|
|
|
129318
129434
|
},
|
|
129319
129435
|
{
|
|
129320
129436
|
id: "hy4-preview-x",
|
|
129321
|
-
name: "
|
|
129322
|
-
contextWindow:
|
|
129323
|
-
maxContextWindow:
|
|
129324
|
-
maxTokens:
|
|
129437
|
+
name: "hy4-preview-x",
|
|
129438
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129439
|
+
maxContextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129440
|
+
maxTokens: FALLBACK_MAX_TOKENS,
|
|
129325
129441
|
regions: ["cn"],
|
|
129326
129442
|
credits: { cn: "0.29" },
|
|
129327
|
-
supportsImage:
|
|
129328
|
-
reasoningEfforts: [
|
|
129329
|
-
defaultReasoningEffort:
|
|
129443
|
+
supportsImage: false,
|
|
129444
|
+
reasoningEfforts: [],
|
|
129445
|
+
defaultReasoningEffort: null,
|
|
129330
129446
|
canDisableThinking: false,
|
|
129331
|
-
description: "
|
|
129447
|
+
description: ""
|
|
129332
129448
|
},
|
|
129333
129449
|
{
|
|
129334
129450
|
id: "hunyuan-chat",
|
|
129335
|
-
name: "
|
|
129336
|
-
contextWindow:
|
|
129337
|
-
maxContextWindow:
|
|
129338
|
-
maxTokens:
|
|
129451
|
+
name: "hunyuan-chat",
|
|
129452
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129453
|
+
maxContextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129454
|
+
maxTokens: FALLBACK_MAX_TOKENS,
|
|
129339
129455
|
regions: ["cn"],
|
|
129340
129456
|
credits: { cn: "0.10" },
|
|
129341
129457
|
supportsImage: false,
|
|
@@ -129402,45 +129518,45 @@ const FALLBACK_MODELS$1 = [
|
|
|
129402
129518
|
},
|
|
129403
129519
|
{
|
|
129404
129520
|
id: "hy4std",
|
|
129405
|
-
name: "
|
|
129406
|
-
contextWindow:
|
|
129407
|
-
maxContextWindow:
|
|
129408
|
-
maxTokens:
|
|
129521
|
+
name: "hy4std",
|
|
129522
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129523
|
+
maxContextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129524
|
+
maxTokens: FALLBACK_MAX_TOKENS,
|
|
129409
129525
|
regions: ["cn"],
|
|
129410
129526
|
credits: { cn: "0.29" },
|
|
129411
|
-
supportsImage:
|
|
129412
|
-
reasoningEfforts: [
|
|
129413
|
-
defaultReasoningEffort:
|
|
129527
|
+
supportsImage: false,
|
|
129528
|
+
reasoningEfforts: [],
|
|
129529
|
+
defaultReasoningEffort: null,
|
|
129414
129530
|
canDisableThinking: false,
|
|
129415
|
-
description: "
|
|
129531
|
+
description: ""
|
|
129416
129532
|
},
|
|
129417
129533
|
{
|
|
129418
129534
|
id: "hy4flash-free",
|
|
129419
|
-
name: "
|
|
129420
|
-
contextWindow:
|
|
129421
|
-
maxContextWindow:
|
|
129422
|
-
maxTokens:
|
|
129535
|
+
name: "hy4flash-free",
|
|
129536
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129537
|
+
maxContextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129538
|
+
maxTokens: FALLBACK_MAX_TOKENS,
|
|
129423
129539
|
regions: ["cn"],
|
|
129424
129540
|
credits: { cn: "0.00" },
|
|
129425
|
-
supportsImage:
|
|
129426
|
-
reasoningEfforts: [
|
|
129427
|
-
defaultReasoningEffort:
|
|
129541
|
+
supportsImage: false,
|
|
129542
|
+
reasoningEfforts: [],
|
|
129543
|
+
defaultReasoningEffort: null,
|
|
129428
129544
|
canDisableThinking: false,
|
|
129429
|
-
description: "
|
|
129545
|
+
description: ""
|
|
129430
129546
|
},
|
|
129431
129547
|
{
|
|
129432
129548
|
id: "hy4flash",
|
|
129433
|
-
name: "
|
|
129434
|
-
contextWindow:
|
|
129435
|
-
maxContextWindow:
|
|
129436
|
-
maxTokens:
|
|
129549
|
+
name: "hy4flash",
|
|
129550
|
+
contextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129551
|
+
maxContextWindow: DEFAULT_CONTEXT_WINDOW$1,
|
|
129552
|
+
maxTokens: FALLBACK_MAX_TOKENS,
|
|
129437
129553
|
regions: ["cn"],
|
|
129438
129554
|
credits: { cn: "0.03" },
|
|
129439
|
-
supportsImage:
|
|
129440
|
-
reasoningEfforts: [
|
|
129441
|
-
defaultReasoningEffort:
|
|
129555
|
+
supportsImage: false,
|
|
129556
|
+
reasoningEfforts: [],
|
|
129557
|
+
defaultReasoningEffort: null,
|
|
129442
129558
|
canDisableThinking: false,
|
|
129443
|
-
description: "
|
|
129559
|
+
description: ""
|
|
129444
129560
|
}
|
|
129445
129561
|
];
|
|
129446
129562
|
/**
|