mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
update readme, add proxy and host information
This commit is contained in:
parent
16c9589058
commit
5e4fa09dcb
1 changed files with 59 additions and 15 deletions
74
README.md
74
README.md
|
|
@ -55,21 +55,27 @@ Currently, this project is only functional with the `text-davinci-003` model.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
# Table of Contents
|
# Table of Contents
|
||||||
* [Roadmap](#roadmap)
|
- [ChatGPT Clone](#chatgpt-clone)
|
||||||
* [Features](#features)
|
- [All AI Conversations under One Roof.](#all-ai-conversations-under-one-roof)
|
||||||
* [Tech Stack](#tech-stack)
|
- [Updates](#updates)
|
||||||
* [Getting Started](#getting-started)
|
- [Table of Contents](#table-of-contents)
|
||||||
* [Prerequisites](#prerequisites)
|
- [Roadmap](#roadmap)
|
||||||
* [Usage](#usage)
|
- [Features](#features)
|
||||||
* [Local (npm)](#npm)
|
- [Tech Stack](#tech-stack)
|
||||||
* [Docker](#docker)
|
- [Getting Started](#getting-started)
|
||||||
* [Access Tokens](#access-tokens)
|
- [Prerequisites](#prerequisites)
|
||||||
* [Updating](#updating)
|
- [Usage](#usage)
|
||||||
* [Use Cases](#use-cases)
|
- [Local](#local)
|
||||||
* [Origin](#origin)
|
- [Docker](#docker)
|
||||||
* [Caveats](#caveats)
|
- [Access Tokens](#access-tokens)
|
||||||
* [Contributing](#contributing)
|
- [Proxy](#proxy)
|
||||||
* [License](#license)
|
- [Updating](#updating)
|
||||||
|
- [Use Cases](#use-cases)
|
||||||
|
- [Origin](#origin)
|
||||||
|
- [Caveats](#caveats)
|
||||||
|
- [Regarding use of Official ChatGPT API](#regarding-use-of-official-chatgpt-api)
|
||||||
|
- [Contributing](#contributing)
|
||||||
|
- [License](#license)
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
|
|
@ -143,6 +149,8 @@ Here are my recently completed and planned features:
|
||||||
- **Run** `npm run build` in /client/ dir, `npm start` in /api/ dir
|
- **Run** `npm run build` in /client/ dir, `npm start` in /api/ dir
|
||||||
- **Visit** http://localhost:3080 (default port) & enjoy
|
- **Visit** http://localhost:3080 (default port) & enjoy
|
||||||
|
|
||||||
|
By default, only local machine can access this server. To share within network or serve as a public server, set `HOST` to `0.0.0.0` in `.env` file
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
- **Provide** all credentials, (API keys, access tokens, and Mongo Connection String) in [docker-compose.yml](docker-compose.yml) under api service
|
- **Provide** all credentials, (API keys, access tokens, and Mongo Connection String) in [docker-compose.yml](docker-compose.yml) under api service
|
||||||
|
|
@ -180,6 +188,42 @@ The Bing Access Token is the "_U" cookie from bing.com. Use dev tools or an exte
|
||||||
**Note:** Specific error handling and styling for this model is still in progress.
|
**Note:** Specific error handling and styling for this model is still in progress.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
### Proxy
|
||||||
|
|
||||||
|
If your server cannot connect to the chatGPT API server by some reason, (eg in China). You can set a environment variable `PROXY`. This will be transmitted to `node-chatgpt-api` interface.
|
||||||
|
|
||||||
|
**Warning:** `PROXY` is not `reverseProxyUrl` in `node-chatgpt-api`
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><strong>Set up proxy in local environment </strong></summary>
|
||||||
|
|
||||||
|
Here is two ways to set proxy.
|
||||||
|
- Option 1: system level environment
|
||||||
|
`export PROXY="http://127.0.0.1:7890"`
|
||||||
|
- Option 2: set in .env file
|
||||||
|
`PROXY="http://127.0.0.1:7890"`
|
||||||
|
|
||||||
|
**Change `http://127.0.0.1:7890` to your proxy server**
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><strong>Set up proxy in docker environment </strong></summary>
|
||||||
|
|
||||||
|
set in docker-compose.yml file, under services - api - environment
|
||||||
|
|
||||||
|
```
|
||||||
|
api:
|
||||||
|
...
|
||||||
|
environment:
|
||||||
|
...
|
||||||
|
- "PROXY=http://127.0.0.1:7890"
|
||||||
|
# add this line ↑
|
||||||
|
```
|
||||||
|
|
||||||
|
**Change `http://127.0.0.1:7890` to your proxy server**
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### Updating
|
### Updating
|
||||||
- As the project is still a work-in-progress, you should pull the latest and run the steps over. Reset your browser cache/clear site data.
|
- As the project is still a work-in-progress, you should pull the latest and run the steps over. Reset your browser cache/clear site data.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue