ChatGPT Lite Project Introduction
ChatGPT Lite is an innovative yet lightweight web interface designed for ChatGPT, a state-of-the-art language model. Leveraging the strengths of Next.js and the OpenAI Chat API, ChatGPT Lite stands out due to its simplicity and adaptability, making it a convenient choice for individuals and small groups who wish to explore the capabilities of AI-driven chat interfaces. The project is accessible to those with either OpenAI or Azure OpenAI accounts, thereby widening its usability across different platforms.
Features
ChatGPT Lite offers several notable features:
-
Custom Deployable Interface: Users can create a tailored ChatGPT web interface supporting markdown, saving chat prompts, and handling conversations between multiple users. This ensures a personalized AI interaction experience on a user-specific domain.
-
Privacy and Control: It is designed as a private platform that can be shared among friends or colleagues, allowing users to maintain control over their API keys without the need to disclose them.
-
Clear Codebase for Development: The project’s code is clear and expandable, serving as an excellent foundation for developers interested in building their next AI-driven Next.js project.
Moreover, for those seeking a more beginner-friendly version, an alternative codebase called ChatGPT Minimal is available.
Prerequisites
To use ChatGPT Lite effectively, you'll need an account with OpenAI or Azure OpenAI. This ensures that you have the necessary access to the APIs required for deploying and utilizing the chat interfaces.
Deployment
Deploying ChatGPT Lite can be achieved through various methods, ensuring flexibility for different users and environments:
-
Deploy on Vercel: Instantly deploy the project using Vercel with a simple click of a button. This approach is hassle-free and suitable for rapid deployment scenarios.
-
Deploy with Docker: For those who prefer Docker, ChatGPT Lite can be effortlessly set up with Docker commands for both OpenAI and Azure OpenAI accounts. This method provides a robust, containerized environment for running the application.
Development
For developers looking to customize or contribute to the ChatGPT Lite project, the local development process is straightforward:
-
Running Locally: Requires the installation of NodeJS 20. Developers can clone the repository, install necessary dependencies, configure environment variables, and start the application for local testing and development.
-
Running Locally with Docker: This option is also supported, providing a streamlined experience for those who use Docker in their development environment.
Environment Variables
Several crucial environment variables need configuration to run ChatGPT Lite:
-
For OpenAI accounts:
OPENAI_API_BASE_URL
: Specifies the base URL if a reverse proxy is used.OPENAI_API_KEY
: Your secret key from the OpenAI API.OPENAI_MODEL
: The version of the GPT model being used, defaulting togpt-3.5-turbo
.
-
For Azure OpenAI accounts:
AZURE_OPENAI_API_BASE_URL
,AZURE_OPENAI_API_KEY
, andAZURE_OPENAI_DEPLOYMENT
for interaction with Azure services.
Contribution
ChatGPT Lite is an open-source project that welcomes contributions of all sizes. Whether it’s a minor tweak or a major overhaul, community involvement is encouraged to enhance and expand the project’s capabilities.
In summary, ChatGPT Lite is a versatile and developer-friendly project that provides a customizable platform for AI chat interfaces, catering to both personal and professional use cases. Its deployment ease and code clarity make it an ideal choice for users and developers interested in AI technology.