Skip to content

Commit 39efe77

Browse files
chore: better header documentation (#344)
1 parent 25158fb commit 39efe77

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,20 @@ This opens up a wide range of possibilities to customize the connection, includi
160160

161161
```java
162162
var service = new AiCoreService();
163-
var service = service.withBaseDestination(
164-
DefaultHttpDestination.fromDestination(service.getBaseDestination())
165-
.header("my-header-key", "my-header-value")
166-
.build()
167-
);
163+
var destination =
164+
DefaultHttpDestination.fromDestination(service.getBaseDestination())
165+
.header("my-header-key", "my-header-value")
166+
.build();
167+
168+
// AI Core client
169+
service = service.withBaseDestination(destination);
170+
DeploymentApi client = new DeploymentApi(service);
171+
172+
// Orchestration client
173+
OrchestrationClient client = new OrchestrationClient(destination);
174+
175+
// OpenAI client
176+
OpenAiClient client2 = OpenAiClient.withCustomDestination(destination);
168177
```
169178

170179
For more information, please refer to the [AI Core connectivity guide](./docs/guides/CONNECTING_TO_AICORE.md) and the [SAP Cloud SDK documentation](https://sap.github.io/cloud-sdk/docs/java/features/connectivity/http-destinations).

0 commit comments

Comments
 (0)