litellm-api 0.0.2 → 0.0.3

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,5 +1,5 @@
1
1
 
2
- > litellm-api@0.0.2 build /home/runner/work/openapi-clients/openapi-clients/packages/litellm-api
2
+ > litellm-api@0.0.3 build /home/runner/work/openapi-clients/openapi-clients/packages/litellm-api
3
3
  > unbuild
4
4
 
5
5
  [info] Automatically detected entries: src/index [esm] [cjs] [dts]
@@ -8,7 +8,7 @@
8
8
  [success] Build succeeded for litellm-api
9
9
  [log] dist/index.cjs (total size: 37.2 kB, chunk size: 37.2 kB, exports: LiteLLMApi)
10
10
 
11
- [log] dist/index.mjs (total size: 37.1 kB, chunk size: 37.1 kB, exports: LiteLLMApi)
11
+ [log] dist/index.mjs (total size: 37.2 kB, chunk size: 37.2 kB, exports: LiteLLMApi)
12
12
 
13
13
  Σ Total dist size (byte size): 1.64 MB
14
14
  [log]
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # litellm-api
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 4140a48: Fix baseUrl injection
8
+
3
9
  ## 0.0.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -796,6 +796,7 @@ class LiteLLMApi {
796
796
  if (!this.#fetch) throw new Error("Fetch is required");
797
797
  }
798
798
  get api() {
799
+ const baseUrl = this.#baseUrl;
799
800
  const token = this.#token;
800
801
  const fetchImpl = this.#fetch;
801
802
  return new Proxy(
@@ -814,7 +815,7 @@ class LiteLLMApi {
814
815
  }
815
816
  const method = operationsByTag[namespace][operation];
816
817
  return async (params) => {
817
- return await method({ ...params, token, fetchImpl });
818
+ return await method({ ...params, baseUrl, token, fetchImpl });
818
819
  };
819
820
  }
820
821
  }
package/dist/index.mjs CHANGED
@@ -794,6 +794,7 @@ class LiteLLMApi {
794
794
  if (!this.#fetch) throw new Error("Fetch is required");
795
795
  }
796
796
  get api() {
797
+ const baseUrl = this.#baseUrl;
797
798
  const token = this.#token;
798
799
  const fetchImpl = this.#fetch;
799
800
  return new Proxy(
@@ -812,7 +813,7 @@ class LiteLLMApi {
812
813
  }
813
814
  const method = operationsByTag[namespace][operation];
814
815
  return async (params) => {
815
- return await method({ ...params, token, fetchImpl });
816
+ return await method({ ...params, baseUrl, token, fetchImpl });
816
817
  };
817
818
  }
818
819
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "litellm-api",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "LiteLLM auto-generated type-safe API client",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",