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
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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