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.
@@ -4,3 +4,16 @@ import type { ApiProtocol } from './protocol-options.js';
4
4
  export declare function protocolAcceptsEffort(protocol: ApiProtocol, effort: string): boolean;
5
5
  /** Intersect documented model choices with the active request format. */
6
6
  export declare function modelReasoningEfforts(model: Pick<CatalogModel, 'reasoningEfforts'>, protocol: ApiProtocol): readonly string[] | undefined;
7
+ /**
8
+ * Vendor-declared default effort, but only while the active request format can
9
+ * encode it. Omission means the vendor documents no default for this model, so
10
+ * the route keeps the provider's own default instead of a guess.
11
+ */
12
+ export declare function vendorDefaultEffort(model: Pick<CatalogModel, 'reasoningEfforts' | 'defaultEffort'>, protocol: ApiProtocol): string | undefined;
13
+ /**
14
+ * The default one exact route reports and applies: the saved user choice while
15
+ * it is still valid for the active protocol, otherwise the vendor default. A
16
+ * saved value outside the supported set resolves to nothing — the stale value
17
+ * stays visible and clearable instead of being silently rewritten.
18
+ */
19
+ export declare function defaultReasoningEffort(model: Pick<CatalogModel, 'reasoningEfforts' | 'defaultEffort'>, protocol: ApiProtocol, configured?: string): string | undefined;
package/lib/remote.d.ts CHANGED
@@ -37,6 +37,8 @@ export interface StatusModel {
37
37
  contextWindow?: number;
38
38
  maxOutputTokens?: number;
39
39
  reasoningEfforts?: readonly string[];
40
+ /** Vendor-declared default effort of the catalog entry, always one of `reasoningEfforts`; omission means the vendor declares none. */
41
+ defaultEffort?: string;
40
42
  }
41
43
  /** Public website quotes, independent of account entitlements and gateway discovery. */
42
44
  export interface PriceTier {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-opendesign-corouter",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "OpenDesign CoRouter:套餐赠送与付费模型双 Provider、桌面登录态额度及独立登录",
5
5
  "type": "module",
6
6
  "license": "MIT",