{"id":13775224,"url":"https://github.com/blrchen/chatgpt-lite","last_synced_at":"2025-04-03T16:11:36.930Z","repository":{"id":152082610,"uuid":"614660054","full_name":"blrchen/chatgpt-lite","owner":"blrchen","description":"Fast ChatGPT UI with support for both OpenAI and Azure OpenAI. 快速的ChatGPT UI，支持OpenAI和Azure OpenAI。","archived":false,"fork":false,"pushed_at":"2024-10-05T13:52:20.000Z","size":1426,"stargazers_count":206,"open_issues_count":4,"forks_count":86,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-13T04:47:05.278Z","etag":null,"topics":["azure-openai","azureopenai","chatbot","chatbot-gui","chatgpt","chatgpt-app","chatgpt-bot","chatgpt-gui","chatgpt-ui","gpt","gpt-3","gpt-35-turbo","gpt3","llm","openai","openai-api","prompt-engineering","prompt-tuning"],"latest_commit_sha":null,"homepage":"https://gptlite.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blrchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-16T03:33:12.000Z","updated_at":"2024-10-06T01:15:51.000Z","dependencies_parsed_at":"2024-01-20T20:31:52.266Z","dependency_job_id":"ccb3bb7a-73d2-456b-b229-9bb30eb37d6e","html_url":"https://github.com/blrchen/chatgpt-lite","commit_stats":null,"previous_names":["blrchen/chatgpt-lite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blrchen","download_url":"https://codeload.github.com/blrchen/chatgpt-lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247033811,"owners_count":20872532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-openai","azureopenai","chatbot","chatbot-gui","chatgpt","chatgpt-app","chatgpt-bot","chatgpt-gui","chatgpt-ui","gpt","gpt-3","gpt-35-turbo","gpt3","llm","openai","openai-api","prompt-engineering","prompt-tuning"],"created_at":"2024-08-03T17:01:35.524Z","updated_at":"2025-04-03T16:11:36.897Z","avatar_url":"https://github.com/blrchen.png","language":"TypeScript","funding_links":[],"categories":["🌐 Web","Prompts"],"sub_categories":[],"readme":"# ChatGPT Lite\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n## Demo\n\nVisit the [ChatGPT Lite Demo Site](https://bit.ly/chatgpt-lite)\n\n## Features\n\nChatGPT Lite is a lightweight ChatGPT web interface developed using Next.js and the [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat). It's compatible with both OpenAI and Azure OpenAI accounts.\n\n- Deploy a custom ChatGPT web interface that supports markdown, prompt storage, and multi-person chats.\n- Create a private, web-based ChatGPT for use among friends without sharing your API key.\n- Clear and expandable codebase, ideal as a starting point for your next AI Next.js project.\n\n![demo](./docs/images/demo.jpg)\n\nFor a beginner-friendly version of the ChatGPT UI codebase, visit [ChatGPT Minimal](https://github.com/blrchen/chatgpt-minimal).\n\n## Prerequisites\n\nYou need an OpenAI or Azure OpenAI account.\n\n## Deployment\n\nRefer to the [Environment Variables](#environment-variables) section for necessary environment variables.\n\n### Deploy on Vercel\n\nClick the button below to deploy on Vercel:\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fblrchen%2Fchatgpt-lite\u0026project-name=chatgpt-lite\u0026framework=nextjs\u0026repository-name=chatgpt-lite)\n\n### Deploy with Docker\n\nFor OpenAI account users:\n\n```\ndocker run -d -p 3000:3000 \\\n   -e OPENAI_API_KEY=\"\u003cREPLACE-ME\u003e\" \\\n   blrchen/chatgpt-lite\n```\n\nFor Azure OpenAI account users:\n\n```\ndocker run -d -p 3000:3000 \\\n   -e AZURE_OPENAI_API_BASE_URL=\"\u003cREPLACE-ME\u003e\" \\\n   -e AZURE_OPENAI_API_KEY=\"\u003cREPLACE-ME\u003e\" \\\n   -e AZURE_OPENAI_DEPLOYMENT=\"\u003cREPLACE-ME\u003e\" \\\n   blrchen/chatgpt-lite\n```\n\n## Development\n\n### Running Locally\n\n1. Install NodeJS 20.\n2. Clone the repository.\n3. Install dependencies with `npm install`.\n4. Copy `.env.example` to `.env.local` and update environment variables.\n5. Start the application using `npm run dev`.\n6. Visit `http://localhost:3000` in your browser.\n\n### Running Locally with Docker\n\n1. Clone the repository and navigate to the root directory.\n2. Update the `OPENAI_API_KEY` environment variable in the `docker-compose.yml` file.\n3. Build the application using `docker-compose build .`.\n4. Start it by running `docker-compose up -d`.\n\n## Environment Variables\n\nRequired environment variables:\n\nFor OpenAI account:\n\n| Name                | Description                                                                                             | Default Value            |\n| ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------ |\n| OPENAI_API_BASE_URL | Use if you plan to use a reverse proxy for `api.openai.com`.                                            | `https://api.openai.com` |\n| OPENAI_API_KEY      | Secret key string obtained from the [OpenAI API website](https://platform.openai.com/account/api-keys). |                          |\n| OPENAI_MODEL        | Model of GPT used                                                                                       | `gpt-3.5-turbo`          |\n\nFor Azure OpenAI account:\n\n| Name                      | Description                                      |\n| ------------------------- | ------------------------------------------------ |\n| AZURE_OPENAI_API_BASE_URL | Endpoint (e.g., \u003chttps://xxx.openai.azure.com\u003e). |\n| AZURE_OPENAI_API_KEY      | Key                                              |\n| AZURE_OPENAI_DEPLOYMENT   | Model deployment name                            |\n\n## Contribution\n\nPRs of all sizes are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblrchen%2Fchatgpt-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblrchen%2Fchatgpt-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblrchen%2Fchatgpt-lite/lists"}