@jerome-benoit/sap-ai-provider 4.4.17 → 4.4.18
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-43B7TGUQ.js → chunk-3M6NFVCS.js} +3 -3
- package/dist/{chunk-OOIFG33A.js → chunk-4CAVT2YC.js} +2 -2
- package/dist/{chunk-YPD3UZCL.js → chunk-BBWFNLML.js} +3 -3
- package/dist/{chunk-MNXW5WBP.js → chunk-O6ASHXPO.js} +20 -20
- package/dist/{chunk-MNXW5WBP.js.map → chunk-O6ASHXPO.js.map} +1 -1
- package/dist/{foundation-models-embedding-model-strategy-FYYPJCZ3.js → foundation-models-embedding-model-strategy-XJV5REFR.js} +4 -4
- package/dist/{foundation-models-language-model-strategy-QODADI4V.js → foundation-models-language-model-strategy-X6VNJZFG.js} +4 -4
- package/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{orchestration-embedding-model-strategy-RMTIMOLO.js → orchestration-embedding-model-strategy-3GIX5HAR.js} +4 -4
- package/dist/{orchestration-language-model-strategy-FUT3R3MK.js → orchestration-language-model-strategy-GYBTFP2F.js} +4 -4
- package/package.json +1 -1
- /package/dist/{chunk-43B7TGUQ.js.map → chunk-3M6NFVCS.js.map} +0 -0
- /package/dist/{chunk-OOIFG33A.js.map → chunk-4CAVT2YC.js.map} +0 -0
- /package/dist/{chunk-YPD3UZCL.js.map → chunk-BBWFNLML.js.map} +0 -0
- /package/dist/{foundation-models-embedding-model-strategy-FYYPJCZ3.js.map → foundation-models-embedding-model-strategy-XJV5REFR.js.map} +0 -0
- /package/dist/{foundation-models-language-model-strategy-QODADI4V.js.map → foundation-models-language-model-strategy-X6VNJZFG.js.map} +0 -0
- /package/dist/{orchestration-embedding-model-strategy-RMTIMOLO.js.map → orchestration-embedding-model-strategy-3GIX5HAR.js.map} +0 -0
- /package/dist/{orchestration-language-model-strategy-FUT3R3MK.js.map → orchestration-language-model-strategy-GYBTFP2F.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-O6ASHXPO.js";
|
|
20
20
|
|
|
21
21
|
// src/sap-ai-embedding-model.ts
|
|
22
22
|
import { parseProviderOptions } from "@ai-sdk/provider-utils";
|
|
@@ -51,21 +51,21 @@ function getOrCreateLanguageModelStrategy(api) {
|
|
|
51
51
|
async function createEmbeddingModelStrategy(api) {
|
|
52
52
|
if (api === "foundation-models") {
|
|
53
53
|
const { AzureOpenAiEmbeddingClient } = await import("@sap-ai-sdk/foundation-models");
|
|
54
|
-
const { FoundationModelsEmbeddingModelStrategy } = await import("./foundation-models-embedding-model-strategy-
|
|
54
|
+
const { FoundationModelsEmbeddingModelStrategy } = await import("./foundation-models-embedding-model-strategy-XJV5REFR.js");
|
|
55
55
|
return new FoundationModelsEmbeddingModelStrategy(AzureOpenAiEmbeddingClient);
|
|
56
56
|
}
|
|
57
57
|
const { OrchestrationEmbeddingClient: OrchestrationEmbeddingClient2 } = await import("@sap-ai-sdk/orchestration");
|
|
58
|
-
const { OrchestrationEmbeddingModelStrategy } = await import("./orchestration-embedding-model-strategy-
|
|
58
|
+
const { OrchestrationEmbeddingModelStrategy } = await import("./orchestration-embedding-model-strategy-3GIX5HAR.js");
|
|
59
59
|
return new OrchestrationEmbeddingModelStrategy(OrchestrationEmbeddingClient2);
|
|
60
60
|
}
|
|
61
61
|
async function createLanguageModelStrategy(api) {
|
|
62
62
|
if (api === "foundation-models") {
|
|
63
63
|
const { AzureOpenAiChatClient } = await import("@sap-ai-sdk/foundation-models");
|
|
64
|
-
const { FoundationModelsLanguageModelStrategy } = await import("./foundation-models-language-model-strategy-
|
|
64
|
+
const { FoundationModelsLanguageModelStrategy } = await import("./foundation-models-language-model-strategy-X6VNJZFG.js");
|
|
65
65
|
return new FoundationModelsLanguageModelStrategy(AzureOpenAiChatClient);
|
|
66
66
|
}
|
|
67
67
|
const { OrchestrationClient: OrchestrationClient2 } = await import("@sap-ai-sdk/orchestration");
|
|
68
|
-
const { OrchestrationLanguageModelStrategy } = await import("./orchestration-language-model-strategy-
|
|
68
|
+
const { OrchestrationLanguageModelStrategy } = await import("./orchestration-language-model-strategy-GYBTFP2F.js");
|
|
69
69
|
return new OrchestrationLanguageModelStrategy(OrchestrationClient2);
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -1,14 +1,14 @@
|
|
|
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-BBWFNLML.js";
|
|
5
5
|
import {
|
|
6
6
|
hasKeys,
|
|
7
7
|
normalizeEmbedding
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4CAVT2YC.js";
|
|
9
9
|
import {
|
|
10
10
|
deepMerge
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O6ASHXPO.js";
|
|
12
12
|
|
|
13
13
|
// src/orchestration-embedding-model-strategy.ts
|
|
14
14
|
var OrchestrationEmbeddingModelStrategy = class extends BaseEmbeddingModelStrategy {
|
|
@@ -57,4 +57,4 @@ var OrchestrationEmbeddingModelStrategy = class extends BaseEmbeddingModelStrate
|
|
|
57
57
|
export {
|
|
58
58
|
OrchestrationEmbeddingModelStrategy
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=orchestration-embedding-model-strategy-
|
|
60
|
+
//# sourceMappingURL=orchestration-embedding-model-strategy-3GIX5HAR.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-3M6NFVCS.js";
|
|
5
5
|
import {
|
|
6
6
|
convertToSAPMessages
|
|
7
7
|
} from "./chunk-SD6CRCHX.js";
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
convertToolsToSAPFormat,
|
|
12
12
|
hasKeys,
|
|
13
13
|
mapToolChoice
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4CAVT2YC.js";
|
|
15
15
|
import {
|
|
16
16
|
deepMerge,
|
|
17
17
|
getProviderName,
|
|
18
18
|
orchestrationConfigRefSchema,
|
|
19
19
|
sapAILanguageModelProviderOptions
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-O6ASHXPO.js";
|
|
21
21
|
|
|
22
22
|
// src/orchestration-language-model-strategy.ts
|
|
23
23
|
import { parseProviderOptions } from "@ai-sdk/provider-utils";
|
|
@@ -488,4 +488,4 @@ var OrchestrationLanguageModelStrategy = class extends BaseLanguageModelStrategy
|
|
|
488
488
|
export {
|
|
489
489
|
OrchestrationLanguageModelStrategy
|
|
490
490
|
};
|
|
491
|
-
//# sourceMappingURL=orchestration-language-model-strategy-
|
|
491
|
+
//# sourceMappingURL=orchestration-language-model-strategy-GYBTFP2F.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|