@llmgateway/ai-sdk-provider 2.5.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 -21
- package/dist/index.d.ts +0 -21
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -6
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +0 -21
- package/dist/internal/index.d.ts +0 -21
- package/dist/internal/index.js +2 -6
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -6
- 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.
|
|
@@ -43,11 +27,6 @@ type LLMGatewaySharedSettings = LLMGatewayProviderOptions & {
|
|
|
43
27
|
* @deprecated use `reasoning` instead
|
|
44
28
|
*/
|
|
45
29
|
includeReasoning?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Reasoning effort level for models that support it.
|
|
48
|
-
* Controls the computational effort applied to reasoning tasks.
|
|
49
|
-
*/
|
|
50
|
-
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high';
|
|
51
30
|
extraBody?: Record<string, unknown>;
|
|
52
31
|
/**
|
|
53
32
|
* Enable usage accounting to get detailed token usage information.
|
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.
|
|
@@ -43,11 +27,6 @@ type LLMGatewaySharedSettings = LLMGatewayProviderOptions & {
|
|
|
43
27
|
* @deprecated use `reasoning` instead
|
|
44
28
|
*/
|
|
45
29
|
includeReasoning?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Reasoning effort level for models that support it.
|
|
48
|
-
* Controls the computational effort applied to reasoning tasks.
|
|
49
|
-
*/
|
|
50
|
-
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high';
|
|
51
30
|
extraBody?: Record<string, unknown>;
|
|
52
31
|
/**
|
|
53
32
|
* Enable usage accounting to get detailed token usage information.
|
package/dist/internal/index.js
CHANGED
|
@@ -1362,9 +1362,7 @@ var LLMGatewayChatLanguageModel = class {
|
|
|
1362
1362
|
// LLMGateway specific settings:
|
|
1363
1363
|
include_reasoning: this.settings.includeReasoning,
|
|
1364
1364
|
reasoning: this.settings.reasoning,
|
|
1365
|
-
|
|
1366
|
-
usage: this.settings.usage,
|
|
1367
|
-
image_config: this.settings.image_config
|
|
1365
|
+
usage: this.settings.usage
|
|
1368
1366
|
}, this.config.extraBody), this.settings.extraBody);
|
|
1369
1367
|
if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
|
|
1370
1368
|
if ("schema" in responseFormat && responseFormat.schema) {
|
|
@@ -2076,9 +2074,7 @@ var LLMGatewayCompletionLanguageModel = class {
|
|
|
2076
2074
|
prompt: completionPrompt,
|
|
2077
2075
|
// LLMGateway specific settings:
|
|
2078
2076
|
include_reasoning: this.settings.includeReasoning,
|
|
2079
|
-
reasoning: this.settings.reasoning
|
|
2080
|
-
reasoning_effort: this.settings.reasoning_effort,
|
|
2081
|
-
image_config: this.settings.image_config
|
|
2077
|
+
reasoning: this.settings.reasoning
|
|
2082
2078
|
}, this.config.extraBody), this.settings.extraBody);
|
|
2083
2079
|
}
|
|
2084
2080
|
async doGenerate(options) {
|