@ax-llm/ax 10.0.36 → 10.0.37

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/index.js CHANGED
@@ -5385,9 +5385,11 @@ var AxBalancer = class {
5385
5385
  try {
5386
5386
  return await this.currentService.chat(req, options);
5387
5387
  } catch (e) {
5388
+ console.warn(`Service ${this.currentService.getName()} failed`);
5388
5389
  if (!this.getNextService()) {
5389
5390
  throw e;
5390
5391
  }
5392
+ console.warn(`Switching to service ${this.currentService.getName()}`);
5391
5393
  }
5392
5394
  }
5393
5395
  }
@@ -5397,9 +5399,11 @@ var AxBalancer = class {
5397
5399
  try {
5398
5400
  return await this.currentService.embed(req, options);
5399
5401
  } catch (e) {
5402
+ console.warn(`Service ${this.currentService.getName()} failed`);
5400
5403
  if (!this.getNextService()) {
5401
5404
  throw e;
5402
5405
  }
5406
+ console.warn(`Switching to service ${this.currentService.getName()}`);
5403
5407
  }
5404
5408
  }
5405
5409
  }