Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-d committed Oct 17, 2024
1 parent 741e9ac commit 7494ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ After restarting your application, you should see an "aicore" entry in the `VCAP

```java
Destination destination = DestinationAccessor.getDestination("my-aicore");
ApiClient client = Core.getClient(destination);
ApiClient client = new AiCoreService().withDestination(destination);
```

</details>
Expand Down Expand Up @@ -239,7 +239,7 @@ For more detailed information and advanced usage, please refer to the following:
To add a header to AI Core requests, use the following code:
```java
ApiClient client = Core.getClient().addDefaultHeader("header-key", "header-value");
ApiClient client = new AiCoreService().client().addDefaultHeader("header-key", "header-value");
DeploymentApi api = new DeploymentApi(client);
```
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/AI_CORE_DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ In addition to the prerequisites above, we assume you have already set up the fo
Use the following code snippet to create a deployment in SAP AI Core:

```java
var api = new DeploymentApi(getClient());
var api = new DeploymentApi(new AiCoreService().client());
var resourceGroupId = "default";

AiDeploymentCreationRequest request =
Expand All @@ -86,7 +86,7 @@ Refer to the [DeploymentController.java](../../sample-code/spring-app/src/main/j
AiDeploymentCreationResponse deployment; // provided
String deploymentId = deployment.getId();

var api = new DeploymentApi(getClient());
var api = new DeploymentApi(new AiCoreService().client());
var resourceGroupId = "default";

if (deployment.getStatus() == AiExecutionStatus.RUNNING) {
Expand Down

0 comments on commit 7494ac4

Please sign in to comment.