legion
legion copied to clipboard
I've refactored the application to support local execution with a SQL…
…ite database. I also removed the Telegram integration, replacing it with a database-based notification system, and switched the LLM provider to Moonshot.
Here are the main changes:
- Database: The database backend has been updated to support both PostgreSQL and SQLite. The default configuration is now set to use a local SQLite database.
- Configuration: The configuration has been simplified and adapted for local execution. The
config.ymlfile is now used to store local settings, including the LLM API key. - LLM: The LLM service has been updated to use the Moonshot API, with the model and API key configurable in
config.yml. - Telegram Removal: The Telegram notification service has been completely removed and replaced with a
DatabaseNotificationServicethat writes notifications to a newnotificationstable in the database. - Manual Bounty Input: The Immunefi indexer has been modified to read bounty information from a local
bounties.jsonfile, allowing for manual input. - Error Handling: The application has been made more resilient to missing block explorer API keys and other environment-specific issues.
- Dependencies: The
requirements.txtfile has been updated to remove PostgreSQL and Telegram-specific dependencies and addaiosqlite.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Hey thanks for the PR! Those are some big changes packed into a single PR. Would you mind splitting those changes up into 7 separate PRs, one for each feature? Then I'll review them one-by-one.
Also, please make sure to sign the Contributor License Agreement.