Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active. https://librechat.ai/
Find a file
2023-02-28 17:21:29 -05:00
.vscode code highlighting in progress 2023-02-23 16:32:08 -05:00
app organize modules 2023-02-25 09:04:32 -05:00
models organize modules 2023-02-25 09:04:32 -05:00
public adds favicon to head 2023-02-08 09:46:26 -05:00
server organize modules 2023-02-25 09:04:32 -05:00
src minor changes 2023-02-26 14:10:44 -05:00
.babelrc reorganize components and add root import plugin 2023-02-07 10:26:19 -05:00
.eslintrc.js adds linting, fix linter errors, abort automatic scrolling 2023-02-21 21:31:36 -05:00
.gitignore minor changes 2023-02-26 14:10:44 -05:00
index.js remove unused packages and minor changes 2023-02-12 16:48:15 -05:00
LICENSE.md Create LICENSE.md 2023-02-28 17:21:29 -05:00
nodemon.json adds functionality for waylaidwanderer chatgpt client 2023-02-12 22:24:36 -05:00
package-lock.json wrap code in progress, revert old message handling 2023-02-25 09:06:26 -05:00
package.json wrap code in progress, revert old message handling 2023-02-25 09:06:26 -05:00
postcss.config.js adds tailwindcss 2023-02-04 18:17:47 -05:00
README.md fix codeWrapper issue, will produce funky text with ` commenting 2023-02-25 10:16:21 -05:00
tailwind.config.js finish highlight.js styling (for chatgpt) 2023-02-23 23:56:55 -05:00
tsconfig.json adds shadcn-ui components, and model button to switch chat models 2023-02-13 15:58:35 -05:00
use_case.png took a screenshot of use case 2023-02-09 16:21:36 -05:00
webpack.config.js adds shadcn-ui components, and model button to switch chat models 2023-02-13 15:58:35 -05:00

ChatGPT Clone

chatgpt-clone demo

Wrap all conversational AIs under one roof.

Conversational/Utility AIs are the future and OpenAI revolutionized this movement with ChatGPT. While numerous methods exist to integrate conversational AIs, this app commemorates the original styling of ChatGPT, with the ability to integrate any current/future conversational AI models through user-provided APIs, while also having in mind improved client features, such as conversation search, and prompt templates. This project was also built with the anticipation of the official ChatGPT API from OpenAI, though it uses unofficial packages. Through this clone, you can avoid subscription-based models in favor of either free or pay-per-call APIs. I will most likely not deploy this app, as it's mainly a learning experience, but feel free to clone or fork to create your own custom wrapper.

Origin

This project was originally created as a Minimum Viable Product (or MVP) for the @HackReactor Bootcamp. It was built with OpenAI response streaming and most of the UI completed in under 20 hours. If you're curious what it looked like 20 hours in, you can find the original MVP project here. This was created without using any boilerplates or templates, including create-react-app and other toolchains. The purpose of the exercise was to learn setting up a full stack project from scratch. Please feel free to give feedback, suggestions, or fork the project for your own use.

Updates

2023-02-21 BingAI is integrated (although sadly limited by Microsoft with the 5 msg/convo limit, 50 msgs/day). I will need to handle the case when Bing refuses to give more answers on top of the other styling features I have in mind. Official ChatGPT use is back with the new BrowserClient. Brainstorming how to handle the UI when the Ai model changes, since conversations can't be persisted between them (or perhaps build a way to achieve this at some level).
2023-02-15 Just got access to Bing AI so I'll be focusing on integrating that through waylaidwanderer's 'experimental' BingAIClient.
2023-02-14

Official ChatGPT use is no longer possible though I recently used it with waylaidwanderer's reverse proxy method, and before that, through leaked models he also discovered.

Currently, this project is only functional with the text-davinci-003 model.

Roadmap

Warning

This is a work in progress. I'm building this in public. You can follow the progress here or on my Linkedin.

Here are my planned/recently finished features.

  • Rename, delete conversations
  • Persistent conversation
  • UI Error handling
  • AI Model Selection
  • Bing AI integration
  • Remember last selected model
  • Highlight.js for code blocks
  • Markdown handling
  • Bing AI Styling (for suggested responses, convo end, etc.)
  • AI model change handling (whether to pseudo-persist convos or start new convos within existing convo)
  • Server convo pagination (limit fetch and load more with 'show more' button)
  • Prompt Templates
  • Conversation/Prompt Search
  • Refactor/clean up code
  • Config file for easy startup
  • Mobile styling (half-finished)
  • Semantic Search Option (requires more tokens)

Features

  • Response streaming identical to ChatGPT
  • UI from original ChatGPT, including Dark mode
  • AI model selection

Tech Stack

  • Utilizes node-chatgpt-api
  • Response streaming identical to ChatGPT through server-sent events
  • Use of Tailwind CSS (like the official site) and shadcn/ui components
  • useSWR, Redux Toolkit, Express, MongoDB, Keyv

Use Cases

use case example

  • ChatGPT is down ( and don't want to pay for ChatGPT Plus).
  • ChatGPT/Google Bard/Bing AI conversations are lost in space or cannot be searched past a certain timeframe.
  • Quick one stop shop for all conversational AIs, with the added bonus of searching

How to Get Started

Warning

Working on easy startup/config code. Still in development.