dsh-opendesign-corouter 0.1.18 → 0.1.19

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/README.md CHANGED
@@ -63,7 +63,7 @@ dsh plugin --profile web add /absolute/path/to/dsh-opendesign-corouter-0.1.15.tg
63
63
 
64
64
  推理协议可选 **OpenAI Chat Completions、OpenAI Responses、Anthropic Messages**。模型发现始终使用当前网关的 OpenAI 兼容 `/models` 接口,不随推理协议切换。
65
65
 
66
- 思考档位按精确型号的厂商文档维护,并按当前协议筛选。34 款提供离散档位,4 款为固定思考或开关/预算控制,Muse Wonder 的精确别名尚待确认。旧配置中的无效默认档位可在参数设置中改为“继承默认”。[逐模型来源与网关验证状态](docs/reasoning-evidence.md)
66
+ 思考档位按精确型号的厂商文档维护,并按当前协议筛选。34 款提供离散档位,4 款为固定思考或开关/预算控制,Muse Wonder 的精确别名尚待确认。34 款都带目录默认档位:未选择档位时插件按该值显式发送,模型选择器因此不提供“Default”项。默认取厂商声明;GPT-6 Astra(low)与 Muse Spark 1.3(high)的厂商未声明默认,取已发布实现记录的路由默认。旧配置中的无效默认档位可在参数设置中改为模型默认。[逐模型来源与网关验证状态](docs/reasoning-evidence.md)
67
67
 
68
68
  > **分组不等于计费隔离。** 赠送额度耗尽后是否转扣套餐余额或钱包,由服务端和账号权益决定。选择“套餐赠送”不能保证绝不消耗钱包余额。
69
69
 
package/lib/catalog.d.ts CHANGED
@@ -45,10 +45,22 @@ export interface CatalogModel {
45
45
  inputModalities?: readonly ('text' | 'image')[];
46
46
  /** Undefined means unconfirmed; an empty array means no discrete effort selector. */
47
47
  reasoningEfforts?: readonly string[];
48
+ /**
49
+ * Vendor-documented default effort, always a member of `reasoningEfforts`.
50
+ * The adapter reports it as the route default, so a request that names no
51
+ * effort sends this documented value instead of leaving the choice to an
52
+ * untrusted relay. Omission means the vendor documents no default: nothing
53
+ * is guessed and the provider's own default stands.
54
+ */
55
+ defaultEffort?: string;
48
56
  }
49
57
  /**
50
58
  * `plan` 为官网 12 款 Core / Design Plan 模型,加预检确认覆盖的 M3.1 Flash;
51
59
  * 其余 26 项归 `paid`(Plan / 钱包付费通道)。
60
+ *
61
+ * `defaultEffort` 只写有出处的默认档位:厂商文档声明的默认(docs/reasoning-evidence.md 矩阵),
62
+ * 或在厂商未声明时由已发布实现记录的路由默认(GPT-6 Astra=low、Muse Spark 1.3=high)。
63
+ * muse-wonder 的档位集合本身未知,保持缺省:请求不发送档位,由上游决定。
52
64
  */
53
65
  export declare const MODELS: readonly CatalogModel[];
54
66
  export declare function modelsFor(group: 'plan' | 'paid'): readonly CatalogModel[];
package/lib/client.js CHANGED
@@ -20234,9 +20234,15 @@ function parseStatusModel(value) {
20234
20234
  ...value.inputModalities === void 0 ? {} : { inputModalities: parseModalities(value.inputModalities) },
20235
20235
  ...value.contextWindow === void 0 ? {} : { contextWindow: positiveInteger(value.contextWindow, "\u4E0A\u4E0B\u6587\u9884\u7B97", 1e8) },
20236
20236
  ...value.maxOutputTokens === void 0 ? {} : { maxOutputTokens: positiveInteger(value.maxOutputTokens, "\u6700\u5927\u8F93\u51FA", 1e7) },
20237
- ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) }
20237
+ ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) },
20238
+ ...value.defaultEffort === void 0 ? {} : { defaultEffort: parseEffort(value.defaultEffort) }
20238
20239
  };
20239
20240
  }
20241
+ function parseEffort(value) {
20242
+ const effort = text(value, "\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D", 32);
20243
+ if (!/^[A-Za-z][A-Za-z0-9_-]*$/u.test(effort)) throw new Error("\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D\u683C\u5F0F\u65E0\u6548");
20244
+ return effort;
20245
+ }
20240
20246
  function parseStatusConfig(value) {
20241
20247
  if (!record2(value)) throw new Error("\u914D\u7F6E\u89C6\u56FE\u5FC5\u987B\u662F\u5BF9\u8C61");
20242
20248
  if (typeof value.apiKeyEnv !== "string" || value.apiKeyEnv.length > MAX_ENV_REF) {
@@ -21604,6 +21610,8 @@ function EffortField({ id, model, value, disabled, pending, disabledReason, onSa
21604
21610
  const [saving, setSaving] = React2.useState(false);
21605
21611
  const [error62, setError] = React2.useState(void 0);
21606
21612
  const listed = model.reasoningEfforts ?? [];
21613
+ const modelDefault = model.defaultEffort;
21614
+ const defaultLabel = modelDefault === void 0 ? "\u4E0D\u6307\u5B9A\u6863\u4F4D" : `\u6A21\u578B\u9ED8\u8BA4\uFF08${modelDefault}\uFF09`;
21607
21615
  const invalidDefault = value !== void 0 && !listed.includes(value);
21608
21616
  const invalidDraft = editing && draft !== "" && !listed.includes(draft);
21609
21617
  const options = [...listed];
@@ -21614,7 +21622,7 @@ function EffortField({ id, model, value, disabled, pending, disabledReason, onSa
21614
21622
  const busy = saving || pending;
21615
21623
  const reason = busy ? "\u6B63\u5728\u4FDD\u5B58\u6A21\u578B\u8BBE\u7F6E\uFF0C\u5B8C\u6210\u540E\u53EF\u7EE7\u7EED\u7F16\u8F91\u3002" : disabled ? `${disabledReason ?? "\u914D\u7F6E\u4E0D\u53EF\u5199"}\uFF0C\u65E0\u6CD5\u7F16\u8F91\u3002` : void 0;
21616
21624
  const externallyChanged = editing && value !== baseValue && !(saving && value === draft);
21617
- const hint = reason ?? (editing ? externallyChanged ? "\u914D\u7F6E\u5DF2\u4ECE\u5176\u4ED6\u4F4D\u7F6E\u66F4\u65B0\uFF1B\u53D6\u6D88\u53EF\u67E5\u770B\u6700\u65B0\u503C\uFF0C\u4FDD\u5B58\u5C06\u4F7F\u7528\u5F53\u524D\u8349\u7A3F\u3002" : invalidDraft ? "\u5F53\u524D\u8349\u7A3F\u4E0D\u9002\u7528\u4E8E\u6B64\u6A21\u578B\u6216\u534F\u8BAE\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u6863\u4F4D\u6216\u7EE7\u627F\u9ED8\u8BA4\u3002" : "\u9009\u62E9\u201C\u7EE7\u627F\u9ED8\u8BA4\u201D\u4F1A\u5220\u9664\u5DF2\u4FDD\u5B58\u6863\u4F4D\uFF1B\u4FDD\u5B58\u524D\u4EC5\u4FEE\u6539\u672C\u5730\u8349\u7A3F\u3002" : invalidDefault ? "\u5DF2\u4FDD\u5B58\u7684\u6863\u4F4D\u4E0D\u9002\u7528\u4E8E\u5F53\u524D\u6A21\u578B\u6216\u534F\u8BAE\uFF0C\u53EF\u7F16\u8F91\u540E\u9009\u62E9\u5176\u4ED6\u6863\u4F4D\u6216\u7EE7\u627F\u9ED8\u8BA4\u3002" : unavailable ? "\u5F53\u524D\u6A21\u578B\u6216\u534F\u8BAE\u672A\u63D0\u4F9B\u53EF\u8C03\u6574\u7684\u601D\u8003\u6863\u4F4D\u3002" : "\u672A\u8BBE\u7F6E\u65F6\u4F7F\u7528\u670D\u52A1\u7AEF\u9ED8\u8BA4\u6863\u4F4D\u3002");
21625
+ const hint = reason ?? (editing ? externallyChanged ? "\u914D\u7F6E\u5DF2\u4ECE\u5176\u4ED6\u4F4D\u7F6E\u66F4\u65B0\uFF1B\u53D6\u6D88\u53EF\u67E5\u770B\u6700\u65B0\u503C\uFF0C\u4FDD\u5B58\u5C06\u4F7F\u7528\u5F53\u524D\u8349\u7A3F\u3002" : invalidDraft ? "\u5F53\u524D\u8349\u7A3F\u4E0D\u9002\u7528\u4E8E\u6B64\u6A21\u578B\u6216\u534F\u8BAE\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u6863\u4F4D\u6216\u6539\u7528\u6A21\u578B\u9ED8\u8BA4\u3002" : `\u9009\u62E9\u201C${defaultLabel}\u201D\u4F1A\u5220\u9664\u5DF2\u4FDD\u5B58\u6863\u4F4D\uFF1B\u4FDD\u5B58\u524D\u4EC5\u4FEE\u6539\u672C\u5730\u8349\u7A3F\u3002` : invalidDefault ? "\u5DF2\u4FDD\u5B58\u7684\u6863\u4F4D\u4E0D\u9002\u7528\u4E8E\u5F53\u524D\u6A21\u578B\u6216\u534F\u8BAE\uFF0C\u53EF\u7F16\u8F91\u540E\u9009\u62E9\u5176\u4ED6\u6863\u4F4D\u6216\u6539\u7528\u6A21\u578B\u9ED8\u8BA4\u3002" : unavailable ? "\u5F53\u524D\u6A21\u578B\u6216\u534F\u8BAE\u672A\u63D0\u4F9B\u53EF\u8C03\u6574\u7684\u601D\u8003\u6863\u4F4D\u3002" : modelDefault === void 0 ? "\u8BE5\u6A21\u578B\u672A\u58F0\u660E\u9ED8\u8BA4\u6863\u4F4D\uFF0C\u672A\u8BBE\u7F6E\u65F6\u4E0D\u53D1\u9001\u6863\u4F4D\u8BBE\u7F6E\u3002" : `\u672A\u8BBE\u7F6E\u65F6\u6309\u6A21\u578B\u9ED8\u8BA4\u6863\u4F4D\u300C${modelDefault}\u300D\u53D1\u9001\uFF0C\u4E0D\u7559\u7ED9\u4E0A\u6E38\u51B3\u5B9A\u3002`);
21618
21626
  const cancel = () => {
21619
21627
  if (saving) return;
21620
21628
  setEditing(false);
@@ -21669,7 +21677,7 @@ function EffortField({ id, model, value, disabled, pending, disabledReason, onSa
21669
21677
  setError(void 0);
21670
21678
  }
21671
21679
  }, [
21672
- h2("option", { key: "", value: "" }, "\u7EE7\u627F\u9ED8\u8BA4"),
21680
+ h2("option", { key: "", value: "" }, defaultLabel),
21673
21681
  ...options.map((effort) => h2("option", { key: effort, value: effort, disabled: !listed.includes(effort) }, listed.includes(effort) ? effort : `${effort}\uFF08\u5F53\u524D\u4E0D\u53EF\u7528\uFF09`))
21674
21682
  ]),
21675
21683
  h2(
@@ -21701,7 +21709,7 @@ function EffortField({ id, model, value, disabled, pending, disabledReason, onSa
21701
21709
  }
21702
21710
  }, "\u7F16\u8F91")
21703
21711
  ),
21704
- h2("p", { className: "odc-effort-value" }, invalidDefault ? `${value}\uFF08\u5F53\u524D\u4E0D\u53EF\u7528\uFF09` : value ?? "\u7EE7\u627F\u9ED8\u8BA4")
21712
+ h2("p", { className: "odc-effort-value" }, invalidDefault ? `${value}\uFF08\u5F53\u524D\u4E0D\u53EF\u7528\uFF09` : value ?? defaultLabel)
21705
21713
  ),
21706
21714
  h2("small", {
21707
21715
  className: "odc-hint",
@@ -21805,7 +21813,7 @@ function ModelRow({ model, settings, authoritative, writable, pending, disabledR
21805
21813
  `\u5F53\u524D\u603B\u7A97\u53E3 ${formatTokens(effectiveWindow)}\uFF08\u542B\u8F93\u51FA\u9884\u7559\uFF09`,
21806
21814
  `\u8F93\u51FA\u80FD\u529B\u53C2\u8003 ${formatTokens(model.maxOutputTokens)}`,
21807
21815
  `\u81EA\u52A8\u8F93\u51FA\u9884\u7559 ${formatTokens(autoReserve)}`,
21808
- ...model.reasoningEfforts === void 0 || model.reasoningEfforts.length === 0 ? [] : [`\u601D\u8003\u6863\u4F4D ${model.reasoningEfforts.join(" / ")}`]
21816
+ ...model.reasoningEfforts === void 0 || model.reasoningEfforts.length === 0 ? [] : [`\u601D\u8003\u6863\u4F4D ${model.reasoningEfforts.join(" / ")}${model.defaultEffort === void 0 ? "" : `\uFF08\u6A21\u578B\u9ED8\u8BA4 ${model.defaultEffort}\uFF09`}`]
21809
21817
  ].join(" \xB7 ");
21810
21818
  return h2(
21811
21819
  "li",
@@ -21874,7 +21882,7 @@ function ModelRow({ model, settings, authoritative, writable, pending, disabledR
21874
21882
  h2("p", { className: "odc-model-meta" }, facts),
21875
21883
  model.id === "claude-opus-5.5" && model.contextWindow === 1e6 ? h2("p", { className: "odc-hint" }, "\u4E0A\u4E0B\u6587 1,000,000 \u4E3A\u5382\u5546\u53C2\u8003\uFF0C\u7F51\u5173\u5B9E\u9645\u5BB9\u91CF\u672A\u9A8C\u8BC1\uFF1B\u6863\u4F4D\u603B\u7A97\u53E3\u4E0D\u4F1A\u8D85\u8FC7\u8BE5\u53C2\u8003\u5BB9\u91CF\u3002") : null,
21876
21884
  model.id === "muse-wonder" && model.contextWindow === 1048576 ? h2("p", { className: "odc-hint" }, "\u4E0A\u4E0B\u6587 1,048,576 \u4E3A\u6682\u5B9A\u53C2\u8003\uFF0C\u7F51\u5173\u578B\u53F7\u6620\u5C04\u53CA\u5B9E\u9645\u5BB9\u91CF\u672A\u9A8C\u8BC1\uFF1B\u6863\u4F4D\u603B\u7A97\u53E3\u4E0D\u4F1A\u8D85\u8FC7\u8BE5\u53C2\u8003\u5BB9\u91CF\u3002") : null,
21877
- samplingRestricted && model.id === "claude-opus-4.8" ? h2("p", { className: "odc-hint" }, "\u5382\u5546\u9ED8\u8BA4\u5173\u95ED\u601D\u8003\uFF0C\u9009\u62E9\u601D\u8003\u6DF1\u5EA6\u53EF\u542F\u7528\u81EA\u9002\u5E94\u601D\u8003\uFF1B\u7F51\u5173\u5B9E\u9645\u884C\u4E3A\u53EF\u80FD\u4E0D\u540C\u3002") : null,
21885
+ samplingRestricted && model.id === "claude-opus-4.8" ? h2("p", { className: "odc-hint" }, "\u672A\u9009\u62E9\u6863\u4F4D\u65F6\u6309\u5382\u5546\u9ED8\u8BA4\u6863\u4F4D high \u53D1\u9001\u81EA\u9002\u5E94\u601D\u8003\uFF1B\u5382\u5546\u5728\u5B8C\u5168\u7701\u7565\u601D\u8003\u914D\u7F6E\u65F6\u4E0D\u542F\u7528\u3002") : null,
21878
21886
  samplingRestricted && model.maxOutputTokens === void 0 && settings.maxTokens === void 0 ? h2("p", { className: "odc-hint" }, "Messages \u9ED8\u8BA4\u6700\u5927\u8F93\u51FA 4096\uFF1B\u8F83\u9AD8\u601D\u8003\u6DF1\u5EA6\u53EF\u80FD\u9700\u8981\u589E\u5927\u3002") : null,
21879
21887
  price === void 0 ? null : h2(PriceDetails, { tiers: price.tiers }),
21880
21888
  h2("p", { className: "odc-hint" }, "\u6570\u503C\u79BB\u5F00\u8F93\u5165\u6846\u540E\u4FDD\u5B58\uFF0C\u7559\u7A7A\u7EE7\u627F\u9ED8\u8BA4\uFF1B\u4E0A\u4E0B\u6587\u7A97\u53E3\u4E3A\u4E09\u6863\u4E92\u65A5\u9009\u62E9\u3002"),
@@ -3,7 +3,7 @@ export interface DeviceTokens {
3
3
  runtimeKey: string;
4
4
  }
5
5
  export declare const DEVICE_AUTH_ENDPOINT = "https://amr-api.open-design.ai/api/v1/cli/device-authorizations";
6
- export declare const DEVICE_AUTH_PLUGIN_VERSION = "0.1.18";
6
+ export declare const DEVICE_AUTH_PLUGIN_VERSION = "0.1.19";
7
7
  export declare const DEVICE_REQUEST_TIMEOUT_MS = 20000;
8
8
  /** One bounded launch step of the temporary activation window. */
9
9
  export declare const DEVICE_OPEN_TIMEOUT_MS = 30000;
@@ -274,9 +274,15 @@ function parseStatusModel(value) {
274
274
  ...value.inputModalities === void 0 ? {} : { inputModalities: parseModalities(value.inputModalities) },
275
275
  ...value.contextWindow === void 0 ? {} : { contextWindow: positiveInteger(value.contextWindow, "\u4E0A\u4E0B\u6587\u9884\u7B97", 1e8) },
276
276
  ...value.maxOutputTokens === void 0 ? {} : { maxOutputTokens: positiveInteger(value.maxOutputTokens, "\u6700\u5927\u8F93\u51FA", 1e7) },
277
- ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) }
277
+ ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) },
278
+ ...value.defaultEffort === void 0 ? {} : { defaultEffort: parseEffort(value.defaultEffort) }
278
279
  };
279
280
  }
281
+ function parseEffort(value) {
282
+ const effort = text(value, "\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D", 32);
283
+ if (!/^[A-Za-z][A-Za-z0-9_-]*$/u.test(effort)) throw new Error("\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D\u683C\u5F0F\u65E0\u6548");
284
+ return effort;
285
+ }
280
286
  function parseStatusConfig(value) {
281
287
  if (!record(value)) throw new Error("\u914D\u7F6E\u89C6\u56FE\u5FC5\u987B\u662F\u5BF9\u8C61");
282
288
  if (typeof value.apiKeyEnv !== "string" || value.apiKeyEnv.length > MAX_ENV_REF) {
@@ -274,9 +274,15 @@ function parseStatusModel(value) {
274
274
  ...value.inputModalities === void 0 ? {} : { inputModalities: parseModalities(value.inputModalities) },
275
275
  ...value.contextWindow === void 0 ? {} : { contextWindow: positiveInteger(value.contextWindow, "\u4E0A\u4E0B\u6587\u9884\u7B97", 1e8) },
276
276
  ...value.maxOutputTokens === void 0 ? {} : { maxOutputTokens: positiveInteger(value.maxOutputTokens, "\u6700\u5927\u8F93\u51FA", 1e7) },
277
- ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) }
277
+ ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) },
278
+ ...value.defaultEffort === void 0 ? {} : { defaultEffort: parseEffort(value.defaultEffort) }
278
279
  };
279
280
  }
281
+ function parseEffort(value) {
282
+ const effort = text(value, "\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D", 32);
283
+ if (!/^[A-Za-z][A-Za-z0-9_-]*$/u.test(effort)) throw new Error("\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D\u683C\u5F0F\u65E0\u6548");
284
+ return effort;
285
+ }
280
286
  function parseStatusConfig(value) {
281
287
  if (!record(value)) throw new Error("\u914D\u7F6E\u89C6\u56FE\u5FC5\u987B\u662F\u5BF9\u8C61");
282
288
  if (typeof value.apiKeyEnv !== "string" || value.apiKeyEnv.length > MAX_ENV_REF) {
package/lib/index.js CHANGED
@@ -77,7 +77,7 @@ var EFFORTS_GROK = [...EFFORTS_LEVELS, "xhigh"];
77
77
  var EFFORTS_MUSE = ["minimal", ...EFFORTS_REASONING];
78
78
  var MODELS = [
79
79
  // ── OpenAI(8) ─────────────────────────────────────────────
80
- { id: "gpt-6.1-sol", name: "GPT-6.1 Sol", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
80
+ { id: "gpt-6.1-sol", name: "GPT-6.1 Sol", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "medium" },
81
81
  {
82
82
  id: "gpt-6.1-terra",
83
83
  name: "GPT-6.1 Terra",
@@ -85,9 +85,11 @@ var MODELS = [
85
85
  contextWindow: 105e4,
86
86
  maxOutputTokens: 128e3,
87
87
  inputModalities: TEXT_AND_IMAGE,
88
- reasoningEfforts: EFFORTS_OPENAI
88
+ reasoningEfforts: EFFORTS_OPENAI,
89
+ defaultEffort: "medium"
89
90
  },
90
- { id: "gpt-6-astra", name: "GPT-6 Astra", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
91
+ // 厂商页只列出档位、未声明默认值;low 取自 Codex CLI 模型注册表的默认 effort 与网关记录。
92
+ { id: "gpt-6-astra", name: "GPT-6 Astra", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "low" },
91
93
  {
92
94
  id: "gpt-6-luna",
93
95
  name: "GPT-6 Luna",
@@ -95,20 +97,21 @@ var MODELS = [
95
97
  contextWindow: 105e4,
96
98
  maxOutputTokens: 128e3,
97
99
  inputModalities: TEXT_AND_IMAGE,
98
- reasoningEfforts: EFFORTS_OPENAI
100
+ reasoningEfforts: EFFORTS_OPENAI,
101
+ defaultEffort: "medium"
99
102
  },
100
- { id: "gpt-6-sol", name: "GPT-6 Sol", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI },
101
- { id: "gpt-5.6-luna", name: "GPT-5.6 Luna", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI },
102
- { id: "gpt-5.6-sol", name: "GPT-5.6 Sol", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI },
103
- { id: "gpt-5.6-terra", name: "GPT-5.6 Terra", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI },
103
+ { id: "gpt-6-sol", name: "GPT-6 Sol", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI, defaultEffort: "medium" },
104
+ { id: "gpt-5.6-luna", name: "GPT-5.6 Luna", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI, defaultEffort: "medium" },
105
+ { id: "gpt-5.6-sol", name: "GPT-5.6 Sol", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI, defaultEffort: "medium" },
106
+ { id: "gpt-5.6-terra", name: "GPT-5.6 Terra", group: "paid", contextWindow: 105e4, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_OPENAI, defaultEffort: "medium" },
104
107
  // ── Anthropic(8) ──────────────────────────────────────────
105
- { id: "claude-fable-5.1", name: "Claude Fable 5.1", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
106
- { id: "claude-fable-5", name: "Claude Fable 5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
107
- { id: "claude-opus-5.5", name: "Claude Opus 5.5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
108
- { id: "claude-opus-5", name: "Claude Opus 5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
109
- { id: "claude-opus-4.8", name: "Claude Opus 4.8", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
110
- { id: "claude-sonnet-5.5", name: "Claude Sonnet 5.5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
111
- { id: "claude-sonnet-5", name: "Claude Sonnet 5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
108
+ { id: "claude-fable-5.1", name: "Claude Fable 5.1", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "high" },
109
+ { id: "claude-fable-5", name: "Claude Fable 5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "high" },
110
+ { id: "claude-opus-5.5", name: "Claude Opus 5.5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "medium" },
111
+ { id: "claude-opus-5", name: "Claude Opus 5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "high" },
112
+ { id: "claude-opus-4.8", name: "Claude Opus 4.8", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "high" },
113
+ { id: "claude-sonnet-5.5", name: "Claude Sonnet 5.5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "high" },
114
+ { id: "claude-sonnet-5", name: "Claude Sonnet 5", group: "paid", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "high" },
112
115
  {
113
116
  id: "claude-haiku-5.5",
114
117
  name: "Claude Haiku 5.5",
@@ -116,7 +119,8 @@ var MODELS = [
116
119
  contextWindow: 1e6,
117
120
  maxOutputTokens: 128e3,
118
121
  inputModalities: TEXT_AND_IMAGE,
119
- reasoningEfforts: EFFORTS_REASONING
122
+ reasoningEfforts: EFFORTS_REASONING,
123
+ defaultEffort: "medium"
120
124
  },
121
125
  // ── DeepSeek(4) ───────────────────────────────────────────
122
126
  {
@@ -126,7 +130,8 @@ var MODELS = [
126
130
  contextWindow: 1e6,
127
131
  maxOutputTokens: 384e3,
128
132
  inputModalities: TEXT_AND_IMAGE,
129
- reasoningEfforts: EFFORTS_LOW_HIGH
133
+ reasoningEfforts: EFFORTS_LOW_HIGH,
134
+ defaultEffort: "high"
130
135
  },
131
136
  {
132
137
  id: "deepseek-v4-pro",
@@ -134,7 +139,8 @@ var MODELS = [
134
139
  group: "plan",
135
140
  contextWindow: 1e6,
136
141
  maxOutputTokens: 384e3,
137
- reasoningEfforts: EFFORTS_LOW_HIGH
142
+ reasoningEfforts: EFFORTS_LOW_HIGH,
143
+ defaultEffort: "high"
138
144
  },
139
145
  {
140
146
  id: "deepseek-v4-flash",
@@ -143,7 +149,8 @@ var MODELS = [
143
149
  contextWindow: 1e6,
144
150
  maxOutputTokens: 384e3,
145
151
  inputModalities: TEXT_AND_IMAGE,
146
- reasoningEfforts: EFFORTS_LOW_HIGH
152
+ reasoningEfforts: EFFORTS_LOW_HIGH,
153
+ defaultEffort: "high"
147
154
  },
148
155
  {
149
156
  id: "deepseek-v4-flash-vision-exp",
@@ -152,7 +159,8 @@ var MODELS = [
152
159
  contextWindow: 1e6,
153
160
  maxOutputTokens: 384e3,
154
161
  inputModalities: TEXT_AND_IMAGE,
155
- reasoningEfforts: EFFORTS_LOW_HIGH
162
+ reasoningEfforts: EFFORTS_LOW_HIGH,
163
+ defaultEffort: "high"
156
164
  },
157
165
  // ── Z.ai(3) ───────────────────────────────────────────────
158
166
  {
@@ -162,7 +170,8 @@ var MODELS = [
162
170
  contextWindow: 1e6,
163
171
  maxOutputTokens: 128e3,
164
172
  inputModalities: TEXT_AND_IMAGE,
165
- reasoningEfforts: EFFORTS_LOW_HIGH
173
+ reasoningEfforts: EFFORTS_LOW_HIGH,
174
+ defaultEffort: "max"
166
175
  },
167
176
  {
168
177
  id: "glm-5.3-flash",
@@ -171,9 +180,10 @@ var MODELS = [
171
180
  contextWindow: 1e6,
172
181
  maxOutputTokens: 128e3,
173
182
  inputModalities: TEXT_AND_IMAGE,
174
- reasoningEfforts: EFFORTS_LOW_HIGH
183
+ reasoningEfforts: EFFORTS_LOW_HIGH,
184
+ defaultEffort: "max"
175
185
  },
176
- { id: "glm-5.2", name: "GLM-5.2", group: "paid", contextWindow: 1e6, inputModalities: TEXT_ONLY, reasoningEfforts: EFFORTS_GLM52 },
186
+ { id: "glm-5.2", name: "GLM-5.2", group: "paid", contextWindow: 1e6, inputModalities: TEXT_ONLY, reasoningEfforts: EFFORTS_GLM52, defaultEffort: "max" },
177
187
  // ── Moonshot(3) ───────────────────────────────────────────
178
188
  {
179
189
  id: "kimi-k2.7-code",
@@ -184,16 +194,16 @@ var MODELS = [
184
194
  inputModalities: TEXT_AND_IMAGE,
185
195
  reasoningEfforts: []
186
196
  },
187
- { id: "kimi-k3", name: "Kimi K3", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LOW_HIGH },
188
- { id: "kimi-k3.1-pro", name: "Kimi K3.1 Pro", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LOW_HIGH },
197
+ { id: "kimi-k3", name: "Kimi K3", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LOW_HIGH, defaultEffort: "max" },
198
+ { id: "kimi-k3.1-pro", name: "Kimi K3.1 Pro", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LOW_HIGH, defaultEffort: "max" },
189
199
  // ── Google(3) ─────────────────────────────────────────────
190
- { id: "gemini-4-argon", name: "Gemini 4 Argon", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS },
191
- { id: "gemini-3.8-flash", name: "Gemini 3.8 Flash", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS },
192
- { id: "gemini-3.7-flash", name: "Gemini 3.7 Flash", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS },
200
+ { id: "gemini-4-argon", name: "Gemini 4 Argon", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS, defaultEffort: "medium" },
201
+ { id: "gemini-3.8-flash", name: "Gemini 3.8 Flash", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS, defaultEffort: "medium" },
202
+ { id: "gemini-3.7-flash", name: "Gemini 3.7 Flash", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS, defaultEffort: "medium" },
193
203
  // ── xAI(3) ────────────────────────────────────────────────
194
- { id: "grok-4.7", name: "Grok 4.7", group: "paid", contextWindow: 5e5, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_GROK },
195
- { id: "grok-4.6", name: "Grok 4.6", group: "paid", contextWindow: 5e5, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_GROK },
196
- { id: "grok-4.5", name: "Grok 4.5", group: "paid", contextWindow: 5e5, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS },
204
+ { id: "grok-4.7", name: "Grok 4.7", group: "paid", contextWindow: 5e5, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_GROK, defaultEffort: "high" },
205
+ { id: "grok-4.6", name: "Grok 4.6", group: "paid", contextWindow: 5e5, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_GROK, defaultEffort: "high" },
206
+ { id: "grok-4.5", name: "Grok 4.5", group: "paid", contextWindow: 5e5, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_LEVELS, defaultEffort: "high" },
197
207
  // ── Xiaomi(2) ─────────────────────────────────────────────
198
208
  {
199
209
  id: "mimo-v2.6-pro",
@@ -221,13 +231,15 @@ var MODELS = [
221
231
  contextWindow: 1e6,
222
232
  maxOutputTokens: 64e3,
223
233
  inputModalities: TEXT_ONLY,
224
- reasoningEfforts: ["none", "high"]
234
+ reasoningEfforts: ["none", "high"],
235
+ defaultEffort: "high"
225
236
  },
226
237
  // ── Alibaba(1) ────────────────────────────────────────────
227
238
  { id: "qwen3.7-max", name: "Qwen3.7 Max", group: "paid", contextWindow: 1e6, inputModalities: TEXT_ONLY, reasoningEfforts: [] },
228
239
  // Official API additions; display labels for undocumented entries are local formatting.
229
- { id: "minimax-m3.1-flash", name: "MiniMax M3.1 Flash", group: "plan", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING },
230
- { id: "muse-spark-1.3", name: "Muse Spark 1.3", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_MUSE },
240
+ { id: "minimax-m3.1-flash", name: "MiniMax M3.1 Flash", group: "plan", contextWindow: 1e6, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_REASONING, defaultEffort: "max" },
241
+ // 厂商只说默认“由模型决定”;high 取自 Meta 合作客户端与网关实现的默认 effort。
242
+ { id: "muse-spark-1.3", name: "Muse Spark 1.3", group: "paid", contextWindow: 1048576, inputModalities: TEXT_AND_IMAGE, reasoningEfforts: EFFORTS_MUSE, defaultEffort: "high" },
231
243
  { id: "muse-wonder", name: "Muse Wonder", group: "paid", contextWindow: 1048576 }
232
244
  ];
233
245
  var BY_ID = new Map(MODELS.map((model) => [model.id, model]));
@@ -347,7 +359,7 @@ function serializableTransform(callback) {
347
359
  function parseModelCatalogSnapshot(value) {
348
360
  const MODEL_ID4 = /^[A-Za-z0-9._:/-]{1,128}$/u;
349
361
  const GROUPS = ["plan", "paid"];
350
- const KEYS = ["id", "name", "group", "contextWindow", "maxOutputTokens", "inputModalities", "reasoningEfforts"];
362
+ const KEYS = ["id", "name", "group", "contextWindow", "maxOutputTokens", "inputModalities", "reasoningEfforts", "defaultEffort"];
351
363
  const RESERVED = ["__proto__", "constructor", "prototype"];
352
364
  if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
353
365
  const snapshot = value;
@@ -402,6 +414,11 @@ function parseModelCatalogSnapshot(value) {
402
414
  }
403
415
  model.reasoningEfforts = efforts;
404
416
  }
417
+ if (item.defaultEffort !== void 0) {
418
+ if (typeof item.defaultEffort !== "string" || item.defaultEffort.length === 0 || item.defaultEffort.length > 32) return void 0;
419
+ if (!(model.reasoningEfforts ?? []).includes(item.defaultEffort)) return void 0;
420
+ model.defaultEffort = item.defaultEffort;
421
+ }
405
422
  seen.add(id);
406
423
  models.push(model);
407
424
  }
@@ -1119,6 +1136,14 @@ function protocolAcceptsEffort(protocol, effort) {
1119
1136
  function modelReasoningEfforts(model, protocol) {
1120
1137
  return model.reasoningEfforts?.filter((effort) => protocolAcceptsEffort(protocol, effort));
1121
1138
  }
1139
+ function vendorDefaultEffort(model, protocol) {
1140
+ const available = modelReasoningEfforts(model, protocol);
1141
+ return model.defaultEffort !== void 0 && available?.includes(model.defaultEffort) === true ? model.defaultEffort : void 0;
1142
+ }
1143
+ function defaultReasoningEffort(model, protocol, configured) {
1144
+ if (configured === void 0) return vendorDefaultEffort(model, protocol);
1145
+ return modelReasoningEfforts(model, protocol)?.includes(configured) === true ? configured : void 0;
1146
+ }
1122
1147
 
1123
1148
  // src/protocols/chat-completions.ts
1124
1149
  function buildChatCompletionsRequest(ctx) {
@@ -2042,10 +2067,11 @@ function outputReserve(model, protocol) {
2042
2067
  }
2043
2068
  function metadata(provider, row, config) {
2044
2069
  const setting = config.modelSettings?.[row.id];
2045
- const proposedReserve = setting?.maxTokens ?? outputReserve(row, config.apiProtocol ?? "chat-completions");
2046
- const reserve = claudeOutputError(row.id, config.apiProtocol ?? "chat-completions", proposedReserve) === void 0 ? proposedReserve : void 0;
2047
- const efforts = modelReasoningEfforts(row, config.apiProtocol ?? "chat-completions");
2048
- const defaultEffort = setting?.reasoningEffort !== void 0 && efforts?.includes(setting.reasoningEffort) ? setting.reasoningEffort : void 0;
2070
+ const protocol = config.apiProtocol ?? "chat-completions";
2071
+ const proposedReserve = setting?.maxTokens ?? outputReserve(row, protocol);
2072
+ const reserve = claudeOutputError(row.id, protocol, proposedReserve) === void 0 ? proposedReserve : void 0;
2073
+ const efforts = modelReasoningEfforts(row, protocol);
2074
+ const defaultEffort = defaultReasoningEffort(row, protocol, setting?.reasoningEffort);
2049
2075
  return {
2050
2076
  provider,
2051
2077
  id: row.id,
@@ -2140,8 +2166,11 @@ var CoRouterAdapter = class extends LlmAdapter {
2140
2166
  signal.throwIfAborted();
2141
2167
  const setting = config.modelSettings?.[row.id] ?? {};
2142
2168
  const protocolId = config.apiProtocol ?? "chat-completions";
2143
- const effort = options.reasoningEffort ?? (setting.reasoningEffort ? ReasoningEffortId(setting.reasoningEffort) : void 0);
2144
- if (effort !== void 0 && !modelReasoningEfforts(row, protocolId)?.includes(effort)) throw new LlmError11("\u6240\u9009\u601D\u8003\u6DF1\u5EA6\u4E0D\u9002\u7528\u4E8E\u5F53\u524D\u6A21\u578B\u6216\u534F\u8BAE\uFF1B\u8BF7\u4FEE\u6539\u9ED8\u8BA4\u503C\u6216\u9009\u62E9\u5176\u4ED6\u6863\u4F4D", "UNSUPPORTED_OPTION");
2169
+ const configured = setting.reasoningEffort;
2170
+ const explicit = options.reasoningEffort ?? (configured === void 0 ? void 0 : ReasoningEffortId(configured));
2171
+ if (explicit !== void 0 && !modelReasoningEfforts(row, protocolId)?.includes(explicit)) throw new LlmError11("\u6240\u9009\u601D\u8003\u6DF1\u5EA6\u4E0D\u9002\u7528\u4E8E\u5F53\u524D\u6A21\u578B\u6216\u534F\u8BAE\uFF1B\u8BF7\u4FEE\u6539\u9ED8\u8BA4\u503C\u6216\u9009\u62E9\u5176\u4ED6\u6863\u4F4D", "UNSUPPORTED_OPTION");
2172
+ const vendorDefault = vendorDefaultEffort(row, protocolId);
2173
+ const effort = explicit ?? (vendorDefault === void 0 ? void 0 : ReasoningEffortId(vendorDefault));
2145
2174
  if (protocolId === "messages") {
2146
2175
  validateClaudeSampling(row.id, options.temperature ?? setting.temperature, setting.topP);
2147
2176
  validateClaudeOutput(row.id, options.maxTokens ?? setting.maxTokens);
@@ -3508,7 +3537,7 @@ import { randomUUID as randomUUID2 } from "node:crypto";
3508
3537
 
3509
3538
  // src/device-auth.ts
3510
3539
  var DEVICE_AUTH_ENDPOINT = "https://amr-api.open-design.ai/api/v1/cli/device-authorizations";
3511
- var DEVICE_AUTH_PLUGIN_VERSION = "0.1.18";
3540
+ var DEVICE_AUTH_PLUGIN_VERSION = "0.1.19";
3512
3541
  var DEVICE_REQUEST_TIMEOUT_MS = 2e4;
3513
3542
  var DEVICE_RESPONSE_MAX_BYTES = 65536;
3514
3543
  var DEVICE_POLL_MIN_MS = 1e3;
@@ -4615,9 +4644,15 @@ function parseStatusModel(value) {
4615
4644
  ...value.inputModalities === void 0 ? {} : { inputModalities: parseModalities(value.inputModalities) },
4616
4645
  ...value.contextWindow === void 0 ? {} : { contextWindow: positiveInteger(value.contextWindow, "\u4E0A\u4E0B\u6587\u9884\u7B97", 1e8) },
4617
4646
  ...value.maxOutputTokens === void 0 ? {} : { maxOutputTokens: positiveInteger(value.maxOutputTokens, "\u6700\u5927\u8F93\u51FA", 1e7) },
4618
- ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) }
4647
+ ...value.reasoningEfforts === void 0 ? {} : { reasoningEfforts: parseEfforts(value.reasoningEfforts) },
4648
+ ...value.defaultEffort === void 0 ? {} : { defaultEffort: parseEffort(value.defaultEffort) }
4619
4649
  };
4620
4650
  }
4651
+ function parseEffort(value) {
4652
+ const effort = text(value, "\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D", 32);
4653
+ if (!/^[A-Za-z][A-Za-z0-9_-]*$/u.test(effort)) throw new Error("\u9ED8\u8BA4\u601D\u8003\u6863\u4F4D\u683C\u5F0F\u65E0\u6548");
4654
+ return effort;
4655
+ }
4621
4656
  function parseStatusConfig(value) {
4622
4657
  if (!record(value)) throw new Error("\u914D\u7F6E\u89C6\u56FE\u5FC5\u987B\u662F\u5BF9\u8C61");
4623
4658
  if (typeof value.apiKeyEnv !== "string" || value.apiKeyEnv.length > MAX_ENV_REF) {
@@ -4822,7 +4857,11 @@ var OpenDesignCoRouterService = class extends (_a = TypertRemoteService, _status
4822
4857
  const config = this._config();
4823
4858
  const snapshot = config.modelCatalog;
4824
4859
  if (!snapshot || snapshot.baseURL !== config.baseURL) return;
4825
- this._models = snapshot.models;
4860
+ this._models = snapshot.models.map((row) => {
4861
+ const known = findModel(row.id);
4862
+ if (known?.defaultEffort === void 0 || row.defaultEffort !== void 0) return row;
4863
+ return (row.reasoningEfforts ?? []).includes(known.defaultEffort) ? { ...row, defaultEffort: known.defaultEffort } : row;
4864
+ });
4826
4865
  this._modelsUpdatedAt = snapshot.updatedAt;
4827
4866
  }
4828
4867
  /**
@@ -4934,7 +4973,9 @@ var OpenDesignCoRouterService = class extends (_a = TypertRemoteService, _status
4934
4973
  ...this.turnMonitorStatus ? { turnMonitor: this.turnMonitorStatus() } : {},
4935
4974
  models: this._models.map((row) => {
4936
4975
  const { id, name: name2, group: group2, contextWindow, maxOutputTokens, inputModalities } = row;
4937
- const reasoningEfforts = modelReasoningEfforts(row, state.config.apiProtocol ?? "chat-completions");
4976
+ const protocol = state.config.apiProtocol ?? "chat-completions";
4977
+ const reasoningEfforts = modelReasoningEfforts(row, protocol);
4978
+ const defaultEffort = vendorDefaultEffort(row, protocol);
4938
4979
  return {
4939
4980
  id,
4940
4981
  name: name2,
@@ -4943,7 +4984,8 @@ var OpenDesignCoRouterService = class extends (_a = TypertRemoteService, _status
4943
4984
  ...inputModalities === void 0 ? {} : { inputModalities },
4944
4985
  ...contextWindow === void 0 ? {} : { contextWindow },
4945
4986
  ...maxOutputTokens === void 0 ? {} : { maxOutputTokens },
4946
- ...reasoningEfforts === void 0 ? {} : { reasoningEfforts }
4987
+ ...reasoningEfforts === void 0 ? {} : { reasoningEfforts },
4988
+ ...defaultEffort === void 0 ? {} : { defaultEffort }
4947
4989
  };
4948
4990
  }),
4949
4991
  modelsSource: this._modelsUpdatedAt ? "openai" : "builtin",