@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.mjs
CHANGED
|
@@ -2280,9 +2280,9 @@ var LLMGateway = class {
|
|
|
2280
2280
|
|
|
2281
2281
|
// src/provider.ts
|
|
2282
2282
|
function createLLMGateway(options = {}) {
|
|
2283
|
-
var _a15, _b, _c;
|
|
2284
|
-
const baseURL = (_b = withoutTrailingSlash((_a15 = options.baseURL) != null ? _a15 : options.baseUrl)) != null ? _b : "https://api.llmgateway.io/v1";
|
|
2285
|
-
const compatibility = (
|
|
2283
|
+
var _a15, _b, _c, _d;
|
|
2284
|
+
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";
|
|
2285
|
+
const compatibility = (_d = options.compatibility) != null ? _d : "compatible";
|
|
2286
2286
|
const getHeaders = () => __spreadValues({
|
|
2287
2287
|
Authorization: `Bearer ${loadApiKey({
|
|
2288
2288
|
apiKey: options.apiKey,
|