Skip to content

Commit

Permalink
finito
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP committed Mar 10, 2025
1 parent 92a2d9f commit 23e06a2
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 65 deletions.
42 changes: 21 additions & 21 deletions docs-java/guides/ai-core-deployment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,30 @@ In addition to the prerequisites above, we assume you have already set up the fo
- **An AI Core Configuration** created in SAP AI Core.

- <details>
<summary>Example configuration from the AI Core <code>/configuration</code> endpoint</summary>

```json
<summary>Example configuration from the AI Core <code>/configuration</code> endpoint</summary>

```json
{
"createdAt": "2024-07-03T12:44:08Z",
"executableId": "azure-openai",
"id": "12345-123-123-123-123456abcdefg",
"inputArtifactBindings": [],
"name": "gpt-35-turbo",
"parameterBindings": [
{
"key": "modelName",
"value": "gpt-35-turbo"
},
{
"createdAt": "2024-07-03T12:44:08Z",
"executableId": "azure-openai",
"id": "12345-123-123-123-123456abcdefg",
"inputArtifactBindings": [],
"name": "gpt-35-turbo",
"parameterBindings": [
{
"key": "modelName",
"value": "gpt-35-turbo"
},
{
"key": "modelVersion",
"value": "latest"
}
],
"scenarioId": "foundation-models"
"key": "modelVersion",
"value": "latest"
}
```
],
"scenarioId": "foundation-models"
}
```

</details>
</details>

## Create a Deployment

Expand Down
16 changes: 8 additions & 8 deletions docs-java/guides/connecting-to-ai-core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ How exactly to set this depends on how you run your code (e.g. via IDE, command
Here are three examples of how this can be done:

1. <details>
<summary>Using a `.env` file</summary>
<summary>Using a `.env` file</summary>

Create a `.env` file in the **working directory** from which you run your code.
Add the following line:
Expand All @@ -75,10 +75,10 @@ Here are three examples of how this can be done:
The value of `AICORE_SERVICE_KEY` must be a single line, so remove any line breaks from the service key JSON.
:::

</details>
</details>

2. <details>
<summary>Using the command line on Mac OS</summary>
<summary>Using the command line on Mac OS</summary>

Run your code with the following command:

Expand All @@ -87,10 +87,10 @@ Here are three examples of how this can be done:
mvn ...
```

</details>
</details>

3. <details>
<summary>Using PowerShell on Windows</summary>
<summary>Using PowerShell on Windows</summary>

Run your code with the following command:

Expand All @@ -99,17 +99,17 @@ Here are three examples of how this can be done:
mvn ...
```

</details>
</details>

4. <details>
<summary>Using an IntelliJ run configuration</summary>
<summary>Using an IntelliJ run configuration</summary>

In IntelliJ, go to `Run` > `Edit Configurations...` > `Environment variables`.
Add a new environment variable with the name `AICORE_SERVICE_KEY` and paste the service key as value.

For more information, see the [official IntelliJ documentation](https://www.jetbrains.com/help/idea/run-debug-configuration-application.html#configure-environment-variables).

</details>
</details>

## Using a Destination from the BTP Destination Service

Expand Down
70 changes: 35 additions & 35 deletions docs-java/guides/openai-chat-completion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,43 +69,43 @@ In addition to the prerequisites above, we assume you have already set up the fo
for setup instructions.
- In case the model is deployed in a custom resource group, refer to [this section](#using-a-custom-resource-group).
- <details>
<summary>Example deployed model from the AI Core <code>/deployments</code> endpoint</summary>

```json
{
"id": "d123456abcdefg",
"deploymentUrl": "https://api.ai.region.aws.ml.hana.ondemand.com/v2/inference/deployments/d123456abcdefg",
"configurationId": "12345-123-123-123-123456abcdefg",
"configurationName": "gpt-35-turbo",
"scenarioId": "foundation-models",
"status": "RUNNING",
"statusMessage": null,
"targetStatus": "RUNNING",
"lastOperation": "CREATE",
"latestRunningConfigurationId": "12345-123-123-123-123456abcdefg",
"ttl": null,
"details": {
"scaling": {
"backendDetails": {}
},
"resources": {
"backendDetails": {
"model": {
"name": "gpt-35-turbo",
"version": "latest"
}
}
<summary>Example deployed model from the AI Core <code>/deployments</code> endpoint</summary>

```json
{
"id": "d123456abcdefg",
"deploymentUrl": "https://api.ai.region.aws.ml.hana.ondemand.com/v2/inference/deployments/d123456abcdefg",
"configurationId": "12345-123-123-123-123456abcdefg",
"configurationName": "gpt-35-turbo",
"scenarioId": "foundation-models",
"status": "RUNNING",
"statusMessage": null,
"targetStatus": "RUNNING",
"lastOperation": "CREATE",
"latestRunningConfigurationId": "12345-123-123-123-123456abcdefg",
"ttl": null,
"details": {
"scaling": {
"backendDetails": {}
},
"resources": {
"backendDetails": {
"model": {
"name": "gpt-35-turbo",
"version": "latest"
}
},
"createdAt": "2024-07-03T12:44:22Z",
"modifiedAt": "2024-07-16T12:44:19Z",
"submissionTime": "2024-07-03T12:44:51Z",
"startTime": "2024-07-03T12:45:56Z",
"completionTime": null
}
}
```

</details>
},
"createdAt": "2024-07-03T12:44:22Z",
"modifiedAt": "2024-07-16T12:44:19Z",
"submissionTime": "2024-07-03T12:44:51Z",
"startTime": "2024-07-03T12:45:56Z",
"completionTime": null
}
```

</details>

## Simple chat completion

Expand Down
2 changes: 1 addition & 1 deletion docs-java/guides/orchestration-chat-completion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ In addition to the prerequisites above, we assume you have already set up the fo

- Refer to the [Orchestration Documentation](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/orchestration) for setup instructions.
- <details>
<summary>Example orchestration deployment from the AI Core <code>/deployments</code> endpoint</summary>
<summary>Example orchestration deployment from the AI Core <code>/deployments</code> endpoint</summary>

```json
{
Expand Down

0 comments on commit 23e06a2

Please sign in to comment.