Skip to content

nhatcoi/springai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringAI Chat

  1. Clone and run:

    ./mvnw spring-boot:run
  2. Swagger UI:

    http://localhost:8888/swagger-ui/index.html
    
  3. Test API:

    # Chat test
    curl "http://localhost:8888/api/chat/test?message=Hello!"
    
    # Chat with conversation
    curl -X POST http://localhost:8888/api/chat/message \
      -H "Content-Type: application/json" \
      -d '{"message": "How are you?", "conversationId": "test-123"}'

API Endpoints

  • POST /api/chat/message - Send message to chat conversation
  • GET /api/chat/test - Test message
  • DELETE /api/chat/conversation/{id} - Delete conversation
  • GET /api/chat/conversation/{id}/history - Get conversation history

Swagger UI Integrate

About

Provides a simple backend for AI-powered chat, featuring REST endpoints, Swagger UI, and Postman collections for testing and integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages