@everworker/oneringai 0.1.4 → 0.2.1

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.
@@ -1,3 +1,3 @@
1
- export { y as ImageEditOptions, x as ImageGenerateOptions, j as ImageGeneration, k as ImageGenerationCreateOptions, B as ImageResponse, z as ImageVariationOptions, l as SimpleGenerateOptions } from '../../ImageModel-DSY7SNsq.cjs';
1
+ export { o as ImageEditOptions, n as ImageGenerateOptions, b as ImageGeneration, c as ImageGenerationCreateOptions, q as ImageResponse, p as ImageVariationOptions, S as SimpleGenerateOptions } from '../../ImageModel-BWN6VVS6.cjs';
2
+ import '../../IProvider-c4QCbPjn.cjs';
2
3
  import '../../Vendor-DYh_bzwo.cjs';
3
- import '../../IProvider-BP49c93d.cjs';
@@ -1,3 +1,3 @@
1
- export { y as ImageEditOptions, x as ImageGenerateOptions, j as ImageGeneration, k as ImageGenerationCreateOptions, B as ImageResponse, z as ImageVariationOptions, l as SimpleGenerateOptions } from '../../ImageModel-qNJHPh4q.js';
1
+ export { o as ImageEditOptions, n as ImageGenerateOptions, b as ImageGeneration, c as ImageGenerationCreateOptions, q as ImageResponse, p as ImageVariationOptions, S as SimpleGenerateOptions } from '../../ImageModel-BJ2mVPGV.js';
2
+ import '../../IProvider-DcYJ3YE-.js';
2
3
  import '../../Vendor-DYh_bzwo.js';
3
- import '../../IProvider-BP49c93d.js';
@@ -1806,7 +1806,14 @@ var Connector = class _Connector {
1806
1806
  }
1807
1807
  const startTime = Date.now();
1808
1808
  this.requestCount++;
1809
- const url = endpoint.startsWith("http") ? endpoint : `${this.baseURL}${endpoint}`;
1809
+ let url;
1810
+ if (endpoint.startsWith("http")) {
1811
+ url = endpoint;
1812
+ } else {
1813
+ const base = (this.baseURL ?? "").replace(/\/+$/, "");
1814
+ const path2 = endpoint.startsWith("/") ? endpoint : `/${endpoint}`;
1815
+ url = `${base}${path2}`;
1816
+ }
1810
1817
  const timeout = options?.timeout ?? this.config.timeout ?? DEFAULT_CONNECTOR_TIMEOUT;
1811
1818
  if (this.config.logging?.enabled) {
1812
1819
  this.logRequest(url, options);