@llmgateway/ai-sdk-provider 2.4.0 → 2.5.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.d.mts +0 -16
- package/dist/index.d.ts +0 -16
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +0 -16
- package/dist/internal/index.d.ts +0 -16
- package/dist/internal/index.js +2 -4
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -4
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -16,22 +16,6 @@ type LLMGatewayProviderOptions = {
|
|
|
16
16
|
} | {
|
|
17
17
|
effort: 'high' | 'medium' | 'low';
|
|
18
18
|
});
|
|
19
|
-
/**
|
|
20
|
-
* Image generation configuration for supported models (e.g., Google's image generation models).
|
|
21
|
-
* Specifies aspect ratio and image resolution for generated images.
|
|
22
|
-
*/
|
|
23
|
-
image_config?: {
|
|
24
|
-
/**
|
|
25
|
-
* The aspect ratio of the generated image.
|
|
26
|
-
* Examples: "1:1", "16:9", "4:3", "5:4"
|
|
27
|
-
*/
|
|
28
|
-
aspect_ratio?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The resolution of the generated image.
|
|
31
|
-
* Options: "1K" (1024x1024), "2K" (2048x2048), "4K"
|
|
32
|
-
*/
|
|
33
|
-
image_size?: string;
|
|
34
|
-
};
|
|
35
19
|
/**
|
|
36
20
|
* A unique identifier representing your end-user, which can
|
|
37
21
|
* help LLMGateway to monitor and detect abuse.
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -16,22 +16,6 @@ type LLMGatewayProviderOptions = {
|
|
|
16
16
|
} | {
|
|
17
17
|
effort: 'high' | 'medium' | 'low';
|
|
18
18
|
});
|
|
19
|
-
/**
|
|
20
|
-
* Image generation configuration for supported models (e.g., Google's image generation models).
|
|
21
|
-
* Specifies aspect ratio and image resolution for generated images.
|
|
22
|
-
*/
|
|
23
|
-
image_config?: {
|
|
24
|
-
/**
|
|
25
|
-
* The aspect ratio of the generated image.
|
|
26
|
-
* Examples: "1:1", "16:9", "4:3", "5:4"
|
|
27
|
-
*/
|
|
28
|
-
aspect_ratio?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The resolution of the generated image.
|
|
31
|
-
* Options: "1K" (1024x1024), "2K" (2048x2048), "4K"
|
|
32
|
-
*/
|
|
33
|
-
image_size?: string;
|
|
34
|
-
};
|
|
35
19
|
/**
|
|
36
20
|
* A unique identifier representing your end-user, which can
|
|
37
21
|
* help LLMGateway to monitor and detect abuse.
|
package/dist/internal/index.js
CHANGED
|
@@ -1362,8 +1362,7 @@ var LLMGatewayChatLanguageModel = class {
|
|
|
1362
1362
|
// LLMGateway specific settings:
|
|
1363
1363
|
include_reasoning: this.settings.includeReasoning,
|
|
1364
1364
|
reasoning: this.settings.reasoning,
|
|
1365
|
-
usage: this.settings.usage
|
|
1366
|
-
image_config: this.settings.image_config
|
|
1365
|
+
usage: this.settings.usage
|
|
1367
1366
|
}, this.config.extraBody), this.settings.extraBody);
|
|
1368
1367
|
if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
|
|
1369
1368
|
if ("schema" in responseFormat && responseFormat.schema) {
|
|
@@ -2075,8 +2074,7 @@ var LLMGatewayCompletionLanguageModel = class {
|
|
|
2075
2074
|
prompt: completionPrompt,
|
|
2076
2075
|
// LLMGateway specific settings:
|
|
2077
2076
|
include_reasoning: this.settings.includeReasoning,
|
|
2078
|
-
reasoning: this.settings.reasoning
|
|
2079
|
-
image_config: this.settings.image_config
|
|
2077
|
+
reasoning: this.settings.reasoning
|
|
2080
2078
|
}, this.config.extraBody), this.settings.extraBody);
|
|
2081
2079
|
}
|
|
2082
2080
|
async doGenerate(options) {
|