- Docker
- Docker Compose
- Clone the repository.
- Navigate to the project root.
docker-compose up --build
- Choose between Mistral or Llama2 for the model argurment
- Run the curl code below:
curl -X POST http://localhost:3000/conversations \
-H "Content-Type: application/json" \
-d '{
"model": "Mistral",
"prompt": "Tell me a joke",
"userId": "user123"
}'
curl -X GET http://localhost:3000/conversations
curl -X GET http://localhost:3000/conversations/1
curl -X GET http://localhost:3000/conversations/user/user123