@llmgateway/ai-sdk-provider 2.3.0 → 2.4.0
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.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +16 -0
- package/dist/internal/index.d.ts +16 -0
- package/dist/internal/index.js +4 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1372,7 +1372,8 @@ var LLMGatewayChatLanguageModel = class {
|
|
|
1372
1372
|
// LLMGateway specific settings:
|
|
1373
1373
|
include_reasoning: this.settings.includeReasoning,
|
|
1374
1374
|
reasoning: this.settings.reasoning,
|
|
1375
|
-
usage: this.settings.usage
|
|
1375
|
+
usage: this.settings.usage,
|
|
1376
|
+
image_config: this.settings.image_config
|
|
1376
1377
|
}, this.config.extraBody), this.settings.extraBody);
|
|
1377
1378
|
if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
|
|
1378
1379
|
if ("schema" in responseFormat && responseFormat.schema) {
|
|
@@ -2084,7 +2085,8 @@ var LLMGatewayCompletionLanguageModel = class {
|
|
|
2084
2085
|
prompt: completionPrompt,
|
|
2085
2086
|
// LLMGateway specific settings:
|
|
2086
2087
|
include_reasoning: this.settings.includeReasoning,
|
|
2087
|
-
reasoning: this.settings.reasoning
|
|
2088
|
+
reasoning: this.settings.reasoning,
|
|
2089
|
+
image_config: this.settings.image_config
|
|
2088
2090
|
}, this.config.extraBody), this.settings.extraBody);
|
|
2089
2091
|
}
|
|
2090
2092
|
async doGenerate(options) {
|
|
@@ -2280,9 +2282,9 @@ var LLMGateway = class {
|
|
|
2280
2282
|
|
|
2281
2283
|
// src/provider.ts
|
|
2282
2284
|
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 = (
|
|
2285
|
+
var _a15, _b, _c, _d;
|
|
2286
|
+
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";
|
|
2287
|
+
const compatibility = (_d = options.compatibility) != null ? _d : "compatible";
|
|
2286
2288
|
const getHeaders = () => __spreadValues({
|
|
2287
2289
|
Authorization: `Bearer ${loadApiKey({
|
|
2288
2290
|
apiKey: options.apiKey,
|