A client implementation for ChatGPT and Bing AI. Available as a Node.js module, REST API server, and CLI app. Support for the official ChatGPT model has been added! You can now use the gpt-3.5-turbo model with the official OpenAI API, using ChatGPTClient. This is the same model that ChatGPT uses, and it's the most powerful model available right now. Usage of this model is not free, however it is 10x cheaper than text-davinci-003. The default model used in ChatGPTClient is now gpt-3.5-turbo. You can still set userLabel, chatGptLabel and promptPrefix (system instructions) as usual. Support for the official ChatGPT underlying model, gpt-3.5-turbo, via OpenAI's API. Replicates chat threads from the official ChatGPT website (with conversation IDs and message IDs), with persistent conversations using Keyv. Conversations are stored in memory by default, but you can optionally install a storage adapter to persist conversations to a database.

Features

  • Includes an API server (with Docker support) you can run to use ChatGPT in non-Node.js applications
  • Includes a CLI interface where you can chat with ChatGPT
  • Includes clients that you can use in your own Node.js applications
  • Supports configurable prompt prefixes, and custom names for the user and ChatGPT
  • Retains support for models like text-davinci-003
  • Support for the official ChatGPT website, using a reverse proxy server for a Cloudflare bypass

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Node ChatGPT API

Node ChatGPT API Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Node ChatGPT API!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript ChatGPT Clients, JavaScript Generative AI

Registered

2023-03-28