@sap-ai-sdk/foundation-models 1.2.1-20241111013114.0 → 1.2.1-20241113013102.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.
- package/README.md +10 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -28,12 +28,16 @@ $ npm install @sap-ai-sdk/foundation-models
|
|
|
28
28
|
## Prerequisites
|
|
29
29
|
|
|
30
30
|
- [Enable the AI Core service in SAP BTP](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/initial-setup).
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
- Use the [`DeploymentApi`](https://github.com/SAP/ai-sdk-js/blob/main/packages/ai-api/README.md#create-a-deployment) from `@sap-ai-sdk/ai-api` to deploy a model
|
|
34
|
-
|
|
35
|
-
Deployment can be set up for each model and model version, as well as a resource group
|
|
36
|
-
- Once a deployment is complete, the model
|
|
31
|
+
- Configure the project with **Node.js v20 or higher** and **native ESM** support.
|
|
32
|
+
- Ensure a deployed OpenAI model is available in the SAP Generative AI Hub.
|
|
33
|
+
- Use the [`DeploymentApi`](https://github.com/SAP/ai-sdk-js/blob/main/packages/ai-api/README.md#create-a-deployment) from `@sap-ai-sdk/ai-api` [to deploy a model](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-deployment-for-generative-ai-model-in-sap-ai-core).
|
|
34
|
+
Alternatively, you can also create deployments using the [SAP AI Launchpad](https://help.sap.com/docs/sap-ai-core/generative-ai-hub/activate-generative-ai-hub-for-sap-ai-launchpad?locale=en-US&q=launchpad).
|
|
35
|
+
Deployment can be set up for each model and model version, as well as a resource group.
|
|
36
|
+
- Once a deployment is complete, access the model via the `deploymentUrl`.
|
|
37
|
+
|
|
38
|
+
> **Accessing the AI Core Service via the SDK**:
|
|
39
|
+
> The SDK automatically retrieves the `AI Core` service credentials from the `VCAP_SERVICES` environment variable and resolves the access token needed for authentication.
|
|
40
|
+
> All subsequent client requests are routed to this service endpoint.
|
|
37
41
|
|
|
38
42
|
## Relationship between Models and Deployment ID
|
|
39
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ai-sdk/foundation-models",
|
|
3
|
-
"version": "1.2.1-
|
|
3
|
+
"version": "1.2.1-20241113013102.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@sap-cloud-sdk/http-client": "^3.22.2",
|
|
24
24
|
"@sap-cloud-sdk/util": "^3.22.2",
|
|
25
|
-
"@sap-ai-sdk/ai-api": "^1.2.1-
|
|
26
|
-
"@sap-ai-sdk/core": "^1.2.1-
|
|
25
|
+
"@sap-ai-sdk/ai-api": "^1.2.1-20241113013102.0",
|
|
26
|
+
"@sap-ai-sdk/core": "^1.2.1-20241113013102.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"compile": "tsc",
|