fix: Add open-soucerer setup

pull/64/head
Zack 1 year ago
parent 6b9b419273
commit 923adaa89d

@ -0,0 +1,6 @@
ELEVEN_LABS_API_KEY = "<your_api_key>" # https://elevenlabs.io/speech-synthesis
OPENAI_API_KEY = "<your_api_key>" # https://platform.openai.com/account/api-keys
DISCORD_TOKEN="discord_token"
API_BASE="api_base"
SYSTEM_MESSAGE=""
BOT_ID="your_bot_token"

@ -0,0 +1,124 @@
---
title: open-interpreter
app_file: jarvis.py
sdk: gradio
sdk_version: 3.33.1
---
# Open-Sourcerer: The Code Sorcerer's Apprentice
![Sourcerer](Open-Sourcerer.jpg)
Greetings, fellow developer! Welcome to the realm of the Open-Sourcerer, your trusty assistant in the magical world of open source projects. Open-Sourcerer is here to assist you in finding, integrating, and mastering the arcane arts of open source code.
## Introduction
Open-Sourcerer is your magical companion, capable of traversing the vast landscapes of the internet, particularly GitHub, to discover open source projects that align with your desires. It can also lend you a hand in weaving these projects into your own creations.
### How Does Open-Sourcerer Work?
Open-Sourcerer operates in two phases:
1. **Discovery**: It explores the realms of GitHub to unearth repositories that resonate with your quest.
2. **Integration and Assistance**: Once you've chosen your allies (repositories), Open-Sourcerer helps you integrate them into your own codebase. It can even conjure code snippets to assist you.
## Installation
Before embarking on this mystical journey, ensure you have the following:
- Python (version X.X.X)
- Git (version X.X.X)
- Your favorite code editor (e.g., Visual Studio Code)
Now, let's summon the Open-Sourcerer:
```shell
pip install open-sourcerer
```
## Configuration
Open-Sourcerer must be attuned to your intentions. Let's configure it:
```shell
open-sourcerer configure
```
Follow the instructions to set up your preferences, such as the programming languages and search keywords that align with your project.
## MVP (Minimum Viable Potion) Tasks
1. **Prepare the Cauldron**
- [ ] Create a dedicated workspace/repository for Open-Sourcerer.
2. **Web Scrying**
- [ ] Implement web scraping to search GitHub for relevant open source projects.
3. **Submodule Conjuring**
- [ ] Develop a submodule management system to add selected GitHub repositories as submodules to your workspace.
4. **Bloop Integration**
- [ ] Integrate Open-Sourcerer with the Bloop tool (https://github.com/BloopAI/bloop).
- [ ] Implement code generation and assistance features.
5. **Version Control & Long-Term Memory**
- [ ] Set up version control for the workspace and submodules.
- [ ] Create a vector database to store project information for long-term memory.
6. **Magical Interface (Optional)**
- [ ] Create a user-friendly interface for interacting with Open-Sourcerer.
7. **Testing & Documentation**
- [ ] Ensure the reliability of Open-Sourcerer through thorough testing.
- [ ] Document the magic spells for fellow developers.
## Stretch Goals (Beyond the Sorcerer's Hat)
1. **Advanced Recommendation Alchemy**
- [ ] Enhance the recommendation algorithm using machine learning or NLP.
2. **Explore Other Realms**
- [ ] Expand Open-Sourcerer's reach to platforms like GitLab, Bitbucket, and more.
3. **Code Quality Insights**
- [ ] Add code review and quality analysis features for recommended projects.
4. **Summon a Community**
- [ ] Create a community where developers can collaborate on recommended open source projects.
5. **Editor Enchantments**
- [ ] Develop plugins/extensions for popular code editors to provide real-time assistance.
6. **Language Understanding Scrolls**
- [ ] Improve Open-Sourcerer's natural language understanding capabilities.
7. **Continuous Learning**
- [ ] Implement a mechanism for Open-Sourcerer to learn and adapt from user interactions.
8. **Security Warding**
- [ ] Add security scanning to identify vulnerabilities in recommended projects.
9. **Mobile App (Optional)**
- [ ] Create a mobile app version of Open-Sourcerer for convenience on your travels.
10. **Licensing & Compliance**
- [ ] Ensure Open-Sourcerer checks the licensing of recommended projects for legal compliance.
11. **Performance Enhancements**
- [ ] Optimize Open-Sourcerer's performance for faster results.
## How to Contribute
As we embark on this magical quest, we invite other sorcerers to join us. Feel free to contribute to Open-Sourcerer's development and help us unlock even more mystical powers.
```shell
git clone https://github.com/your-fork/open-sourcerer.git
cd open-sourcerer
# Create a virtual environment and activate it
pip install -r requirements.txt
python setup.py install
```
May your code be bug-free and your projects prosperous! The Open-Sourcerer awaits your commands.
```
Feel free to adapt and expand this README with more details, graphics, and styling to make it engaging and in line with the sorcerer theme.

@ -7,6 +7,7 @@ from voice import transcribe
dotenv.load_dotenv(".env")
bot_id = os.getenv("BOT_ID")
bot_token = os.getenv("DISCORD_TOKEN")
interpreter.api_key = os.getenv("API_KEY")
@ -28,7 +29,8 @@ send_image = False
@client.event
async def on_message(message):
await client.process_commands(message)
if ('<@1158923910855798804>' not in message.content) or (message.author == client.user or message.content[0] == '$'):
bot_mention = f"<@{bot_id}>"
if (bot_mention in message.content) or (message.author == client.user or message.content[0] == '$'):
return
response = []
for chunk in interpreter.chat(message.content, display=False, stream=False):

@ -0,0 +1,5 @@
openai-whisper
discord
open-interpreter
elevenlabs
gradio
Loading…
Cancel
Save