Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
Add more information in env.example. Give current host address when HOST=0.0.0.0
Wentao Lyu860403040455
diff --git a/api/.env.example b/api/.env.exampleindex 14209cff03..e679f6a0e0 100644--- a/api/.env.example+++ b/api/.env.example@@ -1,13 +1,22 @@-OPENAI_KEY=-HOST=+# 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=localhostPORT=3080NODE_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-cloneMONGO_URI="mongodb://127.0.0.1:27017/chatgpt-clone"-# Change this to proxy any request.-PROXY=--CHATGPT_TOKEN=""-BING_TOKEN=""\ No newline at end of file+# API key configuration.+# Leave blank if you don't want them.+OPENAI_KEY=+CHATGPT_TOKEN=+BING_TOKEN=\ No newline at end of filediff --git a/api/server/index.js b/api/server/index.jsindex 5f65569b27..b380932531 100644--- a/api/server/index.js+++ b/api/server/index.js@@ -25,5 +25,8 @@ app.use('/api/customGpts', routes.customGpts);app.use('/api/prompts', routes.prompts);app.listen(port, host, () => {- console.log(`Server listening at http://${host}:${port}`);+ if (host=='0.0.0.0')+ console.log(`Server listening on all interface at port ${port}. Use http://localhost:${port} to access it`);+ else+ console.log(`Server listening at http://${host=='0.0.0.0'?'localhost':host}:${port}`);});\ No newline at end of file