Giter VIP home page Giter VIP logo

ai-messenger's Introduction

AI Messenger for macOS

Aim Image

AI Messenger is a macOS application designed to read your chat.db table and send messages to the chat when prompted. It also supports sending messages to self-chats (chats with yourself).

Features

  • Reads and interacts with your chat.db table.
  • Sends messages to chats when called with @a (or any mention you configure).
  • Configurable with user-specific details.

Requirements

  • macOS
  • Full Disk Access enabled in Privacy & Security settings.
  • Ollama installed for model support.
  • Python 3.12 (see requirements.txt)

Installation and Setup

Step 1: Clone the Repository

First, clone the repository to your local machine:

git clone https://github.com/yourusername/ai-messenger.git
cd ai-messenger

Step 2: Set Up the Virtual Environment

Create a virtual environment and install the required packages:

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Step 3: Configure the Application

Navigate to the src/config directory and open the configuration file. Set the model running on Ollama.

{
  "model": "ollama_model_name"
}

Step 4: Build the Application

Use the pyinstaller builder to create the .app file:

python build_app.py

Step 5: Move the Application to the Applications Folder

Once you have the .app file, copy it to your Applications folder:

cp dist/AI_Messenger.app /Applications/

Step 6: Enable Full Disk Access

Go to System Preferences > Privacy & Security > Full Disk Access and enable Full Disk Access for AI Messenger.

Step 7: Install and Setup Ollama

  1. Download and install Ollama from here.
  2. Open a terminal and run the following command to pull the latest model:
git pull llama3

Usage

Running the Application

You can now run AI Messenger from your Applications folder.

Sending Messages

To send a message to a chat:

  • Mention @a at the beginning or end of the chat for AIM to jump in.

Troubleshooting

  • Ensure Full Disk Access is enabled.
  • Verify the configuration file has the correct details.
  • Make sure Ollama is correctly installed and the latest model is pulled.

I've had an issue where the FDA flicks off even after flicking it on, so double check.

Contributing

Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the GNU General Public License (GPL). See the LICENSE file for details.

By following these steps, you should be able to successfully install and use AI Messenger on your macOS device. If you encounter any issues, refer to the troubleshooting section or open an issue in the repository.

ai-messenger's People

Watchers

keston avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.