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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> litellm-api@0.0.
|
|
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.
|
|
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
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
|
}
|