Welcome to the Spring AI Examples project! This repository contains various examples and tutorials related to Spring AI on Kotlincraft.dev. The examples are designed to help developers understand and implement AI functionalities using Spring Boot and related technologies.
This project showcases how to integrate AI capabilities into Spring Boot applications. It includes examples of using OpenAI's GPT models, handling structured responses, and more. The goal is to provide a comprehensive guide for developers looking to leverage AI in their Spring applications.
To get started with the examples, clone the repository and follow the installation instructions below.
- Java 17 or higher
- Kotlin 1.9 or higher
- Spring Boot 2.5 or higher
- Maven or Gradle
- An OpenAI API key
-
Clone the repository:
git clone https://github.com/kotlincraft/spring-ai-examples.git cd spring-ai-examples
-
Build the project using Maven or Gradle:
./gradlew clean build
-
Set your OpenAI API key in the application properties:
openai-key=your_openai_api_key
-
Run the Spring Boot application:
./gradlew bootRun
-
Access the examples via the provided endpoints.
This project is licensed under the MIT License. See the LICENSE file for details.