ChatGPT-Next-Web

Frequently Asked Questions

How to get help quickly?

  1. Ask ChatGPT / Bing / Baidu / Google, etc.
  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.

Deployment Related Questions

Why does the Docker deployment version always prompt for updates

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.

How to deploy on Vercel

  1. Register a Github account and fork this project.
  2. Register Vercel (mobile phone verification required, Chinese number can be used), and connect your Github account.
  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)
    • 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.

How to modify Vercel environment variables

What is the environment variable CODE? Is it necessary to set it?

This is your custom access password, you can choose:

  1. Do not set it, delete the environment variable. Be cautious: anyone can access your project at this time.
  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

Why doesn’t the version I deployed have streaming response

Related discussion: #386

If you use nginx reverse proxy, you need to add the following code to the configuration file:

# No caching, support streaming output
proxy_cache off;  # Turn off caching
proxy_buffering off;  # Turn off proxy buffering
chunked_transfer_encoding on;  # Turn on chunked transfer encoding
tcp_nopush on;  # Turn on TCP NOPUSH option, disable Nagle algorithm
tcp_nodelay on;  # Turn on TCP NODELAY option, disable delay ACK algorithm
keepalive_timeout 300;  # Set keep-alive timeout to 65 seconds

If you are deploying on netlify, this issue is still waiting to be resolved, please be patient.

I’ve deployed, but it’s not accessible

Please check and troubleshoot the following issues:

Usage Related Questions

Why does it always prompt “An error occurred, please try again later”

There could be many reasons, please check the following in order:

Why does ChatGPT’s reply get garbled

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.

It prompts “Now it’s unauthorized, please enter the access password on the settings page” when using?

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.

It prompts “You exceeded your current quota, …” when using?

The API KEY is problematic. Insufficient balance.

What is a proxy and how to use it?

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.

Can I deploy it on a server in China?

It is possible but there are issues to be addressed:

Network Service Related Questions

What is Cloudflare?

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.

What is Vercel?

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.

How to obtain a domain name?

  1. Register with a domain provider, such as Namesilo (supports Alipay) or Cloudflare for international providers, and Wanwang for domestic providers in China.
  2. Free domain name providers: eu.org (second-level domain), etc.
  3. Ask friends for a free second-level domain.

How to obtain a server

OpenAI-related Questions

How to register an OpenAI account?

Go to chat.openai.com to register. You will need:

How to activate OpenAI API? How to check API balance?

Official website (requires VPN): https://platform.openai.com/account/usage 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.

Why doesn’t my new OpenAI account have an API balance?

(Updated April 6th) Newly registered accounts usually display API balance within 24 hours. New accounts are currently given a $5 balance.

How to recharge OpenAI API?

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:

  1. Depay virtual credit card
  2. Apply for a foreign credit card
  3. Find someone online to top up

How to access the GPT-4 API?

(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 Wait for email updates afterwards.

How to use the Azure OpenAI interface

Please refer to: #371

Why is my Token consumed so fast?

Related discussion: #518