Skip to content

Commit 144c53b

Browse files
Merge branch 'main' into orchestration-streaming
2 parents 33a92d5 + 3e596de commit 144c53b

File tree

7 files changed

+53
-23
lines changed

7 files changed

+53
-23
lines changed

.github/workflows/fosstars-report.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,13 @@ jobs:
3131
with:
3232
path: ${{ env.CVE_CACHE_DIR }}
3333
key: ${{ env.CVE_CACHE_KEY }}
34-
fail-on-cache-miss: true
34+
# fail-on-cache-miss: true
3535

3636
- name: "Build SDK"
3737
run: |
3838
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
3939
mvn $MVN_ARGS
4040
41-
- name: "Fosstars Rating"
42-
43-
with:
44-
report-branch: fosstars-report
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
4741
- name: "CVE Scan"
4842
env:
4943
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
@@ -73,6 +67,13 @@ jobs:
7367
path: ${{ env.CVE_CACHE_DIR }}
7468
key: ${{ env.CVE_CACHE_KEY }}
7569

70+
# This action changes the active branch!
71+
- name: "Fosstars Rating"
72+
73+
with:
74+
report-branch: fosstars-report
75+
token: ${{ secrets.GITHUB_TOKEN }}
76+
7677
- name: "Slack Notification"
7778
if: failure()
7879
uses: slackapi/[email protected]

.pipeline/scripts/release_notes_automation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def count_releases(filename):
6969
return count
7070

7171
def find_target_file(version):
72-
# release-notes-X-to-Y.mdx with every 15 versions the index increases by 15 and stays the same for 15 versions
72+
# release-notes-X-to-Y.md with every 15 versions the index increases by 15 and stays the same for 15 versions
7373
minor_version = int(version.split(".")[1])
7474
index = minor_version // 15 * 15
75-
return "release-notes-" + str(index) + "-to-" + str(index + 14) + ".mdx"
75+
return "release-notes-" + str(index) + "-to-" + str(index + 14) + ".md"
7676

7777
def write_release_notes(folder, target_file):
7878
absolute_target_file = os.path.join(folder, target_file)

.pipeline/scripts/release_notes_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020

2121
### 🐛 Fixed Issues
2222

23-
-
23+
-

docs/guides/OPENAI_CHAT_COMPLETION.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,15 @@ System.out.println("Tokens used: " + tokensUsed);
200200

201201
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OpenAiController.java). It shows the usage of Spring
202202
Boot's `ResponseBodyEmitter` to stream the chat completion delta messages to the frontend in real-time.
203+
204+
### Embedding
205+
206+
Get the embeddings of a text input in list of float values:
207+
208+
```java
209+
OpenAiEmbeddingParameters request = new OpenAiEmbeddingParameters().setInput("Hello World");
210+
211+
OpenAiEmbeddingOutput embedding = OpenAiClient.forModel(TEXT_EMBEDDING_ADA_002).embedding(request);
212+
```
213+
214+
See [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OpenAiController.java)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## 1.0.0 - December 03, 2024
2+
3+
[All Release Changes](https://github.com/SAP/ai-sdk-java/releases/tag/rel%2F1.0.0)
4+
5+
### ✨ New Functionality
6+
7+
- Introduce AI Core client to consume the [AI Core Rest APIs](https://api.sap.com/api/AI_CORE_API/overview).
8+
Here are a few features:
9+
- Artifact management: register and organize datasets and model artifacts.
10+
- Configuration management: set up configurations for various models and use cases.
11+
- Deployment management: deploy AI models and manage their lifecycle within SAP AI Core.
12+
- Introduce Orchestration client for consuming the following features of the orchestration service:
13+
- Harmonized LLM access via orchestration
14+
- Prompt templates
15+
- Content filtering
16+
- Masking
17+
- Introduce the OpenAI client to consume the following features:
18+
- Chat completion and streaming chat completion
19+
- Text
20+
- Images
21+
- Tools
22+
- Generate embeddings for input text.
23+
24+
> [!WARNING]
25+
> All model classes are generated or depend on changing specifications.
26+
> This means that model classes are not stable and may change in the future.

docs/release-notes/release-notes-0-to-14.mdx

Lines changed: 0 additions & 7 deletions
This file was deleted.

pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
<dependency>
113113
<groupId>com.fasterxml.jackson.module</groupId>
114114
<artifactId>jackson-module-parameter-names</artifactId>
115-
<version>2.18.1</version>
115+
<version>2.18.2</version>
116116
</dependency>
117117
<!-- scope "test" -->
118118
<dependency>
@@ -589,14 +589,12 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
589589
<plugin>
590590
<groupId>org.owasp</groupId>
591591
<artifactId>dependency-check-maven</artifactId>
592-
<version>11.1.0</version>
592+
<version>11.1.1</version>
593593
<configuration>
594594
<connectionTimeout>60000</connectionTimeout>
595595
<nvdMaxRetryCount>20</nvdMaxRetryCount>
596596
<failBuildOnCVSS>7</failBuildOnCVSS>
597-
<!-- Using the https://mirror.cveb.in mirror because NVD is too slow.
598-
For more information see this discussion: https://github.com/jeremylong/DependencyCheck/issues/7180#issuecomment-2500914164 -->
599-
<nvdDatafeedUrl>https://mirror.cveb.in/nvd/json/cve/1.1/nvdcve-1.1-{0}.json.gz</nvdDatafeedUrl>
597+
<nvdApiKeyEnvironmentVariable>NVD_API_KEY</nvdApiKeyEnvironmentVariable>
600598
<suppressionFile>${project.rootdir}/.pipeline/dependency-check-suppression.xml</suppressionFile>
601599
<nvdValidForHours>46</nvdValidForHours>
602600
<skipProvidedScope>true</skipProvidedScope>
@@ -716,7 +714,7 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
716714
<plugin>
717715
<groupId>org.apache.maven.plugins</groupId>
718716
<artifactId>maven-javadoc-plugin</artifactId>
719-
<version>3.11.1</version>
717+
<version>3.11.2</version>
720718
<configuration>
721719
<quiet>true</quiet>
722720
<additionalOptions>-Xdoclint:none</additionalOptions>

0 commit comments

Comments
 (0)