Release: rename project from ChatGPT Clone to LibreChat in various files and configurations (#454)

This commit is contained in:
Danny Avila 2023-06-05 14:24:08 -04:00 committed by GitHub
parent f845192d2d
commit 638faf9850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 26 additions and 35 deletions

View file

@ -22,7 +22,7 @@ We will make every effort to acknowledge your report within 72 hours and keep yo
## Security Updates and Patching ## Security Updates and Patching
We are committed to maintaining the security of our open-source project named ChatGPT-Clone and promptly addressing any identified vulnerabilities. To ensure the security of our project, we follow these practices: We are committed to maintaining the security of our open-source project named LibreChat and promptly addressing any identified vulnerabilities. To ensure the security of our project, we follow these practices:
- We prioritize security updates for the current major release of our software. - We prioritize security updates for the current major release of our software.
- We actively monitor the GitHub Security Advisory system and the `#issues` channel on Discord for any vulnerability reports. - We actively monitor the GitHub Security Advisory system and the `#issues` channel on Discord for any vulnerability reports.
- We promptly review and validate reported vulnerabilities and take appropriate actions to address them. - We promptly review and validate reported vulnerabilities and take appropriate actions to address them.
@ -32,7 +32,7 @@ Please note that as a security-conscious community, we may not always disclose d
## Scope ## Scope
This security policy applies to the following GitHub repository: This security policy applies to the following GitHub repository:
- Repository: [ChatGPT-Clone](https://github.com/danny-avila/chatgpt-clone) - Repository: [LibreChat](https://github.com/danny-avila/chatgpt-clone)
## Contact ## Contact
If you have any questions or concerns regarding the security of our project, please join our [Discord community](https://discord.gg/NGaa9RPCft) and report them in the appropriate channel. If you have any questions or concerns regarding the security of our project, please join our [Discord community](https://discord.gg/NGaa9RPCft) and report them in the appropriate channel.

View file

@ -16,8 +16,8 @@ NODE_ENV=production
# It's useful if your machine has difficulty calling the original API server. # It's useful if your machine has difficulty calling the original API server.
# PROXY= # PROXY=
# Change this to your MongoDB URI if different. I recommend appending chatgpt-clone. # Change this to your MongoDB URI if different. I recommend appending LibreChat.
MONGO_URI=mongodb://127.0.0.1:27017/chatgpt-clone MONGO_URI=mongodb://127.0.0.1:27017/LibreChat
########################## ##########################
# OpenAI Endpoint: # OpenAI Endpoint:
@ -61,7 +61,7 @@ OPENAI_MODELS=gpt-3.5-turbo,gpt-3.5-turbo-0301,text-davinci-003,gpt-4
# Also used for Sydney and jailbreak # Also used for Sydney and jailbreak
# To get your Access token for Bing, login to https://www.bing.com # To get your Access token for Bing, login to https://www.bing.com
# Use dev tools or an extension while logged into the site to copy the content of the _U cookie. # Use dev tools or an extension while logged into the site to copy the content of the _U cookie.
#If this fails, follow these instructions https://github.com/danny-avila/chatgpt-clone/issues/370#issuecomment-1560382302 to provide the full cookie strings. #If this fails, follow these instructions https://github.com/danny-avila/LibreChat/issues/370#issuecomment-1560382302 to provide the full cookie strings.
# Set to "user_provided" to allow the user to provide its token from the UI. # Set to "user_provided" to allow the user to provide its token from the UI.
# Leave it blank to disable this endpoint. # Leave it blank to disable this endpoint.
BINGAI_TOKEN="user_provided" BINGAI_TOKEN="user_provided"

View file

@ -9,15 +9,15 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/danny-avila/chatgpt-clone.git" "url": "git+https://github.com/danny-avila/LibreChat.git"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/danny-avila/chatgpt-clone/issues" "url": "https://github.com/danny-avila/LibreChat/issues"
}, },
"homepage": "https://github.com/danny-avila/chatgpt-clone#readme", "homepage": "https://github.com/danny-avila/LibreChat#readme",
"dependencies": { "dependencies": {
"@dqbd/tiktoken": "^1.0.2", "@dqbd/tiktoken": "^1.0.2",
"@keyv/mongo": "^2.1.8", "@keyv/mongo": "^2.1.8",

View file

@ -3,7 +3,7 @@
########################### ###########################
# Custom app name, this text will be displayed in the landing page and the footer. # Custom app name, this text will be displayed in the landing page and the footer.
VITE_APP_TITLE="ChatGPT Clone" VITE_APP_TITLE="LibreChat"
########################### ###########################
# Server URL configuration: # Server URL configuration:

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="theme-color" content="#343541"> <meta name="theme-color" content="#343541">
<title>ChatGPT Clone</title> <title>LibreChat</title>
<link <link
rel="shortcut icon" rel="shortcut icon"
href="#" href="#"

View file

@ -11,15 +11,15 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/danny-avila/chatgpt-clone.git" "url": "git+https://github.com/danny-avila/LibreChat.git"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/danny-avila/chatgpt-clone/issues" "url": "https://github.com/danny-avila/LibreChat/issues"
}, },
"homepage": "https://github.com/danny-avila/chatgpt-clone#readme", "homepage": "https://github.com/danny-avila/LibreChat#readme",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.0", "@fortawesome/fontawesome-svg-core": "^6.4.0",
"@fortawesome/free-brands-svg-icons": "^6.4.0", "@fortawesome/free-brands-svg-icons": "^6.4.0",

View file

@ -110,7 +110,7 @@ function Settings(props) {
style={{ opacity: showSystemMessage ? '1' : '0' }} style={{ opacity: showSystemMessage ? '1' : '0' }}
> >
<a <a
href="https://github.com/danny-avila/chatgpt-clone/blob/main/client/defaultSystemMessage.md" href="https://github.com/danny-avila/LibreChat/blob/main/client/defaultSystemMessage.md"
target="_blank" target="_blank"
className="text-blue-500 transition-colors duration-200 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-500" rel="noreferrer" className="text-blue-500 transition-colors duration-200 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-500" rel="noreferrer"
> >

View file

@ -4,12 +4,12 @@ export default function Footer() {
return ( return (
<div className="hidden px-3 pb-1 pt-2 text-center text-xs text-black/50 dark:text-white/50 md:block md:px-4 md:pb-4 md:pt-3"> <div className="hidden px-3 pb-1 pt-2 text-center text-xs text-black/50 dark:text-white/50 md:block md:px-4 md:pb-4 md:pt-3">
<a <a
href="https://github.com/danny-avila/chatgpt-clone" href="https://github.com/danny-avila/LibreChat"
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
className="underline" className="underline"
> >
{import.meta.env.VITE_APP_TITLE || 'ChatGPT Clone'} {import.meta.env.VITE_APP_TITLE || 'LibreChat'}
</a> </a>
. Serves and searches all conversations reliably. All AI convos under one house. Pay per call . Serves and searches all conversations reliably. All AI convos under one house. Pay per call
and not per month (cents compared to dollars). and not per month (cents compared to dollars).

View file

@ -1,16 +1,12 @@
import React, { useState } from 'react';
import { useRecoilValue, useSetRecoilState } from 'recoil'; import { useRecoilValue, useSetRecoilState } from 'recoil';
import useDocumentTitle from '~/hooks/useDocumentTitle'; import useDocumentTitle from '~/hooks/useDocumentTitle';
import Templates from '../ui/Templates';
import SunIcon from '../svg/SunIcon'; import SunIcon from '../svg/SunIcon';
import LightningIcon from '../svg/LightningIcon'; import LightningIcon from '../svg/LightningIcon';
import CautionIcon from '../svg/CautionIcon'; import CautionIcon from '../svg/CautionIcon';
import ChatIcon from '../svg/ChatIcon';
import store from '~/store'; import store from '~/store';
export default function Landing() { export default function Landing() {
const [showingTemplates, setShowingTemplates] = useState(false);
const setText = useSetRecoilState(store.text); const setText = useSetRecoilState(store.text);
const conversation = useRecoilValue(store.conversation); const conversation = useRecoilValue(store.conversation);
const { title = 'New Chat' } = conversation || {}; const { title = 'New Chat' } = conversation || {};
@ -24,11 +20,6 @@ export default function Landing() {
setText(quote); setText(quote);
}; };
const showTemplates = (e) => {
e.preventDefault();
setShowingTemplates(!showingTemplates);
};
return ( return (
<div className="flex h-full flex-col items-center overflow-y-auto pt-0 text-sm dark:bg-gray-800"> <div className="flex h-full flex-col items-center overflow-y-auto pt-0 text-sm dark:bg-gray-800">
<div className="w-full px-6 text-gray-800 dark:text-gray-100 md:flex md:max-w-2xl md:flex-col lg:max-w-3xl"> <div className="w-full px-6 text-gray-800 dark:text-gray-100 md:flex md:max-w-2xl md:flex-col lg:max-w-3xl">
@ -36,7 +27,7 @@ export default function Landing() {
id="landing-title" id="landing-title"
className="mb-10 ml-auto mr-auto mt-6 flex items-center justify-center gap-2 text-center text-4xl font-semibold sm:mb-16 md:mt-[10vh]" className="mb-10 ml-auto mr-auto mt-6 flex items-center justify-center gap-2 text-center text-4xl font-semibold sm:mb-16 md:mt-[10vh]"
> >
{import.meta.env.VITE_APP_TITLE || 'ChatGPT Clone'} {import.meta.env.VITE_APP_TITLE || 'LibreChat'}
</h1> </h1>
<div className="items-start gap-3.5 text-center md:flex"> <div className="items-start gap-3.5 text-center md:flex">
<div className="mb-8 flex flex-1 flex-col gap-3.5 md:mb-auto"> <div className="mb-8 flex flex-1 flex-col gap-3.5 md:mb-auto">

View file

@ -14,7 +14,7 @@ services:
# depends_on: # depends_on:
# - api # - api
api: api:
container_name: chat-clone container_name: LibreChat
ports: ports:
- 3080:3080 # Change it to 9000:3080 to use nginx - 3080:3080 # Change it to 9000:3080 to use nginx
depends_on: depends_on:
@ -30,7 +30,7 @@ services:
environment: environment:
- HOST=0.0.0.0 - HOST=0.0.0.0
- NODE_ENV=production - NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/chatgpt-clone - MONGO_URI=mongodb://mongodb:27017/LibreChat
# - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy # - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy
- MEILI_HOST=http://meilisearch:7700 - MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700 - MEILI_HTTP_ADDR=meilisearch:7700

View file

@ -1,6 +1,6 @@
# Roadmap # Roadmap
## For the most up to date information: [chatgpt-clone | Trello](https://trello.com/b/17z094kq/chatgpt-clone) ## For the most up to date information: [LibreChat | Trello](https://trello.com/b/17z094kq/chatgpt-clone)
<summary><strong>Here are my recently completed and planned features:</strong></summary> <summary><strong>Here are my recently completed and planned features:</strong></summary>

4
package-lock.json generated
View file

@ -1,11 +1,11 @@
{ {
"name": "chatgpt-clone", "name": "LibreChat",
"version": "0.4.7", "version": "0.4.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "chatgpt-clone", "name": "LibreChat",
"version": "0.4.7", "version": "0.4.7",
"license": "ISC", "license": "ISC",
"workspaces": [ "workspaces": [

View file

@ -1,5 +1,5 @@
{ {
"name": "chatgpt-clone", "name": "LibreChat",
"version": "0.4.7", "version": "0.4.7",
"description": "", "description": "",
"workspaces": [ "workspaces": [
@ -22,14 +22,14 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/danny-avila/chatgpt-clone.git" "url": "git+https://github.com/danny-avila/LibreChat.git"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/danny-avila/chatgpt-clone/issues" "url": "https://github.com/danny-avila/LibreChat/issues"
}, },
"homepage": "https://github.com/danny-avila/chatgpt-clone#readme", "homepage": "https://github.com/danny-avila/LibreChat#readme",
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.32.1", "@playwright/test": "^1.32.1",
"@typescript-eslint/eslint-plugin": "^5.59.6", "@typescript-eslint/eslint-plugin": "^5.59.6",