This repository provides a modular foundation for integrating and using AI models in your applications. You can easily plug in different AI models, switch between them, and interact with them via standardized API routes.
- Support for multiple AI models (e.g., GPT, Create routes to interact with AI services in your RecommendationService.js and TaskOptimizationService.js).
- Configurable via environment variables.
- JWT-based authentication for secure access to AI endpoints.
- Data preprocessing and model interaction are abstracted into reusable services.
- Clone the Repository
npx degit KarthikrajS/ai-boilerplate my-ai
cd my-ai
- Install dependencies:
npm install
- Set up environment variables in the
.env
file. - Start the server:
npm start
- Make POST requests to
/api/ai/optimizeTasks
or other available routes to interact with the models.
- Add new AI models by creating a new file in the
models/
directory and updatingModelService.js
. - Add new API routes as needed in
routes/aiRoutes.js
.
Feel free to fork this repository and make your contributions. Open a pull request to submit changes.
This project is licensed under the MIT License.