@jerome-benoit/sap-ai-provider 4.4.11 → 4.4.12-rc.0

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 (19) hide show
  1. package/README.md +27 -1
  2. package/dist/{chunk-MS24Z5GC.js → chunk-RME6BAG3.js} +2 -2
  3. package/dist/{chunk-MS24Z5GC.js.map → chunk-RME6BAG3.js.map} +1 -1
  4. package/dist/{chunk-MAA5SA36.js → chunk-U6BI6KG3.js} +3 -3
  5. package/dist/{chunk-ZSLBPQMF.js → chunk-VVMW5IN3.js} +2 -2
  6. package/dist/{foundation-models-embedding-model-strategy-5OBV2NXK.js → foundation-models-embedding-model-strategy-5L74P57K.js} +3 -3
  7. package/dist/{foundation-models-language-model-strategy-NZIOTQMU.js → foundation-models-language-model-strategy-EDYAIXRR.js} +4 -4
  8. package/dist/index.cjs +1 -1
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.js +5 -5
  11. package/dist/{orchestration-embedding-model-strategy-V7VRMOKK.js → orchestration-embedding-model-strategy-4RY4AJLY.js} +3 -3
  12. package/dist/{orchestration-language-model-strategy-B2KKMHLT.js → orchestration-language-model-strategy-SB2INI7D.js} +4 -4
  13. package/package.json +21 -17
  14. /package/dist/{chunk-MAA5SA36.js.map → chunk-U6BI6KG3.js.map} +0 -0
  15. /package/dist/{chunk-ZSLBPQMF.js.map → chunk-VVMW5IN3.js.map} +0 -0
  16. /package/dist/{foundation-models-embedding-model-strategy-5OBV2NXK.js.map → foundation-models-embedding-model-strategy-5L74P57K.js.map} +0 -0
  17. /package/dist/{foundation-models-language-model-strategy-NZIOTQMU.js.map → foundation-models-language-model-strategy-EDYAIXRR.js.map} +0 -0
  18. /package/dist/{orchestration-embedding-model-strategy-V7VRMOKK.js.map → orchestration-embedding-model-strategy-4RY4AJLY.js.map} +0 -0
  19. /package/dist/{orchestration-language-model-strategy-B2KKMHLT.js.map → orchestration-language-model-strategy-SB2INI7D.js.map} +0 -0
package/README.md CHANGED
@@ -19,6 +19,7 @@ SAP's enterprise-grade AI models through the familiar Vercel AI SDK interface.
19
19
  - [Installation](#installation)
20
20
  - [Provider Creation](#provider-creation)
21
21
  - [Option 1: Factory Function (Recommended for Custom Configuration)](#option-1-factory-function-recommended-for-custom-configuration)
22
+ - [API Selection](#api-selection)
22
23
  - [Option 2: Default Instance (Quick Start)](#option-2-default-instance-quick-start)
23
24
  - [Authentication](#authentication)
24
25
  - [Basic Usage](#basic-usage)
@@ -129,7 +130,7 @@ try {
129
130
 
130
131
  ## Installation
131
132
 
132
- **Requirements:** Node.js 20+ and Vercel AI SDK 5.0+ or 6.0+
133
+ **Requirements:** Node.js 20+ and Vercel AI SDK 5.0+ (6.0+ recommended)
133
134
 
134
135
  ```bash
135
136
  npm install @jerome-benoit/sap-ai-provider ai
@@ -145,6 +146,31 @@ yarn add @jerome-benoit/sap-ai-provider ai
145
146
  pnpm add @jerome-benoit/sap-ai-provider ai
146
147
  ```
147
148
 
149
+ > **V2 Facade Package Available:** For users requiring `LanguageModelV2`/`EmbeddingModelV2` interfaces, install the dedicated V2 facade package:
150
+ >
151
+ > ```bash
152
+ > npm install @jerome-benoit/sap-ai-provider-v2 ai
153
+ > ```
154
+ >
155
+ > This package provides a V2-compatible facade over the internal V3 implementation.
156
+ >
157
+ > Basic Usage Example:
158
+ >
159
+ > ```typescript
160
+ > import { createSAPAIProvider } from "@jerome-benoit/sap-ai-provider-v2";
161
+ > import { generateText } from "ai";
162
+ >
163
+ > const provider = createSAPAIProvider();
164
+ > const result = await generateText({
165
+ > model: provider("gpt-4.1"),
166
+ > prompt: "Hello V2!",
167
+ > });
168
+ > console.log(result.text);
169
+ > ```
170
+ >
171
+ > For a detailed understanding of the dual-package architecture, refer to
172
+ > [Architecture - Dual-Package](./ARCHITECTURE.md#dual-package-architecture-v3--v2).
173
+
148
174
  ## Provider Creation
149
175
 
150
176
  You can create an SAP AI provider in two ways:
@@ -30430,7 +30430,7 @@ function tryExtractSAPErrorFromMessage(message) {
30430
30430
  }
30431
30431
 
30432
30432
  // src/version.ts
30433
- var VERSION = true ? "4.4.11" : "0.0.0-test";
30433
+ var VERSION = true ? "4.4.12-rc.0" : "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-MS24Z5GC.js.map
30486
+ //# sourceMappingURL=chunk-RME6BAG3.js.map