@llmgateway/ai-sdk-provider 2.3.0 → 2.3.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.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2315,9 +2315,9 @@ var LLMGateway = class {
|
|
|
2315
2315
|
|
|
2316
2316
|
// src/provider.ts
|
|
2317
2317
|
function createLLMGateway(options = {}) {
|
|
2318
|
-
var _a15, _b, _c;
|
|
2319
|
-
const baseURL = (_b = withoutTrailingSlash((_a15 = options.baseURL) != null ? _a15 : options.baseUrl)) != null ? _b : "https://api.llmgateway.io/v1";
|
|
2320
|
-
const compatibility = (
|
|
2318
|
+
var _a15, _b, _c, _d;
|
|
2319
|
+
const baseURL = (_c = (_b = withoutTrailingSlash((_a15 = options.baseURL) != null ? _a15 : options.baseUrl)) != null ? _b : process.env.LLM_GATEWAY_API_BASE) != null ? _c : "https://api.llmgateway.io/v1";
|
|
2320
|
+
const compatibility = (_d = options.compatibility) != null ? _d : "compatible";
|
|
2321
2321
|
const getHeaders = () => __spreadValues({
|
|
2322
2322
|
Authorization: `Bearer ${loadApiKey({
|
|
2323
2323
|
apiKey: options.apiKey,
|