@use-aistack/cli 0.20.1 → 0.20.2

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.
@@ -18675,8 +18675,13 @@ var PROVIDER_VENDOR = {
18675
18675
  xai: "xai"
18676
18676
  };
18677
18677
  var PRICING_ALIASES = {
18678
- "grok-4.6-build": "grok-4.6"
18678
+ "grok-4.6-build": "grok-4.6",
18679
+ "grok-4.7-build": "grok-4.7"
18679
18680
  };
18681
+ var MODEL_SETTINGS_SUFFIX = /(?:-thinking)?(?:-(?:low|medium|high|xhigh|max))?(?:-fast)?$/;
18682
+ function withoutModelSettings(slug) {
18683
+ return slug.replace(MODEL_SETTINGS_SUFFIX, "");
18684
+ }
18680
18685
  var LOCAL_PROVIDERS = /* @__PURE__ */ new Set([
18681
18686
  "ollama",
18682
18687
  "lmstudio",
@@ -18773,8 +18778,16 @@ var Pricer = class {
18773
18778
  }
18774
18779
  lookupSlug(slug, provider) {
18775
18780
  if (this.firstLayerWith(slug, provider)) return slug;
18776
- const alias = PRICING_ALIASES[slug];
18777
- return alias && this.firstLayerWith(alias, provider) ? alias : null;
18781
+ const base = withoutModelSettings(slug);
18782
+ for (const candidate of [
18783
+ PRICING_ALIASES[slug],
18784
+ base,
18785
+ PRICING_ALIASES[base]
18786
+ ]) {
18787
+ if (candidate && this.firstLayerWith(candidate, provider))
18788
+ return candidate;
18789
+ }
18790
+ return null;
18778
18791
  }
18779
18792
  /**
18780
18793
  * Every period that applies to a pricing key, or an empty list when none