Skip to content

Commit d66c16b

Browse files
authored
Merge branch 'main' into change-emedding-vector-type
2 parents 4c5545c + 0329828 commit d66c16b

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

docs/guides/OPENAI_CHAT_COMPLETION.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ In addition to the prerequisites above, we assume you have already set up the fo
4747
- Refer
4848
to [How to deploy a model to AI Core](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-deployment-for-generative-ai-model-in-sap-ai-core)
4949
for setup instructions.
50+
- In case the model is deployed in a custom resource group, refer to [this section](#using-a-custom-resource-group).
5051
- <details>
5152
<summary>Example deployed model from the AI Core <code>/deployments</code> endpoint</summary>
5253

@@ -97,6 +98,15 @@ OpenAiChatCompletionOutput result =
9798
String resultMessage = result.getContent();
9899
```
99100

101+
### Using a Custom Resource Group
102+
103+
```java
104+
var destination = new AiCoreService()
105+
.getInferenceDestination("custom-rg")
106+
.forModel(GPT_4O);
107+
OpenAiClient.withCustomDestination(destination);
108+
```
109+
100110
### Message history
101111

102112
```java

foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public OpenAiClient withApiVersion(@Nonnull final String apiVersion) {
8787
*
8888
* <pre>{@code
8989
* var destination = new AiCoreService().getInferenceDestination("custom-rg").forModel(GPT_4O);
90-
* OpenAiClient.withCustomDestination(destination).withApiVersion("2024-10-21");
90+
* OpenAiClient.withCustomDestination(destination);
9191
* }</pre>
9292
*
9393
* @param destination The specific {@link HttpDestination} to use.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
<maven.compiler.proc>full</maven.compiler.proc>
5757
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5858
<cloud-sdk.version>5.15.0</cloud-sdk.version>
59-
<junit-jupiter.version>5.11.3</junit-jupiter.version>
59+
<junit-jupiter.version>5.11.4</junit-jupiter.version>
6060
<wiremock.version>3.10.0</wiremock.version>
61-
<assertj-core.version>3.26.3</assertj-core.version>
61+
<assertj-core.version>3.27.0</assertj-core.version>
6262
<slf4j.version>2.0.16</slf4j.version>
6363
<checkstyle.version>10.21.0</checkstyle.version>
6464
<system-stubs.version>2.1.3</system-stubs.version>

sample-code/spring-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<properties>
3535
<project.rootdir>${project.basedir}/../../</project.rootdir>
3636
<spring-boot.version>3.4.1</spring-boot.version>
37-
<logback.version>1.5.12</logback.version>
37+
<logback.version>1.5.15</logback.version>
3838
<cf-logging.version>3.8.4</cf-logging.version>
3939
<!-- Skip end-to-end tests by default, can be overridden with -DskipTests=false -->
4040
<skipTests>true</skipTests>

0 commit comments

Comments
 (0)