A NestJS-based API for detecting spam content using OpenAI's Structured Output and Vercel AI SDK.
- AI-powered spam detection
- API key authentication for secure access
-
Clone the repository:
git clone https://github.com/your-username/spamchecker.git cd spamchecker
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add the following:API_KEY=your_api_key_here OPENAI_API_KEY=your_openai_api_key_here
- Start the development server:
npm run start