@jerome-benoit/sap-ai-provider-v2 4.6.7 → 4.6.8
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/{chunk-ZUDOGUGK.js → chunk-6BVUDEKZ.js} +3 -3
- package/dist/{chunk-R76UJOY2.js → chunk-7OGNFVGC.js} +8 -2
- package/dist/{chunk-R76UJOY2.js.map → chunk-7OGNFVGC.js.map} +1 -1
- package/dist/{chunk-T2KVPIIB.js → chunk-M3AV2YUV.js} +2 -2
- package/dist/{chunk-G4UCVIML.js → chunk-X66RDDSB.js} +3 -3
- package/dist/{foundation-models-embedding-model-strategy-4OZUE2OH.js → foundation-models-embedding-model-strategy-GXJRGM4X.js} +4 -4
- package/dist/{foundation-models-language-model-strategy-JSJHJYMR.js → foundation-models-language-model-strategy-FGUGQPBL.js} +4 -4
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{orchestration-embedding-model-strategy-FE2QESSS.js → orchestration-embedding-model-strategy-663QYZL7.js} +4 -4
- package/dist/{orchestration-language-model-strategy-WEN7CMOV.js → orchestration-language-model-strategy-X3LKHORW.js} +4 -4
- package/package.json +11 -11
- /package/dist/{chunk-ZUDOGUGK.js.map → chunk-6BVUDEKZ.js.map} +0 -0
- /package/dist/{chunk-T2KVPIIB.js.map → chunk-M3AV2YUV.js.map} +0 -0
- /package/dist/{chunk-G4UCVIML.js.map → chunk-X66RDDSB.js.map} +0 -0
- /package/dist/{foundation-models-embedding-model-strategy-4OZUE2OH.js.map → foundation-models-embedding-model-strategy-GXJRGM4X.js.map} +0 -0
- /package/dist/{foundation-models-language-model-strategy-JSJHJYMR.js.map → foundation-models-language-model-strategy-FGUGQPBL.js.map} +0 -0
- /package/dist/{orchestration-embedding-model-strategy-FE2QESSS.js.map → orchestration-embedding-model-strategy-663QYZL7.js.map} +0 -0
- /package/dist/{orchestration-language-model-strategy-WEN7CMOV.js.map → orchestration-language-model-strategy-X3LKHORW.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
sapAILanguageModelProviderOptions,
|
|
17
17
|
validateEmbeddingModelParamsSettings,
|
|
18
18
|
validateModelParamsSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7OGNFVGC.js";
|
|
20
20
|
|
|
21
21
|
// src/sap-ai-adapters-v3-to-v2.ts
|
|
22
22
|
function convertFinishReasonToV2(internalFinishReason) {
|
|
@@ -249,21 +249,21 @@ function getOrCreateLanguageModelStrategy(api) {
|
|
|
249
249
|
async function createEmbeddingModelStrategy(api) {
|
|
250
250
|
if (api === "foundation-models") {
|
|
251
251
|
const { AzureOpenAiEmbeddingClient } = await import("@sap-ai-sdk/foundation-models");
|
|
252
|
-
const { FoundationModelsEmbeddingModelStrategy } = await import("./foundation-models-embedding-model-strategy-
|
|
252
|
+
const { FoundationModelsEmbeddingModelStrategy } = await import("./foundation-models-embedding-model-strategy-GXJRGM4X.js");
|
|
253
253
|
return new FoundationModelsEmbeddingModelStrategy(AzureOpenAiEmbeddingClient);
|
|
254
254
|
}
|
|
255
255
|
const { OrchestrationEmbeddingClient: OrchestrationEmbeddingClient2 } = await import("@sap-ai-sdk/orchestration");
|
|
256
|
-
const { OrchestrationEmbeddingModelStrategy } = await import("./orchestration-embedding-model-strategy-
|
|
256
|
+
const { OrchestrationEmbeddingModelStrategy } = await import("./orchestration-embedding-model-strategy-663QYZL7.js");
|
|
257
257
|
return new OrchestrationEmbeddingModelStrategy(OrchestrationEmbeddingClient2);
|
|
258
258
|
}
|
|
259
259
|
async function createLanguageModelStrategy(api) {
|
|
260
260
|
if (api === "foundation-models") {
|
|
261
261
|
const { AzureOpenAiChatClient } = await import("@sap-ai-sdk/foundation-models");
|
|
262
|
-
const { FoundationModelsLanguageModelStrategy } = await import("./foundation-models-language-model-strategy-
|
|
262
|
+
const { FoundationModelsLanguageModelStrategy } = await import("./foundation-models-language-model-strategy-FGUGQPBL.js");
|
|
263
263
|
return new FoundationModelsLanguageModelStrategy(AzureOpenAiChatClient);
|
|
264
264
|
}
|
|
265
265
|
const { OrchestrationClient: OrchestrationClient2 } = await import("@sap-ai-sdk/orchestration");
|
|
266
|
-
const { OrchestrationLanguageModelStrategy } = await import("./orchestration-language-model-strategy-
|
|
266
|
+
const { OrchestrationLanguageModelStrategy } = await import("./orchestration-language-model-strategy-X3LKHORW.js");
|
|
267
267
|
return new OrchestrationLanguageModelStrategy(OrchestrationClient2);
|
|
268
268
|
}
|
|
269
269
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseEmbeddingModelStrategy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X66RDDSB.js";
|
|
5
5
|
import {
|
|
6
6
|
hasKeys,
|
|
7
7
|
normalizeEmbedding
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-M3AV2YUV.js";
|
|
9
|
+
import "./chunk-7OGNFVGC.js";
|
|
10
10
|
|
|
11
11
|
// src/orchestration-embedding-model-strategy.ts
|
|
12
12
|
var OrchestrationEmbeddingModelStrategy = class extends BaseEmbeddingModelStrategy {
|
|
@@ -52,4 +52,4 @@ var OrchestrationEmbeddingModelStrategy = class extends BaseEmbeddingModelStrate
|
|
|
52
52
|
export {
|
|
53
53
|
OrchestrationEmbeddingModelStrategy
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=orchestration-embedding-model-strategy-
|
|
55
|
+
//# sourceMappingURL=orchestration-embedding-model-strategy-663QYZL7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseLanguageModelStrategy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6BVUDEKZ.js";
|
|
5
5
|
import {
|
|
6
6
|
convertToSAPMessages
|
|
7
7
|
} from "./chunk-IIBSUXGT.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
convertToolsToSAPFormat,
|
|
12
12
|
hasKeys,
|
|
13
13
|
mapToolChoice
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M3AV2YUV.js";
|
|
15
15
|
import {
|
|
16
16
|
deepMerge,
|
|
17
17
|
getProviderName,
|
|
18
18
|
normalizeHeaders,
|
|
19
19
|
orchestrationConfigRefSchema,
|
|
20
20
|
sapAILanguageModelProviderOptions
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7OGNFVGC.js";
|
|
22
22
|
|
|
23
23
|
// src/orchestration-language-model-strategy.ts
|
|
24
24
|
import { parseProviderOptions } from "@ai-sdk/provider-utils";
|
|
@@ -505,4 +505,4 @@ var OrchestrationLanguageModelStrategy = class extends BaseLanguageModelStrategy
|
|
|
505
505
|
export {
|
|
506
506
|
OrchestrationLanguageModelStrategy
|
|
507
507
|
};
|
|
508
|
-
//# sourceMappingURL=orchestration-language-model-strategy-
|
|
508
|
+
//# sourceMappingURL=orchestration-language-model-strategy-X3LKHORW.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jerome-benoit/sap-ai-provider-v2",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "SAP AI Provider for Vercel AI SDK (LanguageModelV2/EmbeddingModelV2 interfaces)",
|
|
6
6
|
"keywords": [
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@ai-sdk/provider": "^3.0.8",
|
|
86
|
-
"@ai-sdk/provider-utils": "^4.0.
|
|
86
|
+
"@ai-sdk/provider-utils": "^4.0.23",
|
|
87
87
|
"@sap-ai-sdk/foundation-models": "^2.9.0",
|
|
88
88
|
"@sap-ai-sdk/orchestration": "^2.9.0",
|
|
89
89
|
"zod": "^4.3.6"
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@edge-runtime/vm": "^5.0.0",
|
|
93
93
|
"@eslint/js": "^10.0.1",
|
|
94
|
-
"@types/node": "^25.5.
|
|
95
|
-
"@vitest/coverage-v8": "^4.1.
|
|
96
|
-
"dotenv": "^17.
|
|
97
|
-
"eslint": "^10.
|
|
98
|
-
"eslint-plugin-jsdoc": "^62.
|
|
99
|
-
"eslint-plugin-perfectionist": "^5.
|
|
94
|
+
"@types/node": "^25.5.2",
|
|
95
|
+
"@vitest/coverage-v8": "^4.1.3",
|
|
96
|
+
"dotenv": "^17.4.1",
|
|
97
|
+
"eslint": "^10.2.0",
|
|
98
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
99
|
+
"eslint-plugin-perfectionist": "^5.8.0",
|
|
100
100
|
"globals": "^17.4.0",
|
|
101
101
|
"markdown-link-check": "^3.14.2",
|
|
102
102
|
"markdownlint-cli2": "^0.22.0",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
"prettier": "^3.8.1",
|
|
105
105
|
"tsup": "^8.5.1",
|
|
106
106
|
"tsx": "^4.21.0",
|
|
107
|
-
"typescript": "^
|
|
108
|
-
"typescript-eslint": "^8.
|
|
109
|
-
"vitest": "^4.1.
|
|
107
|
+
"typescript": "^6.0.2",
|
|
108
|
+
"typescript-eslint": "^8.58.0",
|
|
109
|
+
"vitest": "^4.1.3"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
112
|
"ai": "^5.0.0 || ^6.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|