@jerome-benoit/sap-ai-provider 4.6.5 → 4.6.7

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.
Files changed (24) hide show
  1. package/dist/{chunk-IW3HT2O2.js → chunk-G4UCVIML.js} +3 -3
  2. package/dist/{chunk-DVRCVX3D.js → chunk-R76UJOY2.js} +2 -22
  3. package/dist/{chunk-DVRCVX3D.js.map → chunk-R76UJOY2.js.map} +1 -1
  4. package/dist/{chunk-MUVZG52Z.js → chunk-T2KVPIIB.js} +2 -2
  5. package/dist/{chunk-RIDFTJHB.js → chunk-ZUDOGUGK.js} +3 -48
  6. package/dist/chunk-ZUDOGUGK.js.map +1 -0
  7. package/dist/{foundation-models-embedding-model-strategy-LVCLPX77.js → foundation-models-embedding-model-strategy-4OZUE2OH.js} +4 -4
  8. package/dist/{foundation-models-language-model-strategy-PZMQYE3T.js → foundation-models-language-model-strategy-JSJHJYMR.js} +4 -4
  9. package/dist/index.cjs +2 -65
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +0 -6
  12. package/dist/index.d.ts +0 -6
  13. package/dist/index.js +5 -5
  14. package/dist/index.js.map +1 -1
  15. package/dist/{orchestration-embedding-model-strategy-SJ6AR4CA.js → orchestration-embedding-model-strategy-FE2QESSS.js} +4 -4
  16. package/dist/{orchestration-language-model-strategy-B36B6QYQ.js → orchestration-language-model-strategy-WEN7CMOV.js} +4 -4
  17. package/package.json +1 -1
  18. package/dist/chunk-RIDFTJHB.js.map +0 -1
  19. /package/dist/{chunk-IW3HT2O2.js.map → chunk-G4UCVIML.js.map} +0 -0
  20. /package/dist/{chunk-MUVZG52Z.js.map → chunk-T2KVPIIB.js.map} +0 -0
  21. /package/dist/{foundation-models-embedding-model-strategy-LVCLPX77.js.map → foundation-models-embedding-model-strategy-4OZUE2OH.js.map} +0 -0
  22. /package/dist/{foundation-models-language-model-strategy-PZMQYE3T.js.map → foundation-models-language-model-strategy-JSJHJYMR.js.map} +0 -0
  23. /package/dist/{orchestration-embedding-model-strategy-SJ6AR4CA.js.map → orchestration-embedding-model-strategy-FE2QESSS.js.map} +0 -0
  24. /package/dist/{orchestration-language-model-strategy-B36B6QYQ.js.map → orchestration-language-model-strategy-WEN7CMOV.js.map} +0 -0
@@ -2,12 +2,12 @@ import {createRequire as __createRequire} from 'module';var require=__createRequ
2
2
  import {
3
3
  buildEmbeddingResult,
4
4
  prepareEmbeddingCall
5
- } from "./chunk-MUVZG52Z.js";
5
+ } from "./chunk-T2KVPIIB.js";
6
6
  import {
7
7
  VERSION,
8
8
  convertToAISDKError,
9
9
  deepMerge
10
- } from "./chunk-DVRCVX3D.js";
10
+ } from "./chunk-R76UJOY2.js";
11
11
 
12
12
  // src/base-embedding-model-strategy.ts
13
13
  var BaseEmbeddingModelStrategy = class {
@@ -58,4 +58,4 @@ var BaseEmbeddingModelStrategy = class {
58
58
  export {
59
59
  BaseEmbeddingModelStrategy
60
60
  };
61
- //# sourceMappingURL=chunk-IW3HT2O2.js.map
61
+ //# sourceMappingURL=chunk-G4UCVIML.js.map
@@ -30193,14 +30193,6 @@ See: https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-depl
30193
30193
  context
30194
30194
  );
30195
30195
  }
30196
- var PREFILL_ERROR_KEYWORDS = [
30197
- "does not support assistant message prefill",
30198
- "conversation must end with a user message"
30199
- ];
30200
- function isPrefillError(error) {
30201
- const message = extractSAPErrorMessage(error)?.toLowerCase();
30202
- return message !== void 0 && PREFILL_ERROR_KEYWORDS.some((kw) => message.includes(kw));
30203
- }
30204
30196
  function normalizeHeaders(headers) {
30205
30197
  if (!headers || typeof headers !== "object") return void 0;
30206
30198
  const record = headers;
@@ -30276,17 +30268,6 @@ function extractModelIdentifier(message, location) {
30276
30268
  }
30277
30269
  return void 0;
30278
30270
  }
30279
- function extractSAPErrorMessage(error) {
30280
- const errorResponse = findStructuredErrorResponse(error);
30281
- if (errorResponse) {
30282
- return extractErrorFields(errorResponse).message;
30283
- }
30284
- const rootError = getRootError(error);
30285
- if (rootError instanceof Error) {
30286
- return rootError.message;
30287
- }
30288
- return typeof rootError === "string" ? rootError : void 0;
30289
- }
30290
30271
  function findStructuredErrorResponse(error) {
30291
30272
  const rootError = getRootError(error);
30292
30273
  if (isStructuredErrorResponse(rootError)) {
@@ -30415,7 +30396,7 @@ function tryExtractSAPErrorFromMessage(message) {
30415
30396
  }
30416
30397
 
30417
30398
  // src/version.ts
30418
- var VERSION = true ? "4.6.5" : "0.0.0-test";
30399
+ var VERSION = true ? "4.6.7" : "0.0.0-test";
30419
30400
 
30420
30401
  export {
30421
30402
  __toESM,
@@ -30432,7 +30413,6 @@ export {
30432
30413
  ApiSwitchError,
30433
30414
  UnsupportedFeatureError,
30434
30415
  convertToAISDKError,
30435
- isPrefillError,
30436
30416
  normalizeHeaders,
30437
30417
  VERSION
30438
30418
  };
@@ -30469,4 +30449,4 @@ mime-types/index.js:
30469
30449
  axios/dist/node/axios.cjs:
30470
30450
  (*! Axios v1.14.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
30471
30451
  */
30472
- //# sourceMappingURL=chunk-DVRCVX3D.js.map
30452
+ //# sourceMappingURL=chunk-R76UJOY2.js.map