Chatgpt Api Nest

screenshot of Chatgpt Api Nest
prisma

ChatGPT NestJS Backend(JWT/Swagger/Stream)

Overview

The ChatGPT API powered by NestJS is an efficient solution for developers looking to integrate conversational AI into their applications. The recent v1.0.0 release introduces a robust back-end framework that simplifies user interaction through features such as registration, login, and secure authentication. This implementation not only manages user sessions smoothly but also maintains a record of historical conversations, making it a reliable choice for building chat applications.

In addition to its essential functionalities, this API supports multiple transmission modes and offers configuration flexibility for handling token limits. With easy deployment options and seamless integration of Swagger for testing, it is tailored for both novice and experienced developers.

Features

  • User Registration and Login: Quickly set up user accounts with a streamlined registration and login process.
  • JWT Authentication: Enhanced security is provided through JSON Web Token (JWT) authentication, ensuring safe user sessions.
  • Conversation History Storage: Automatically stores historical conversation data, allowing applications to recall previous interactions.
  • Token Management: By default, manages up to 1000 tokens for responses, adjustable for performance with GPT-4.
  • Flexible Deployment Options: Supports direct deployment with a Postgres database or through Docker for containerization.
  • Integrated Swagger Testing: Provides built-in Swagger access for easy testing and interaction with the API at http://localhost:3000/swagger.
  • Customizable Configuration: Environment configurations are easily managed via the .env file for tailored deployment settings.
prisma
Prisma

Prisma is a server-side library that helps developers read and write data to the database in an intuitive, efficient and safe way.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.