Skip to content

javidahmed64592/rpi-ai

Repository files navigation

python Flutter CI Build Docker License

Raspberry Pi AI

A FastAPI application with endpoints to chat with Google's Gemini AI. Flutter is used to create a cross-platform application to interact with this API.

Table of Contents

Prerequisites

  • Docker and Docker Compose installed

Quick Start

Installation

Download the latest release from GitHub Releases.

Configuration

Rename .env.example to .env and edit it to configure the server.

  • HOST: Server host address (default: localhost)
  • PORT: Server port (default: 443)
  • API_TOKEN_HASH: Leave blank to auto-generate on first run, or provide your own token hash
  • GEMINI_API_KEY: API key from Google AI Studio

Managing the Container

# Start the container
docker compose up -d

# Stop the container
docker compose down

# Update to the latest version
docker compose pull && docker compose up -d

# View the logs
docker compose logs -f rpi-ai

Note: You may need to add your user to the Docker group and log out/in for permission changes to take effect:

sudo usermod -aG docker ${USER}

Links

Flutter Application

A Flutter application is created in the /ui directory. This provides a GUI for interacting with the API. See the README.md in the /ui directory for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A lightweight AI chatbot using Google Gemini and FastAPI.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors