You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make of use the services supported by the SDK, you need to have access to an SAP AI Core Service instance. Checkout [how to connect](link).
49
43
50
-
See [an example `pom.xml` in our Spring Boot application](sample-code/spring-app/pom.xml).
44
+
#### Optional Integrations
45
+
46
+
The SDK can be combined with popular Java frameworks. These are not required for core functionality, but version compatibility is listed for reference:
47
+
48
+
***Spring AI** ≥ 1.0.0
49
+
***Spring Boot** ≥ 3.0
50
+
***CAP Java** ≥ 3.0.0
51
+
52
+
👉 See an [example `pom.xml`](link) in our sample Spring Boot application.
51
53
52
54
> [!WARNING]
53
55
> All classes under any of the `...model` packages are generated from an OpenAPI specification and marked as `@Beta`.
@@ -71,11 +73,12 @@ If you don't have a deployment yet, please refer to [this guide](https://help.sa
71
73
Add the following dependency to your `pom.xml` file:
72
74
73
75
```xml
76
+
74
77
<dependency>
75
-
<groupId>com.sap.ai.sdk</groupId>
76
-
<artifactId>orchestration</artifactId>
77
-
<!-- Use the latest version here -->
78
-
<version>${ai-sdk.version}</version>
78
+
<groupId>com.sap.ai.sdk</groupId>
79
+
<artifactId>orchestration</artifactId>
80
+
<!-- Use the latest version here -->
81
+
<version>${ai-sdk.version}</version>
79
82
</dependency>
80
83
```
81
84
@@ -91,7 +94,7 @@ Next, we'll specify the model we want to use:
91
94
92
95
```java
93
96
var config =newOrchestrationModuleConfig()
94
-
.withLlmConfig(OrchestrationAiModel.GPT_4O);
97
+
.withLlmConfig(OrchestrationAiModel.GPT_4O);
95
98
```
96
99
97
100
Now we can create our first prompt:
@@ -169,7 +172,10 @@ var destination =
169
172
.build();
170
173
171
174
// AI Core client
172
-
service = service.withBaseDestination(destination);
175
+
service =service.
176
+
177
+
withBaseDestination(destination);
178
+
173
179
DeploymentApi client =newDeploymentApi(service);
174
180
```
175
181
@@ -191,7 +197,6 @@ This is a known false-positive finding.
191
197
Depending on the tooling any product called "SAP Cloud SDK" or similar with a low version number may be marked as vulnerable, incorrectly.
192
198
Please consider suppressing the warning, [as we do](https://github.com/SAP/ai-sdk-java/blob/main/.pipeline/dependency-check-suppression.xml).
193
199
194
-
195
200
### _"Are there any example projects?"_
196
201
197
202
Explore example applications and code snippets:
@@ -201,20 +206,20 @@ Explore example applications and code snippets:
201
206
## Contribute, Support and Feedback
202
207
203
208
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/ai-sdk-java/issues).
204
-
Contribution and feedback are encouraged and always welcome.
209
+
Contribution and feedback are encouraged and always welcome.
205
210
For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
206
211
207
212
## Security / Disclosure
208
213
209
-
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/SAP/ai-sdk-java/security/policy) on how to report it.
214
+
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/SAP/ai-sdk-java/security/policy) on how to report it.
210
215
Please do not create GitHub issues for security-related doubts or problems.
211
216
212
217
## Code of Conduct
213
218
214
-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone.
219
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone.
215
220
By participating in this project, you agree to abide by its [Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md) at all times.
216
221
217
222
## Licensing
218
223
219
-
Copyright 2024 SAP SE or an SAP affiliate company and ai-sdk-java contributors. Please see our [LICENSE](LICENSE) for copyright and license information.
224
+
Copyright 2024 SAP SE or an SAP affiliate company and ai-sdk-java contributors. Please see our [LICENSE](LICENSE) for copyright and license information.
220
225
Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/ai-sdk-java).
0 commit comments