@sap-ai-sdk/foundation-models 1.2.1-20241110013101.0 → 1.2.1-20241112013051.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 (2) hide show
  1. package/README.md +10 -6
  2. 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
- - Project configured with Node.js v20 or higher and native ESM support enabled.
32
- - A deployed OpenAI model in 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 to SAP generative AI hub.
34
- For more information, see [here](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-deployment-for-generative-ai-model-in-sap-ai-core).
35
- Deployment can be set up for each model and model version, as well as a resource group intended for use with the generative AI hub.
36
- - Once a deployment is complete, the model can be accessed via the `deploymentUrl`.
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-20241110013101.0",
3
+ "version": "1.2.1-20241112013051.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-20241110013101.0",
26
- "@sap-ai-sdk/core": "^1.2.1-20241110013101.0"
25
+ "@sap-ai-sdk/ai-api": "^1.2.1-20241112013051.0",
26
+ "@sap-ai-sdk/core": "^1.2.1-20241112013051.0"
27
27
  },
28
28
  "scripts": {
29
29
  "compile": "tsc",