aieo 0.2.1 → 0.2.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.
package/dist/index.js CHANGED
@@ -43746,7 +43746,7 @@ var PROVIDERS = [
43746
43746
  var MODELS = {
43747
43747
  anthropic: {
43748
43748
  sonnet: "claude-sonnet-5",
43749
- opus: "claude-opus-5",
43749
+ opus: "claude-opus-5-5",
43750
43750
  haiku: "claude-haiku-4-5"
43751
43751
  },
43752
43752
  google: {
@@ -43817,6 +43817,7 @@ function getProviderForModel(modelName) {
43817
43817
  return "xai";
43818
43818
  // Full model IDs
43819
43819
  case "claude-sonnet-5":
43820
+ case "claude-opus-5-5":
43820
43821
  case "claude-opus-5":
43821
43822
  case "claude-opus-4-6":
43822
43823
  case "claude-haiku-4-5":
@@ -44140,6 +44141,7 @@ function getModel(provider, opts) {
44140
44141
  var MODEL_CONTEXT_LIMITS = {
44141
44142
  // Anthropic — 1M is the default and the max on the 5-series; Haiku 4.5 is 200k.
44142
44143
  "claude-sonnet-5": 1e6,
44144
+ "claude-opus-5-5": 1e6,
44143
44145
  "claude-opus-5": 1e6,
44144
44146
  "claude-opus-4-6": 1e6,
44145
44147
  "claude-haiku-4-5": 2e5,
@@ -44274,6 +44276,11 @@ function anthropicSupportsAdaptiveThinking(modelName) {
44274
44276
  if (m.includes("haiku")) return false;
44275
44277
  return m.includes("sonnet") || m.includes("opus");
44276
44278
  }
44279
+ function anthropicRejectsDisabledThinking(modelName) {
44280
+ if (!modelName) return false;
44281
+ const m = modelName.toLowerCase();
44282
+ return m.includes("opus-5-5") || m.includes("fable");
44283
+ }
44277
44284
  function getProviderOptions(provider, thinkingSpeed, modelName) {
44278
44285
  const fast = thinkingSpeed === "fast";
44279
44286
  const explicitThinking = thinkingSpeed === "thinking";
@@ -44281,6 +44288,14 @@ function getProviderOptions(provider, thinkingSpeed, modelName) {
44281
44288
  switch (provider) {
44282
44289
  case "anthropic":
44283
44290
  let thinking;
44291
+ if (fast && anthropicRejectsDisabledThinking(modelName)) {
44292
+ return {
44293
+ anthropic: {
44294
+ effort: "low",
44295
+ cacheControl: { type: "ephemeral" }
44296
+ }
44297
+ };
44298
+ }
44284
44299
  if (fast) {
44285
44300
  thinking = { type: "disabled" };
44286
44301
  return {