You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/faq-en.md
+56-1
Original file line number
Diff line number
Diff line change
@@ -1,36 +1,45 @@
1
1
# Frequently Asked Questions
2
2
3
3
## How to get help quickly?
4
+
4
5
1. Ask ChatGPT / Bing / Baidu / Google, etc.
5
6
2. Ask online friends. Please provide background information and a detailed description of the problem. High-quality questions are more likely to get useful answers.
6
7
7
8
# Deployment Related Questions
8
9
9
10
## Why does the Docker deployment version always prompt for updates
11
+
10
12
The Docker version is equivalent to the stable version, and the latest Docker is always consistent with the latest release version. Currently, our release frequency is once every one to two days, so the Docker version will always be one to two days behind the latest commit, which is expected.
11
13
12
14
## How to deploy on Vercel
15
+
13
16
1. Register a Github account and fork this project.
14
17
2. Register Vercel (mobile phone verification required, Chinese number can be used), and connect your Github account.
15
18
3. Create a new project on Vercel, select the project you forked on Github, fill in the required environment variables, and start deploying. After deployment, you can access your project through the domain provided by Vercel. (Requires proxy in mainland China)
16
-
* If you need to access it directly in China: At your DNS provider, add a CNAME record for the domain name, pointing to cname.vercel-dns.com. Then set up your domain access on Vercel.
19
+
20
+
- If you need to access it directly in China: At your DNS provider, add a CNAME record for the domain name, pointing to cname.vercel-dns.com. Then set up your domain access on Vercel.
17
21
18
22
## How to modify Vercel environment variables
23
+
19
24
- Enter the Vercel console page;
20
25
- Select your chatgpt-next-web project;
21
26
- Click on the Settings option at the top of the page;
22
27
- Find the Environment Variables option in the sidebar;
23
28
- Modify the corresponding values as needed.
24
29
25
30
## What is the environment variable CODE? Is it necessary to set it?
31
+
26
32
This is your custom access password, you can choose:
33
+
27
34
1. Do not set it, delete the environment variable. Be cautious: anyone can access your project at this time.
28
35
2. When deploying the project, set the environment variable CODE (supports multiple passwords, separated by commas). After setting the access password, users need to enter the access password in the settings page to use it. See [related instructions](https://github.com/Yidadaa/ChatGPT-Next-Web#access-password)
29
36
30
37
## Why doesn't the version I deployed have streaming response
38
+
31
39
> Related discussion: [#386](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/386)
32
40
33
41
If you use nginx reverse proxy, you need to add the following code to the configuration file:
42
+
34
43
```
35
44
# No caching, support streaming output
36
45
proxy_cache off; # Turn off caching
@@ -44,89 +53,135 @@ keepalive_timeout 300; # Set keep-alive timeout to 65 seconds
44
53
If you are deploying on netlify, this issue is still waiting to be resolved, please be patient.
45
54
46
55
## I've deployed, but it's not accessible
56
+
47
57
Please check and troubleshoot the following issues:
58
+
48
59
- Is the service started?
49
60
- Is the port correctly mapped?
50
61
- Is the firewall port open?
51
62
- Is the route to the server okay?
52
63
- Is the domain name resolved correctly?
53
64
65
+
## You may encounter an "Error: Loading CSS chunk xxx failed..."
66
+
67
+
To reduce the initial white screen time, Next.js enables chunking by default. You can find the technical details here:
However, Next.js has limited compatibility with older browsers, which can result in this error.
75
+
76
+
You can disable chunking during building.
77
+
78
+
For Vercel platform, you can add `DISABLE_CHUNK=1` to the environment variables and redeploy.
79
+
For self-deployed projects, you can use `DISABLE_CHUNK=1 yarn build` during the build process.
80
+
For Docker users, as the build is already completed during packaging, disabling this feature is currently not supported.
81
+
82
+
Note that when you disable this feature, all resources will be loaded on the user's first visit. This may result in a longer white screen time if the user has a poor network connection, affecting the user experience. Please consider this when making a decision.
83
+
54
84
# Usage Related Questions
55
85
56
86
## Why does it always prompt "An error occurred, please try again later"
87
+
57
88
There could be many reasons, please check the following in order:
89
+
58
90
- First, check if your code version is the latest version, update to the latest version and try again;
59
91
- Check if the api key is set correctly, the environment variable name must be uppercase with underscores;
60
92
- Check if the api key is available;
61
93
- If you still cannot determine the problem after going through the above steps, please submit a new issue in the issue area and attach the runtime log of vercel or the log of docker runtime.
62
94
63
95
## Why does ChatGPT's reply get garbled
96
+
64
97
In the settings page - model settings, there is an item called `temperature`. If this value is greater than 1, it may cause garbled replies. Adjust it back to within 1.
65
98
66
99
## It prompts "Now it's unauthorized, please enter the access password on the settings page" when using?
100
+
67
101
The project has set an access password through the environment variable CODE. When using it for the first time, you need to go to settings and enter the access code to use.
68
102
69
103
## It prompts "You exceeded your current quota, ..." when using?
104
+
70
105
The API KEY is problematic. Insufficient balance.
71
106
72
107
## What is a proxy and how to use it?
108
+
73
109
Due to IP restrictions of OpenAI, China and some other countries/regions cannot directly connect to OpenAI API and need to go through a proxy. You can use a proxy server (forward proxy) or a pre-configured OpenAI API reverse proxy.
110
+
74
111
- Forward proxy example: VPN ladder. In the case of docker deployment, set the environment variable HTTP_PROXY to your proxy address (http://address:port).
75
112
- Reverse proxy example: You can use someone else's proxy address or set it up for free through Cloudflare. Set the project environment variable BASE_URL to your proxy address.
76
113
77
114
## Can I deploy it on a server in China?
115
+
78
116
It is possible but there are issues to be addressed:
117
+
79
118
- Proxy is required to connect to websites such as Github and OpenAI;
80
119
- Domain name resolution requires filing for servers in China;
81
120
- Chinese policy restricts proxy access to foreign websites/ChatGPT-related applications, which may be blocked.
82
121
83
122
# Network Service Related Questions
123
+
84
124
## What is Cloudflare?
125
+
85
126
Cloudflare (CF) is a network service provider offering CDN, domain management, static page hosting, edge computing function deployment, and more. Common use cases: purchase and/or host your domain (resolution, dynamic domain, etc.), apply CDN to your server (can hide IP to avoid being blocked), deploy websites (CF Pages). CF offers most services for free.
86
127
87
128
## What is Vercel?
129
+
88
130
Vercel is a global cloud platform designed to help developers build and deploy modern web applications more quickly. This project and many web applications can be deployed on Vercel with a single click for free. No need to understand code, Linux, have a server, pay, or set up an OpenAI API proxy. The downside is that you need to bind a domain name to access it without restrictions in China.
89
131
90
132
## How to obtain a domain name?
133
+
91
134
1. Register with a domain provider, such as Namesilo (supports Alipay) or Cloudflare for international providers, and Wanwang for domestic providers in China.
92
135
2. Free domain name providers: eu.org (second-level domain), etc.
93
136
3. Ask friends for a free second-level domain.
94
137
95
138
## How to obtain a server
139
+
96
140
- Examples of international server providers: Amazon Web Services, Google Cloud, Vultr, Bandwagon, Hostdare, etc.
97
141
International server considerations: Server lines affect access speed in China; CN2 GIA and CN2 lines are recommended. If the server has difficulty accessing in China (serious packet loss, etc.), you can try using a CDN (from providers like Cloudflare).
98
142
- Domestic server providers: Alibaba Cloud, Tencent, etc.
99
143
Domestic server considerations: Domain name resolution requires filing; domestic server bandwidth is relatively expensive; accessing foreign websites (Github, OpenAI, etc.) requires a proxy.
100
144
101
145
# OpenAI-related Questions
146
+
102
147
## How to register an OpenAI account?
148
+
103
149
Go to chat.openai.com to register. You will need:
150
+
104
151
- A good VPN (OpenAI only allows native IP addresses of supported regions)
105
152
- A supported email (e.g., Gmail or a company/school email, not Outlook or QQ email)
106
153
- A way to receive SMS verification (e.g., SMS-activate website)
107
154
108
155
## How to activate OpenAI API? How to check API balance?
156
+
109
157
Official website (requires VPN): https://platform.openai.com/account/usage
110
158
Some users have set up a proxy to check the balance without a VPN; ask online friends for access. Please verify the source is reliable to avoid API Key leakage.
111
159
112
160
## Why doesn't my new OpenAI account have an API balance?
161
+
113
162
(Updated April 6th) Newly registered accounts usually display API balance within 24 hours. New accounts are currently given a $5 balance.
114
163
115
164
## How to recharge OpenAI API?
165
+
116
166
OpenAI only accepts credit cards from designated regions (Chinese credit cards cannot be used). If the credit cards from your region is not supported, some options include:
167
+
117
168
1. Depay virtual credit card
118
169
2. Apply for a foreign credit card
119
170
3. Find someone online to top up
120
171
121
172
## How to access the GPT-4 API?
173
+
122
174
(Updated April 6th) Access to the GPT-4 API requires a separate application. Go to the following address and enter your information to join the waitlist (prepare your OpenAI organization ID): https://openai.com/waitlist/gpt-4-api
123
175
Wait for email updates afterwards.
124
176
125
177
## How to use the Azure OpenAI interface
178
+
126
179
Please refer to: [#371](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/371)
127
180
128
181
## Why is my Token consumed so fast?
182
+
129
183
> Related discussion: [#518](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/518)
184
+
130
185
- If you have GPT-4 access and use GPT-4 API regularly, your bill will increase rapidly since GPT-4 pricing is about 15 times higher than GPT-3.5;
131
186
- If you are using GPT-3.5 and not using it frequently, but still find your bill increasing fast, please troubleshoot immediately using these steps:
132
187
- Check your API key consumption record on the OpenAI website; if your token is consumed every hour and each time consumes tens of thousands of tokens, your key must have been leaked. Please delete it and regenerate it immediately. **Do not check your balance on random websites.**
0 commit comments