Skip to content

Commit b179351

Browse files
authored
Merge pull request #23872 from TillK17/master
Minor Fixes for new AI Core Orchestration Tutorial for Java
2 parents 040d60d + fedbe99 commit b179351

1 file changed

Lines changed: 27 additions & 26 deletions

File tree

tutorials/ai-core-orchestration-consumption/ai-core-orchestration-consumption.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ author_profile: https://github.com/I321506
6666

6767
• SAP Cloud SDK for AI: Uses the `dotenv` library to load environment variables. If you encounter issues with the dotenv library, ensure it is installed correctly by running:
6868

69-
```CODE
70-
npm install dotenv
71-
```
69+
```CODE
70+
npm install dotenv
71+
```
7272

7373
```CODE
7474
import dotenv from 'dotenv';
@@ -89,11 +89,29 @@ console.log(process.env.AICORE_SERVICE_KEY);
8989

9090
• Create a `.env` file in the **working directory from which you run the code**. Add the following line using the copied JSON:
9191

92-
```txt
93-
AICORE_SERVICE_KEY={"clientid": "...", "clientsecret": "...", "url": "...", "serviceurls": { "AI_API_URL": "..." } }
94-
```
95-
> [!IMPORTANT]
96-
The value of `AICORE_SERVICE_KEY` must be a single line, so remove any line breaks from the service key JSON.
92+
```
93+
AICORE_SERVICE_KEY={"clientid": "...", "clientsecret": "...", "url": "...", "serviceurls": { "AI_API_URL": "..." } }
94+
```
95+
96+
**IMPORTANT:** The value of `AICORE_SERVICE_KEY` must be a single line, so remove any line breaks from the service key JSON.
97+
98+
• This tutorial is designed for a Java [maven project](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html). Add the following dependencies to your project `pom.xml` file:
99+
100+
```xml
101+
<dependency>
102+
<groupId>com.sap.ai.sdk</groupId>
103+
<artifactId>core</artifactId>
104+
<!-- Use the latest version here -->
105+
<version>${ai-sdk.version}</version>
106+
</dependency>
107+
108+
<dependency>
109+
<groupId>com.sap.ai.sdk</groupId>
110+
<artifactId>orchestration</artifactId>
111+
<!-- Use the latest version here -->
112+
<version>${ai-sdk.version}</version>
113+
</dependency>
114+
```
97115

98116
• For other options of access configuration and detailed information on installation and usage of the **SAP Cloud SDK for AI (for Java)**, visit the official [GitHub repository](https://github.com/SAP/ai-sdk-java). This page provides comprehensive steps to set up and integrate the SDK effectively in your projects.
99117

@@ -256,25 +274,8 @@ orchestrationConfig;
256274

257275
[OPTION BEGIN [Java SDK]]
258276

259-
In this step, we will create an orchestration configuration using the core module of the [SAP Cloud SDK for Java](https://github.com/SAP/cloud-sdk-java) in a maven project. This configuration integrates various parameters needed for orchestration, such as the executable ID and scenario ID.
260-
261-
• Add the following dependencies to your `pom.xml` file:
262-
263-
```xml
264-
<dependency>
265-
<groupId>com.sap.ai.sdk</groupId>
266-
<artifactId>core</artifactId>
267-
<!-- Use the latest version here -->
268-
<version>${ai-sdk.version}</version>
269-
</dependency>
277+
In this step, we will create an orchestration configuration using the core module of the [SAP Cloud SDK for Java](https://github.com/SAP/cloud-sdk-java). This configuration integrates various parameters needed for orchestration, such as the executable ID and scenario ID.
270278

271-
<dependency>
272-
<groupId>com.sap.ai.sdk</groupId>
273-
<artifactId>orchestration</artifactId>
274-
<!-- Use the latest version here -->
275-
<version>${ai-sdk.version}</version>
276-
</dependency>
277-
```
278279
• Add the following code to your project to create an orchestration configuration:
279280

280281
```java

0 commit comments

Comments
 (0)