Sri Chat is an open-source chat application built with Next.js, Firebase, and OpenAI. It allows users to log in using their Google accounts, create new chats, delete chats, and log out. Users can also choose from different language models provided by OpenAI, such as text-davinci-003
, davinci
, curie
, etc.
- User authentication with Google accounts.
- Create new chats.
- Delete chats.
- Choose from different language models.
- Next.js: Frontend framework for building React applications
- Firebase: Authentication and database services
- OpenAI: Language models for generating chat responses
- Clone the repository:
git clone https://github.com/your-username/sri-chat.git
2.Install the dependencies:
cd sri-chat
npm install
3.Configure Firebase:
-Create a new Firebase project (insert instructions on how to create a Firebase project) -Enable Google authentication (insert instructions on how to enable Google authentication) -Set up the Firebase Realtime Database (insert instructions on how to set up the database) -Copy the Firebase configuration credentials and replace them in the .env.local file.
4.Configure OpenAI:
-Obtain an API key from OpenAI (insert instructions on how to obtain the key) -Replace the placeholder API key in the .env.local file with your actual API key.
- Start the development server:
npm run dev
- Open your browser and navigate to http://localhost:3000.
- Log in using your Google account.
- Create new chats, delete existing chats, and choose different language models.
- Log out when you're done.