@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.cjs +4 -0
- package/index.cjs.map +1 -1
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -5478,9 +5478,11 @@ var AxBalancer = class {
|
|
|
5478
5478
|
try {
|
|
5479
5479
|
return await this.currentService.chat(req, options);
|
|
5480
5480
|
} catch (e) {
|
|
5481
|
+
console.warn(`Service ${this.currentService.getName()} failed`);
|
|
5481
5482
|
if (!this.getNextService()) {
|
|
5482
5483
|
throw e;
|
|
5483
5484
|
}
|
|
5485
|
+
console.warn(`Switching to service ${this.currentService.getName()}`);
|
|
5484
5486
|
}
|
|
5485
5487
|
}
|
|
5486
5488
|
}
|
|
@@ -5490,9 +5492,11 @@ var AxBalancer = class {
|
|
|
5490
5492
|
try {
|
|
5491
5493
|
return await this.currentService.embed(req, options);
|
|
5492
5494
|
} catch (e) {
|
|
5495
|
+
console.warn(`Service ${this.currentService.getName()} failed`);
|
|
5493
5496
|
if (!this.getNextService()) {
|
|
5494
5497
|
throw e;
|
|
5495
5498
|
}
|
|
5499
|
+
console.warn(`Switching to service ${this.currentService.getName()}`);
|
|
5496
5500
|
}
|
|
5497
5501
|
}
|
|
5498
5502
|
}
|