@routstr/sdk 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.
@@ -1635,6 +1635,12 @@ var ProviderManager = class {
1635
1635
  hasFailed(baseUrl) {
1636
1636
  return this.failedProviders.has(baseUrl);
1637
1637
  }
1638
+ /**
1639
+ * Get a copy of the failed providers set
1640
+ */
1641
+ getFailedProviders() {
1642
+ return new Set(this.failedProviders);
1643
+ }
1638
1644
  /**
1639
1645
  * Find the next best provider for a model
1640
1646
  * @param modelId The model ID to find a provider for
@@ -2504,7 +2510,7 @@ var RoutstrClient = class {
2504
2510
  retryCount: 0
2505
2511
  });
2506
2512
  }
2507
- throw new FailoverError(baseUrl, Array.from(this.providerManager));
2513
+ throw new FailoverError(baseUrl, Array.from(this.providerManager.getFailedProviders()));
2508
2514
  }
2509
2515
  /**
2510
2516
  * Handle post-response balance update for all modes