A GPT-4o-mini-powered chatbot that answers user questions about anything, including images. It maintains short-term context by recalling up to the three most recent messages in the conversation.
Step 1: Clone the project git clone https://github.com/RyanBurnsworth/AIChatService
Step 2: Navigate to the AIChatService root directory
Step 3: Create /src/main/resources/applications.properties
Step 4: Add the following environment variables with your OpenAI API key and ids.
openai.api-key: YOUR-OPENAI-API-KEY
openai.organization-id: YOUR-OPENAI-ORGANIZATION-ID
openai.project-id: YOUR-OPENAI-PROJECT-ID
Step 5: Deploy docker-compose.yml docker-compose up -d
POST http://localhost:8080/api/v1/chat.
{
"userInput": "Your input to the chat bot",
"base64Image": "idsfj0sdjfosidjfs0d=="
}200 OK
{
"response": "The response from the chatbot"
}