This project is a sample application for Spring AI and Azure OpenAI.
The detailed procedure is written in the following document:
Start from ctrl + shift + p and select Dev Container: Rebuid and Reopen in Container
- Remove the following files and directories
git rm workspace/src/main/java/com/microsoft/shinyay/ai/SimpleAiController.java
git rm workspace/src/main/java/com/microsoft/shinyay/ai/SimpleViewController.java
git rm -r workspace/src/main/resources/templates
git rm -r workspace/src/main/resources/static-
Blank the following files
- workspace/src/main/resources/application.yml
-
Edit pom.xml to its initial state
- Remove the following dependencies
- spring-boot-starter-web
- spring-boot-starter-thymeleaf
- Change Spring Boot version to 3.2.6
- Change Spring AI version to 0.8.1
- Change Artifact ID to demo
- Change Application Name to demo
- Change Group ID to com.example
- Remove the following dependencies
- feature:1
- feature:2
- An Azure subscription - Create one for free
- Access granted to the Azure OpenAI service in the desired Azure subscription. Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI Service by completing the form at https://aka.ms/oai/access.
- The current version of the Java Development Kit (JDK)
- The Spring Boot CLI tool
- An Azure OpenAI Service resource with the gpt-3.5-turbo model deployed. For more information about model deployment, see the resource deployment guide.
Released under the MIT license
- github: https://github.com/shinyay
- twitter: https://twitter.com/yanashin18618
- mastodon: https://mastodon.social/@yanashin