A simple Spring Boot application that provides an AI-powered chat service. The assistant, LongAI, is friendly, helpful, and smart, developed by Phạm Xuân Hoàng Long from Vietnam.
- AI chat assistant using Spring AI
- RESTful API for chat requests
- Java
- Spring Boot
- Maven
- Java 17+
- Maven
git clone https://github.com/hoanglong2534/springAIDemo.git
cd springAIDemo
mvn clean install
mvn spring-boot:runThe application will start on http://localhost:8080.
- Send a POST request to localhost:8080/api/v1/chat/ask with a JSON body:
{
"question": "hello LongAI, how are you?"
}- You will receive a response from LongAI:
Hello! I'm doing well, thank you for asking. How can I help you today?
Contributions are welcome! Please open an issue or submit a pull request.