@astralform/js 3.1.0 → 3.2.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/dist/index.d.cts CHANGED
@@ -738,6 +738,8 @@ interface ModelOption {
738
738
  tools: boolean;
739
739
  vision: boolean;
740
740
  thinkingMode: string;
741
+ /** whether the model accepts a configurable reasoning effort (low/medium/high); false for always-on-thinking / think-tags models where effort is a no-op */
742
+ supportsEffort: boolean;
741
743
  }
742
744
  interface ConversationAsset {
743
745
  id: string;
package/dist/index.d.ts CHANGED
@@ -738,6 +738,8 @@ interface ModelOption {
738
738
  tools: boolean;
739
739
  vision: boolean;
740
740
  thinkingMode: string;
741
+ /** whether the model accepts a configurable reasoning effort (low/medium/high); false for always-on-thinking / think-tags models where effort is a no-op */
742
+ supportsEffort: boolean;
741
743
  }
742
744
  interface ConversationAsset {
743
745
  id: string;
package/dist/index.js CHANGED
@@ -510,7 +510,12 @@ var AstralformClient = class {
510
510
  thinking: m.thinking,
511
511
  tools: m.tools,
512
512
  vision: m.vision,
513
- thinkingMode: m.thinking_mode
513
+ thinkingMode: m.thinking_mode,
514
+ // Coerce so the non-optional `supportsEffort: boolean` stays honest even
515
+ // against an older backend that omits `supports_effort` (→ false = safe:
516
+ // the effort control is hidden). Unlike the always-present siblings above,
517
+ // this field can be absent, so it's the one that needs coercion.
518
+ supportsEffort: Boolean(m.supports_effort)
514
519
  }));
515
520
  }
516
521
  async getSkills() {