A fully functional AI chatbot API built with Spring Boot that integrates with OpenAI's GPT API.
- AI-Powered Chat with OpenAI GPT-4o-mini(Currently)
- Multi-language Support
- Spring Boot 3.2.7 with auto-configuration
- Secure API key management via environment variables
- Set your OpenAI API key:
export OPENAI_API_KEY="your-key" - Run:
mvn spring-boot:run - Test:
curl http://localhost:8080/api/
POST /api/chat/openai- Chat with AIPOST /api/chat/message- Alternative chat endpointGET /api/status- System statusGET /api/hello- Simple greeting
- Java 21 + Spring Boot 3.2.7
- OpenAI GPT-4o-mini API
- OkHttp for HTTP requests
- Jackson for JSON processing
- Maven for dependency management