{"id":14070248,"url":"https://github.com/hillis/gpt-4-chat-ui","last_synced_at":"2025-07-30T07:30:58.166Z","repository":{"id":152585791,"uuid":"619899835","full_name":"hillis/gpt-4-chat-ui","owner":"hillis","description":"This project is a simple React-based chat interface that uses Next.js and communicates with OpenAI's GPT-4 (or GPT-3.5-turbo) language model to generate responses.","archived":false,"fork":false,"pushed_at":"2023-10-28T08:46:14.000Z","size":342,"stargazers_count":103,"open_issues_count":9,"forks_count":57,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-08-13T07:17:21.905Z","etag":null,"topics":["chatgpt","gpt4-api","nextjs-template","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hillis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-03-27T16:25:01.000Z","updated_at":"2024-08-01T16:09:57.000Z","dependencies_parsed_at":"2024-02-29T08:23:51.665Z","dependency_job_id":"581bde9a-a8f2-407d-8acb-87b53d095cbd","html_url":"https://github.com/hillis/gpt-4-chat-ui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hillis%2Fgpt-4-chat-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hillis%2Fgpt-4-chat-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hillis%2Fgpt-4-chat-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hillis%2Fgpt-4-chat-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hillis","download_url":"https://codeload.github.com/hillis/gpt-4-chat-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228102649,"owners_count":17869894,"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":["chatgpt","gpt4-api","nextjs-template","typescript"],"created_at":"2024-08-13T07:07:36.066Z","updated_at":"2024-12-04T11:31:31.854Z","avatar_url":"https://github.com/hillis.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# **GPT 4 Chat UI**\n\nThis project is a simple React-based chat interface that uses Next.js and communicates with OpenAI's GPT-4 (or GPT-3.5-turbo) language model to generate responses.\n\n## **Features**\n\n- Responsive chat interface\n- Auto-scroll to the latest message\n- Message input validation\n- OpenAI GPT-4 integration\n- Loading indicator during API requests\n\n## **Getting Started**\n\nThese instructions will help you set up the project on your local machine.\n\n### **Prerequisites**\n\n- Node.js \u003e= 14.x\n- npm\n\n### **Dependencies**\n\n- **`@emotion/react`**: ^11.10.6\n- **`@emotion/styled`**: ^11.10.6\n- **`@mui/material`**: ^5.11.14\n- **`@types/node`**: 18.15.10\n- **`@types/react`**: 18.0.29\n- **`@types/react-dom`**: 18.0.11\n- **`eslint`**: 8.36.0\n- **`eslint-config-next`**: 13.2.4\n- **`next`**: 13.2.4\n- **`openai`**: ^3.2.1\n- **`react`**: 18.2.0\n- **`react-dom`**: 18.2.0\n- **`react-markdown`**: ^8.0.6\n- **`typescript`**: 5.0.2\n\n### **Installation**\n\n1. Clone the repository:\n\n```\n\ngit clone https://github.com/hillis/gpt-4-chat-ui.git\n\n```\n\n1. Change to the project directory:\n\n```\n\ncd gpt-4-chat-ui\n\n```\n\n1. Install dependencies:\n\n\n```\n\nnpm install\n\n```\n\n1. Add your OpenAI API key to a **`.env`** file:\n\n```\nenvCopy code\nOPENAI_API_KEY=your_openai_api_key_here\n\n```\n\nMake sure to replace **`your_openai_api_key_here`** with your actual OpenAI API key.\n\n1. Run the development server:\n\n\n```\n\nnpm run dev\n\n```\n\nNow you can open your browser and navigate to **`http://localhost:3000`** to see the chat interface in action.\n\n## **Deployment**\n\nTo deploy the application, follow the **[Next.js deployment documentation](https://nextjs.org/docs/deployment)**.\n\n## **Built With**\n\n- **[Next.js](https://nextjs.org/)** - The React framework used\n- **[TypeScript](https://www.typescriptlang.org/)** - The programming language used\n- **[OpenAI API](https://beta.openai.com/docs/)** - The AI language model used\n\n## **Contributing**\nUsed Template and converted to Typescript\nFrontend of this repo is inspired by langchain-chat-nextjs **[LangChain-Chat-NextJS](https://github.com/zahidkhawaja/langchain-chat-nextjs)**\n\n\n\n## **License**\n\nThis project is licensed under the MIT License - \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhillis%2Fgpt-4-chat-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhillis%2Fgpt-4-chat-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhillis%2Fgpt-4-chat-ui/lists"}