{"id":13642493,"url":"https://github.com/blrchen/chatgpt-minimal","last_synced_at":"2025-07-01T10:33:44.063Z","repository":{"id":169802407,"uuid":"644968684","full_name":"blrchen/chatgpt-minimal","owner":"blrchen","description":"Lightweight chatgpt bot built using Next.js and the OpenAI Streaming API. 一个使用 Next.js 和 OpenAI Streaming API 创建的简易ChatGPT聊天机器人","archived":false,"fork":false,"pushed_at":"2024-05-03T10:19:02.000Z","size":739,"stargazers_count":64,"open_issues_count":1,"forks_count":42,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T01:24:58.569Z","etag":null,"topics":["ant-design","azure-openai","azureopenai","chatbot","chatbot-gui","chatgpt","chatgpt-ui","gpt-35-turbo","openai"],"latest_commit_sha":null,"homepage":"https://chatgpt-minimal.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-05-24T16:22:00.000Z","updated_at":"2025-02-13T11:34:25.000Z","dependencies_parsed_at":"2024-01-14T09:34:56.348Z","dependency_job_id":"172df75f-4053-45b1-bcad-70d24a4572ee","html_url":"https://github.com/blrchen/chatgpt-minimal","commit_stats":null,"previous_names":["blrchen/gptlite-minimal","blrchen/chatgpt-minimal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-minimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-minimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-minimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blrchen%2Fchatgpt-minimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blrchen","download_url":"https://codeload.github.com/blrchen/chatgpt-minimal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243730842,"owners_count":20338724,"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":["ant-design","azure-openai","azureopenai","chatbot","chatbot-gui","chatgpt","chatgpt-ui","gpt-35-turbo","openai"],"created_at":"2024-08-02T01:01:32.132Z","updated_at":"2025-03-15T12:30:28.577Z","avatar_url":"https://github.com/blrchen.png","language":"TypeScript","funding_links":[],"categories":["Chatbots"],"sub_categories":[],"readme":"# ChatGPT Minimal\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n## Demo\n\nVisit the [ChatGPT Minimal Demo Site](https://chatgpt-minimal.vercel.app)\n\n## Features\n\nChatGPT Minimal is a lightweight chatbot built using Next.js and the OpenAI Streaming API for the GPT-3.5 model. It supports both OpenAI and Azure OpenAI accounts.\n\nComponents:\n\n- Next.js v13\n- OpenAI Streaming API (GPT-3.5 model, gpt-3.5-turbo)\n- API Routes\n- Chatbot UI with React and Ant Design\n\n![demo](./docs/images/demo.jpg)\n\nFor a full-featured ChatGPT UI codebase, visit [ChatGPT Lite](https://github.com/blrchen/chatgpt-lite).\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 required environment variables.\n\n### Deploy on Vercel\n\nClick the button below to deploy on Vercel:\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fblrchen%2Fchatgpt-minimal\u0026project-name=chatgpt-minimal\u0026framework=nextjs\u0026repository-name=chatgpt-minimal)\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-minimal\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-minimal\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 modify environment variables as needed.\n5. Start the application using `npm run dev`.\n6. Open `http://localhost:3000` in your browser.\n\n### Running Locally with Docker\n\n1. Clone the repository and go 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 the application 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 intend 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\nFor Azure OpenAI account:\n\n| Name                      | Description                                    |\n| ------------------------- | ---------------------------------------------- |\n| AZURE_OPENAI_API_BASE_URL | Endpoint (e.g., https://xxx.openai.azure.com). |\n| AZURE_OPENAI_API_KEY      | Key                                            |\n| AZURE_OPENAI_DEPLOYMENT   | Model deployment name                          |\n\n## Contribution\n\nWe welcome PRs of all sizes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblrchen%2Fchatgpt-minimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblrchen%2Fchatgpt-minimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblrchen%2Fchatgpt-minimal/lists"}