@jerome-benoit/sap-ai-provider 4.4.12 → 4.4.13
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-DSKMFLFE.js → chunk-4RLJMCGI.js} +3 -3
- package/dist/{chunk-V6CDF624.js → chunk-MKUXFPS7.js} +2 -2
- package/dist/{chunk-YROP2PPZ.js → chunk-SXSMDAP6.js} +2 -2
- package/dist/{foundation-models-embedding-model-strategy-4VOC2JHJ.js → foundation-models-embedding-model-strategy-IF3H7JNX.js} +3 -3
- package/dist/{foundation-models-language-model-strategy-2Y7BCOCU.js → foundation-models-language-model-strategy-GSYPB62S.js} +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/dist/{orchestration-embedding-model-strategy-P27ZDK62.js → orchestration-embedding-model-strategy-5AQ2SF34.js} +3 -3
- package/dist/{orchestration-language-model-strategy-2CWJSR42.js → orchestration-language-model-strategy-67RHLNTE.js} +4 -4
- package/package.json +2 -2
- /package/dist/{chunk-DSKMFLFE.js.map → chunk-4RLJMCGI.js.map} +0 -0
- /package/dist/{chunk-V6CDF624.js.map → chunk-MKUXFPS7.js.map} +0 -0
- /package/dist/{chunk-YROP2PPZ.js.map → chunk-SXSMDAP6.js.map} +0 -0
- /package/dist/{foundation-models-embedding-model-strategy-4VOC2JHJ.js.map → foundation-models-embedding-model-strategy-IF3H7JNX.js.map} +0 -0
- /package/dist/{foundation-models-language-model-strategy-2Y7BCOCU.js.map → foundation-models-language-model-strategy-GSYPB62S.js.map} +0 -0
- /package/dist/{orchestration-embedding-model-strategy-P27ZDK62.js.map → orchestration-embedding-model-strategy-5AQ2SF34.js.map} +0 -0
- /package/dist/{orchestration-language-model-strategy-2CWJSR42.js.map → orchestration-language-model-strategy-67RHLNTE.js.map} +0 -0
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
createAISDKRequestBodySummary,
|
|
9
9
|
createStreamTransformer,
|
|
10
10
|
mapToolChoice
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SXSMDAP6.js";
|
|
12
12
|
import {
|
|
13
13
|
VERSION,
|
|
14
14
|
convertToAISDKError,
|
|
15
15
|
getProviderName,
|
|
16
16
|
normalizeHeaders,
|
|
17
17
|
sapAILanguageModelProviderOptions
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MKUXFPS7.js";
|
|
19
19
|
|
|
20
20
|
// src/base-language-model-strategy.ts
|
|
21
21
|
import { parseProviderOptions } from "@ai-sdk/provider-utils";
|
|
@@ -180,4 +180,4 @@ var BaseLanguageModelStrategy = class {
|
|
|
180
180
|
export {
|
|
181
181
|
BaseLanguageModelStrategy
|
|
182
182
|
};
|
|
183
|
-
//# sourceMappingURL=chunk-
|
|
183
|
+
//# sourceMappingURL=chunk-4RLJMCGI.js.map
|
|
@@ -30430,7 +30430,7 @@ function tryExtractSAPErrorFromMessage(message) {
|
|
|
30430
30430
|
}
|
|
30431
30431
|
|
|
30432
30432
|
// src/version.ts
|
|
30433
|
-
var VERSION = true ? "4.4.
|
|
30433
|
+
var VERSION = true ? "4.4.13" : "0.0.0-test";
|
|
30434
30434
|
|
|
30435
30435
|
export {
|
|
30436
30436
|
__toESM,
|
|
@@ -30483,4 +30483,4 @@ mime-types/index.js:
|
|
|
30483
30483
|
axios/dist/node/axios.cjs:
|
|
30484
30484
|
(*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
30485
30485
|
*/
|
|
30486
|
-
//# sourceMappingURL=chunk-
|
|
30486
|
+
//# sourceMappingURL=chunk-MKUXFPS7.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getProviderName,
|
|
4
4
|
sapAIEmbeddingProviderOptions,
|
|
5
5
|
validateModelParamsWithWarnings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MKUXFPS7.js";
|
|
7
7
|
|
|
8
8
|
// src/strategy-utils.ts
|
|
9
9
|
import { TooManyEmbeddingValuesForCallError } from "@ai-sdk/provider";
|
|
@@ -632,4 +632,4 @@ export {
|
|
|
632
632
|
normalizeEmbedding,
|
|
633
633
|
prepareEmbeddingCall
|
|
634
634
|
};
|
|
635
|
-
//# sourceMappingURL=chunk-
|
|
635
|
+
//# sourceMappingURL=chunk-SXSMDAP6.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
hasKeys,
|
|
5
5
|
normalizeEmbedding,
|
|
6
6
|
prepareEmbeddingCall
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SXSMDAP6.js";
|
|
8
8
|
import {
|
|
9
9
|
VERSION,
|
|
10
10
|
convertToAISDKError,
|
|
11
11
|
deepMerge
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MKUXFPS7.js";
|
|
13
13
|
|
|
14
14
|
// src/foundation-models-embedding-model-strategy.ts
|
|
15
15
|
var FoundationModelsEmbeddingModelStrategy = class {
|
|
@@ -65,4 +65,4 @@ var FoundationModelsEmbeddingModelStrategy = class {
|
|
|
65
65
|
export {
|
|
66
66
|
FoundationModelsEmbeddingModelStrategy
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=foundation-models-embedding-model-strategy-
|
|
68
|
+
//# sourceMappingURL=foundation-models-embedding-model-strategy-IF3H7JNX.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseLanguageModelStrategy
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4RLJMCGI.js";
|
|
4
4
|
import "./chunk-47JZKXQO.js";
|
|
5
5
|
import {
|
|
6
6
|
buildModelDeployment,
|
|
7
7
|
convertResponseFormat,
|
|
8
8
|
convertToolsToSAPFormat
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-SXSMDAP6.js";
|
|
10
|
+
import "./chunk-MKUXFPS7.js";
|
|
11
11
|
|
|
12
12
|
// src/foundation-models-language-model-strategy.ts
|
|
13
13
|
var FOUNDATION_MODELS_PARAM_MAPPINGS = [
|
|
@@ -83,4 +83,4 @@ var FoundationModelsLanguageModelStrategy = class extends BaseLanguageModelStrat
|
|
|
83
83
|
export {
|
|
84
84
|
FoundationModelsLanguageModelStrategy
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=foundation-models-language-model-strategy-
|
|
86
|
+
//# sourceMappingURL=foundation-models-language-model-strategy-GSYPB62S.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -31258,7 +31258,7 @@ var VERSION;
|
|
|
31258
31258
|
var init_version = __esm({
|
|
31259
31259
|
"src/version.ts"() {
|
|
31260
31260
|
"use strict";
|
|
31261
|
-
VERSION = true ? "4.4.
|
|
31261
|
+
VERSION = true ? "4.4.13" : "0.0.0-test";
|
|
31262
31262
|
}
|
|
31263
31263
|
});
|
|
31264
31264
|
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
sapAILanguageModelProviderOptions,
|
|
16
16
|
validateEmbeddingModelParamsSettings,
|
|
17
17
|
validateModelParamsSettings
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MKUXFPS7.js";
|
|
19
19
|
|
|
20
20
|
// src/sap-ai-embedding-model.ts
|
|
21
21
|
import { parseProviderOptions } from "@ai-sdk/provider-utils";
|
|
@@ -50,21 +50,21 @@ function getOrCreateLanguageModelStrategy(api) {
|
|
|
50
50
|
async function createEmbeddingModelStrategy(api) {
|
|
51
51
|
if (api === "foundation-models") {
|
|
52
52
|
const { AzureOpenAiEmbeddingClient } = await import("@sap-ai-sdk/foundation-models");
|
|
53
|
-
const { FoundationModelsEmbeddingModelStrategy } = await import("./foundation-models-embedding-model-strategy-
|
|
53
|
+
const { FoundationModelsEmbeddingModelStrategy } = await import("./foundation-models-embedding-model-strategy-IF3H7JNX.js");
|
|
54
54
|
return new FoundationModelsEmbeddingModelStrategy(AzureOpenAiEmbeddingClient);
|
|
55
55
|
}
|
|
56
56
|
const { OrchestrationEmbeddingClient: OrchestrationEmbeddingClient2 } = await import("@sap-ai-sdk/orchestration");
|
|
57
|
-
const { OrchestrationEmbeddingModelStrategy } = await import("./orchestration-embedding-model-strategy-
|
|
57
|
+
const { OrchestrationEmbeddingModelStrategy } = await import("./orchestration-embedding-model-strategy-5AQ2SF34.js");
|
|
58
58
|
return new OrchestrationEmbeddingModelStrategy(OrchestrationEmbeddingClient2);
|
|
59
59
|
}
|
|
60
60
|
async function createLanguageModelStrategy(api) {
|
|
61
61
|
if (api === "foundation-models") {
|
|
62
62
|
const { AzureOpenAiChatClient } = await import("@sap-ai-sdk/foundation-models");
|
|
63
|
-
const { FoundationModelsLanguageModelStrategy } = await import("./foundation-models-language-model-strategy-
|
|
63
|
+
const { FoundationModelsLanguageModelStrategy } = await import("./foundation-models-language-model-strategy-GSYPB62S.js");
|
|
64
64
|
return new FoundationModelsLanguageModelStrategy(AzureOpenAiChatClient);
|
|
65
65
|
}
|
|
66
66
|
const { OrchestrationClient: OrchestrationClient2 } = await import("@sap-ai-sdk/orchestration");
|
|
67
|
-
const { OrchestrationLanguageModelStrategy } = await import("./orchestration-language-model-strategy-
|
|
67
|
+
const { OrchestrationLanguageModelStrategy } = await import("./orchestration-language-model-strategy-67RHLNTE.js");
|
|
68
68
|
return new OrchestrationLanguageModelStrategy(OrchestrationClient2);
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
hasKeys,
|
|
4
4
|
normalizeEmbedding,
|
|
5
5
|
prepareEmbeddingCall
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SXSMDAP6.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION,
|
|
9
9
|
convertToAISDKError,
|
|
10
10
|
deepMerge
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MKUXFPS7.js";
|
|
12
12
|
|
|
13
13
|
// src/orchestration-embedding-model-strategy.ts
|
|
14
14
|
var OrchestrationEmbeddingModelStrategy = class {
|
|
@@ -75,4 +75,4 @@ var OrchestrationEmbeddingModelStrategy = class {
|
|
|
75
75
|
export {
|
|
76
76
|
OrchestrationEmbeddingModelStrategy
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=orchestration-embedding-model-strategy-
|
|
78
|
+
//# sourceMappingURL=orchestration-embedding-model-strategy-5AQ2SF34.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseLanguageModelStrategy
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4RLJMCGI.js";
|
|
4
4
|
import {
|
|
5
5
|
convertToSAPMessages
|
|
6
6
|
} from "./chunk-47JZKXQO.js";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
convertToolsToSAPFormat,
|
|
11
11
|
hasKeys,
|
|
12
12
|
mapToolChoice
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SXSMDAP6.js";
|
|
14
14
|
import {
|
|
15
15
|
deepMerge,
|
|
16
16
|
getProviderName,
|
|
17
17
|
orchestrationConfigRefSchema,
|
|
18
18
|
sapAILanguageModelProviderOptions
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MKUXFPS7.js";
|
|
20
20
|
|
|
21
21
|
// src/orchestration-language-model-strategy.ts
|
|
22
22
|
import { parseProviderOptions } from "@ai-sdk/provider-utils";
|
|
@@ -487,4 +487,4 @@ var OrchestrationLanguageModelStrategy = class extends BaseLanguageModelStrategy
|
|
|
487
487
|
export {
|
|
488
488
|
OrchestrationLanguageModelStrategy
|
|
489
489
|
};
|
|
490
|
-
//# sourceMappingURL=orchestration-language-model-strategy-
|
|
490
|
+
//# sourceMappingURL=orchestration-language-model-strategy-67RHLNTE.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jerome-benoit/sap-ai-provider",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "SAP AI Provider for Vercel AI SDK (powered by @sap-ai-sdk/orchestration and @sap-ai-sdk/foundation-models)",
|
|
6
6
|
"keywords": [
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"lint:md:links": "find . -name '*.md' -not -path './node_modules/*' -exec markdown-link-check -c .markdown-link-check.json {} \\;",
|
|
64
64
|
"lint:md:toc": "tsx scripts/check-toc.ts",
|
|
65
65
|
"prepare:v2": "tsx scripts/prepare-v2-package.ts",
|
|
66
|
-
"prepublishOnly": "
|
|
66
|
+
"prepublishOnly": "if [ \"$AI_SDK_VERSION\" = \"v2\" ]; then npm run build:v2 && npm run check-build:v2 && npm run prepare:v2; else npm run build && npm run check-build; fi",
|
|
67
67
|
"prettier-check": "prettier --check .",
|
|
68
68
|
"prettier-fix": "prettier --write .",
|
|
69
69
|
"test": "vitest run",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|