⚠⚠⚠ IMPORTANT NOTICE ⚠⚠⚠
As of December 2023, GPT Turbo is still based on an older version of OpenAI's Chat Completion API and uses deprecated features. For example, the library is still using the concept of "function calling", which has been replaced by "tools" with an equivalent functionality. While this is still supported by the API as of writing this, it is currently flagged as deprecated and will most likely stop working in the future, even if you have the latest version of GPT Turbo running on your project.
I (maxijonson) have been a bit busy with other projects lately, which is why GPT Turbo has not been getting much attention lately and has missed a few new features. I'm planning on updating the library to the latest version of the API and adding new features in the future, but I can't give any ETA on when this will happen (if ever). Being the only maintainer of the project and not focusing on it as much as I used to, it's hard to find the time to work on it.
The branch
feature/api-update
contains a work in progress version of the library that is based on the latest version of the API.Sorry for the inconvenience this may cause you. PRs are always welcome if you want to help out!
Are you a dev looking for the library? Click here!
GPT Turbo is a JavaScript library for seamless integration with OpenAI's Chat Completion API. It allows you to manage conversation history for smooth conversation continuity, fine-tune chat completion parameters and define callable functions. The library also supports plugins for extending its functionality beyond the core features.
🤖 Supports all Chat Completion models, including GPT-4. (full list here)
💬 Supports both single, streamed and function completions, just like ChatGPT.
⚙ Tune chat completion parameters, such as temperature, top-p, and frequency penalty.
🌐 Compatible in both Node.js and the browser.
📜 Keeps track of the conversation history for you, making conversation continuity a breeze.
💰 Estimate the cost and size of conversations before sending them to the API. (through the gpt-turbo-plugin-stats
plugin)
💾 Easily persist conversations with serialization and deserialization methods.
🔌 Includes a plugin system for extending the library's functionality.
💻 Built entirely with TypeScript.
⚔️ Battle-tested in multiple environments. (See implementations)
This repo is a mono-repo containing both the Library and small projects powered by it. Here's a list of all the projects that were built with the GPT Turbo Library
- Web: A web app, very similar to ChatGPT, for handling chats in the browser.
- Discord: A Discord bot for chatting in Discord servers, similar to Discord's own Clyde AI bot.
- CLI: A command-line interface to chat straight from your terminal.
- Nest: A NestJS backend, for interacting with the library via a REST API.
GPT Turbo has a plugin system for extending the library's functionality. While anyone can create and publish custom plugins, this repo contains the following home-made plugins:
- gpt-turbo-plugin-stats: A plugin for estimating the cost and size of conversations before sending them to the API.
Join the Discord community server here!
GPT Turbo is licensed under the MIT License.
To prevent accidental charges to your OpenAI account, remember to set billing limits on your OpenAI account!