This is a NestJS plugin for interacting with the OpenAI ChatGPT API. The plugin allows you to easily integrate ChatGPT into your NestJS applications, providing AI-driven natural language understanding and generation capabilities.
- ChatGPT service for generating responses based on user input
- Node.js >= 14.x
- NestJS >= 8.x
- An OpenAI API key
- Clone the repository:
$ git clone https://github.com/your-username/nestjs-chatgpt-plugin.git
- Change into the project directory:
$ cd nestjs-chatgpt-plugin
- Install the dependencies:
$ npm install
- Configure the OpenAI API key and JWT secret:
Create a .env
file in the project root directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key
- Start the NestJS application:
$ npm run start
Contributions are welcome! Please feel free to submit a pull request, open an issue, or provide feedback.
This project is licensed under the MIT License - see the LICENSE file for details.