You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,12 +48,12 @@ The following are the key components and services featured in the application:
48
48
|[Managed Identities](/entra/identity/managed-identities-azure-resources/overview)| Provides Azure services with automatically managed identities in Azure AD. Eliminates the need for credential management by allowing secure service-to-service authentication without storing credentials in code. |
49
49
|[Spring AI](https://spring.io/projects/spring-ai)| Spring framework for AI engineering that applies AI design principles to the Spring ecosystem. Alternatively, [Langchain4j](https://docs.langchain4j.dev/intro) is another AI framework with its own PetClinic sample in [spring-petclinic-langchain4j](https://github.com/Azure-Samples/spring-petclinic-langchain4j). For more information, see [Chat Client API](https://docs.spring.io/spring-ai/reference/api/chatclient.html).|
50
50
51
-
For more information on infrastructure as code elements of the application, see the [bicep scripts](https://github.com/Azure-Samples/spring-petclinic-ai/blob/main/infra/bicep/main.bicep) in the [Bring your first AI app in Azure Container Apps](https://github.com/Azure-Samples/spring-petclinic-ai/) repository
51
+
For more information on the infrastructure as code elements of the application, see the [bicep scripts](https://github.com/Azure-Samples/spring-petclinic-ai/blob/main/infra/bicep/main.bicep) in the [Bring your first AI app in Azure Container Apps](https://github.com/Azure-Samples/spring-petclinic-ai/) repository.
52
52
.
53
53
54
54
## Code implementation
55
55
56
-
The following information is an introduction to the code for readers to understand the flow of this first AI application:
56
+
The following sections provide an introduction to the code to help you understand the flow of this first AI application.
The [`ChatConfiguration`](https://github.com/Azure-Samples/spring-petclinic-ai/blob/main/src/main/java/org/springframework/samples/petclinic/genai/ChatConfiguration.java) class customizes requests sent to `chatClient`. The following are some key configuration settings of `chatClient`:
68
+
The [`ChatConfiguration`](https://github.com/Azure-Samples/spring-petclinic-ai/blob/main/src/main/java/org/springframework/samples/petclinic/genai/ChatConfiguration.java) class customizes requests sent to `chatClient`. The following list describes some key configuration settings of `chatClient`:
69
69
70
70
- Connections authentication: The client connects to Azure OpenAI. Both API key authentication and managed identity authentication are supported.
71
71
- Configuration settings location: For `ChatModel`, deployment `gpt-4o` and temperature `0.7` are set in the configuration file.
@@ -115,4 +115,4 @@ For more information, see [Advisors API](https://docs.spring.io/spring-ai/refere
115
115
## Next steps
116
116
117
117
> [!div class="nextstepaction"]
118
-
> [Deploy an AI-enabled instance of Spring PetClinic on Azure Container Apps](java-petclinic-ai-overview.md).
118
+
> [Deploy an AI-enabled instance of Spring PetClinic on Azure Container Apps](java-petclinic-ai-overview.md)
Copy file name to clipboardExpand all lines: articles/container-apps/java-petclinic-ai-tutorial.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,13 @@ For information on the architectural details of this application, see [Java PetC
28
28
29
29
## Prerequisites
30
30
31
-
- Azure subscription: You can [create an accountfor free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) if you don't have an existing account.
32
-
-Security context: To perform this quickstart, you need the `Contributor` and `User Access Administrator` roles, or the `Owner` role. For more information, see [Assign Azure roles using the Azure portal](../role-based-access-control/role-assignments-portal.yml?tabs=current).
33
-
- GitHub account: Get one for [free](https://github.com/join).
34
-
-git: Install the latest version of [git](https://git-scm.com/downloads).
35
-
-Microsoft Build of Open JDK: Install [Microsoft Build of Open JDK](/java/openjdk/install). Use version 17 at a minimum.
36
-
-Azure Command-Line interface (CLI): Install [Azure CLI](/azure/developer/azure-developer-cli/install-azd) to manage your Azure resources via command line.
37
-
-Maven: Install the latest version of [Maven](https://maven.apache.org/download.cgi).
31
+
-An Azure subscription. If you don't have an existing account, you can [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
32
+
-`Contributor` and `User Access Administrator` roles, or the `Owner` role. For more information, see [Assign Azure roles using the Azure portal](../role-based-access-control/role-assignments-portal.yml?tabs=current).
33
+
-[A GitHub account](https://github.com/join).
34
+
-The latest version of [git](https://git-scm.com/downloads).
35
+
-The [Microsoft Build of Open JDK](/java/openjdk/install), version 17 or higher.
@@ -52,7 +52,7 @@ For information on the architectural details of this application, see [Java PetC
52
52
cd spring-petclinic-ai
53
53
```
54
54
55
-
1. If you don't already have it, install the Azure CLI.
55
+
1. If you don't already have it, install the `containerapp` extension for the Azure CLI.
56
56
57
57
```azurecli
58
58
az extension add --name containerapp --upgrade
@@ -70,13 +70,13 @@ For information on the architectural details of this application, see [Java PetC
70
70
71
71
## Deploy
72
72
73
-
1. Automatically deploy the application by with the `azd up` command.
73
+
1. Automatically deploy the application by using the `azd up` command.
74
74
75
75
```azdeveloper
76
76
azd up
77
77
```
78
78
79
-
1. When you're prompted you for a name, enter **my-first-ai**for the environment name.
79
+
1. When you're prompted, enter **my-first-ai**for the environment name.
80
80
81
81
After that, enter values for`Azure Subscription` and `Azure location`, substituting your actual values for the `<..>` placeholdersin the following prompts:
0 commit comments