@gullabs/google 0.9.1 → 0.10.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.cjs CHANGED
@@ -480,6 +480,12 @@ function geminiAdapter(opts) {
480
480
  );
481
481
  }
482
482
  if (reasoningApi === "budget") {
483
+ if (reasoning.effort === "xhigh") {
484
+ throw new core.LlmError(
485
+ `reasoning.effort "xhigh" is not supported for model "${model}".`,
486
+ { kind: "bad_request", retryable: false }
487
+ );
488
+ }
483
489
  const budget = reasoning.budgetTokens !== void 0 ? reasoning.budgetTokens : reasoning.effort !== void 0 ? GOOGLE_REASONING_EFFORT_BUDGET[reasoning.effort] : void 0;
484
490
  config.thinkingConfig = {
485
491
  ...budget !== void 0 ? { thinkingBudget: budget } : {},
@@ -507,6 +513,11 @@ function geminiAdapter(opts) {
507
513
  case "high":
508
514
  thinkingLevel = "HIGH";
509
515
  break;
516
+ case "xhigh":
517
+ throw new core.LlmError(
518
+ `reasoning.effort "xhigh" is not supported for model "${model}".`,
519
+ { kind: "bad_request", retryable: false }
520
+ );
510
521
  default:
511
522
  core.assertNever(reasoning.effort);
512
523
  }
@@ -755,7 +766,7 @@ function geminiAdapter(opts) {
755
766
  }
756
767
 
757
768
  // src/pricing.ts
758
- var pricingVersion = "gemini-2026-06-28";
769
+ var pricingVersion = "gemini-2026-08-12";
759
770
  var TIER_FACTOR = Object.freeze({
760
771
  standard: 1,
761
772
  flex: 0.5,