Overview
This application helps you work with the Google Gemini API on your projects:
- NEW: Scrape docs from URL and send as context
- Manage your conversation with the model
- Track token count and conversation cost accurately
- Accurate pricing for Gemini 1.5 Pro and Gemini 1.5 Flash models
- Save your conversation at any time to .txt, .md, .json, or .csv
- Load previous conversations at any time from .json
- Import/export specific messages
- Pass files/file structure with a message to the model for context
- Edit your config.json directly from the application
- View condensed version of chat history
- View a full message at any time from the chat history
- Delete messages from chat history to save input token count while leaving important messages for context
Dependencies
Installing System Dependencies (Ubuntu/Debian)
Before installing the Python requirements, you need to install the following system packages:
sudo apt update
sudo apt install python3-xlib libx11-xcb-dev libxcb-cursor0 libxrender1 libxi6 Explanation of the additional libraries:
libx11-xcb-dev: Provides development headers for the XCB (X protocol C binding) library, which PyQt6 likely uses internally.libxcb-cursor0: Specifically handles mouse cursor rendering using XCB, essential for GUI applications.libxrender1: X Render extension library, often used for advanced rendering operations (transparency, antialiasing) within X11.libxi6: XInput extension library, handling input devices like keyboards and mice in X11.
Installation
- Ensure you have installed the necessary dependencies.
- Download the zip and extract files to the directory you wish to install in.
- Open installation directory.
- Create config.json to your specifications according to config.json-template. (Optional) This can be generated inside the application.
- Create your .env file according to the .env-template. (Optional) This can be generated inside the application.
- Open terminal in the installation directory.
- Run
pip install -r requirements.txt - Run
python3 ./project_assistant_v1.2.py - Follow instructions on the screen.
NOTE If you want to use docscraping from URLs, you must install the files from https://github.com/TechnicalParadox/DocScraper in the <GeminiProjectAssistant_installation_dir>/tools/DocScraper folder! ( installation_dir/tools/DocScraper/docscraper.py )
File structure should look like this (<GeminiProjectAssistant_installation_dir>/tools/DocScraper/docscraper.py). Make sure you install the requirements. (cd installation_dir/tools/DocScraper/, pip install -r requirements.txt)
What's Changed
Full Changelog: v1.1.3...v1.2.0