@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.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 = (_c = options.compatibility) != null ? _c : "compatible";
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,