# Server configuration. # The server will listen to localhost:3080 request by default. You can set the target ip as you want. # If you want this server can be used outside your local machine, for example to share with other # machine or expose this from a docker container, set HOST=0.0.0.0 or your external ip interface. # # Tips: HOST=0.0.0.0 means listening on all interface. It's not a real ip. Use localhost:port rather # than 0.0.0.0:port to open it. HOST=localhost PORT=3080 NODE_ENV=development # Change this to proxy any API request. It's useful if your machine have difficulty calling the original API server. # PROXY="http://YOUR_PROXY_SERVER" # Change this to your MongoDB URI if different and I recommend appending chatgpt-clone MONGO_URI="mongodb://127.0.0.1:27017/chatgpt-clone" # API key configuration. # Leave blank if you don't want them. OPENAI_KEY= BING_TOKEN= # ChatGPT Browser Client (free but use at your own risk) # Access token from https://chat.openai.com/api/auth/session # Exposes your access token to a 3rd party CHATGPT_TOKEN= # If you have access to other models on the official site, you can use them here. # Defaults to 'text-davinci-002-render-sha' if left empty. # options: gpt-4, text-davinci-002-render, text-davinci-002-render-paid, or text-davinci-002-render-sha # You cannot use a model that your account does not have access to. You can check # which ones you have access to by opening DevTools and going to the Network tab. # Refresh the page and look at the response body for https://chat.openai.com/backend-api/models. BROWSER_MODEL= # Enable Message/Convo Search # Requires installation of free self-hosted Meilisearch or Paid Remote Plan (Remote not tested) # The easiest setup for this is through docker-compose, which takes care of it for you. # SEARCH=TRUE SEARCH= # REQUIRED FOR SEARCH: MeiliSearch Host, mainly for api server to connect to the search server. MEILI_HOST='http://0.0.0.0:7700' # REQUIRED FOR SEARCH: MeiliSearch HTTP Address, mainly for docker-compose to expose the search server. MEILI_HTTP_ADDR='0.0.0.0:7700' # REQUIRED FOR SEARCH: needs a secure key, feel free to generate your own. # This master key must be at least 16 bytes, composed of valid UTF-8 characters. # Meilisearch will throw an error and refuse to launch if no master key is provided or if it is under 16 bytes, # Meilisearch will suggest a secure autogenerated master key. MEILI_MASTER_KEY=WjRvKvpelIYHa4dlcDGsdT9c0CKRbY-4VcuCQ1iZPcc # User System # global enable/disable the sample user system. # this is not a ready to use user system. # dont't use it, unless you can write your own code. ENABLE_USER_SYSTEM=