Skip to content

A simple Next.js application providing an intuitive ChatGPT-like interface for Google's Gemini AI API, with seamless conversation management, streaming responses, and PostgreSQL-backed chat history.

License

Notifications You must be signed in to change notification settings

W4D-cmd/QuantaGem

Repository files navigation

Gemini Chat Interface

Warning

Work-in-progress: This project is currently in a very early stage. Only the minimum core functionality is implemented, and many features are still missing or incomplete.

A simple, open-source Next.js web interface for interacting with Google's Gemini AI API. It provides a ChatGPT-like chat experience with basic streaming response functionality, using PostgreSQL to store chat history.

Features

  • Interactive, ChatGPT-inspired chat interface
  • Integration with Google's Gemini AI API
  • Basic streaming responses
  • Persistent conversation history (PostgreSQL)
  • Support for free and paid Google API keys
  • Markdown and code syntax highlighting
  • Modern UI built with Next.js and Tailwind CSS

Installation

Prerequisites

1. Clone the repository:

git clone https://github.com/W4D-cmd/QuantaGem.git

2. Environment Configuration

Create a new file .env.local in the root of the repository. Copy and paste the content of the .env file into it and set your API keys.

Note

If you do not have multiple Google accounts or wish to only use the free API simply put the same key for both entries.

FREE_GOOGLE_API_KEY="your_free_google_api_key"
PAID_GOOGLE_API_KEY="your_paid_google_api_key"

Running the Application

Inside the cloned repository execute the following command to start up the docker environment including the database and the Next.js app:

docker compose up --build

Open your browser at http://localhost:3000.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/my-feature).
  5. Create a new pull request.

License

Licensed under the MIT License. See LICENSE for details.

About

A simple Next.js application providing an intuitive ChatGPT-like interface for Google's Gemini AI API, with seamless conversation management, streaming responses, and PostgreSQL-backed chat history.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages