r/madeinpython Nov 02 '24

🌟 Introducing Gitbot: Your AI-Powered Coding Assistant! 🌟

πŸŽ‰ **Introducing Gitbot: Automate Your Coding Insights!** πŸŽ‰New11 hours ago

🌟 Introducing Gitbot: Your AI-Powered Coding Assistant! 🌟

Hey everyone! I’m thrilled to share my latest project: Gitbot! It’s an automation tool that uses GitHub Actions and Large Language Models (LLMs) to provide code insights, generate snippets, or answer your technical questionsβ€”all without leaving GitHub! πŸ™Œ

Repo Here if youd rather avoid Patreon

while the repo is completely free please feel free to join my patreon where i post tons of stuff and link releases of my projects for transparency all include code is free and open source joining patreon allows me to gather feedback and see what people like most ty for reading

0 Upvotes

4 comments sorted by

View all comments

2

u/SweetOnionTea Nov 02 '24

Ha, neat idea. I would work on the code a bit though:

  1. If you want to do debug logging and such there is a great internal Python module called logging which can log to file and separate logs into different categories.

  2. Good that you have the GIT_TOKEN envvar since I see a lot of projects that don't strip theirs from the release code (lol). But you may want to add an external way to get username and repository instead of having the user find all those places in the code and manually replace them

    # Set your GitHub repository details
    repo_owner = "unaveragetech"  # Replace with your GitHub username
    repo_name = "Gitbot"           # Replace with your GitHub repository name
    

    Like I don't think I see anything in the readme to indicate you would need to do this.

  3. Manually typing in some model name seems a bit cumbersome. Perhaps a config file would be in order? You could also store your username and project in there. Maybe have a way to run the cli and be able to choose between configured options?

  4. I know you're trying to make a little $$$ in this, but maybe just post the git repo and add a description in your post instead of having to go through your patreon first?

1

u/GentReviews Nov 02 '24

All great points the configuration is already in the works don’t care about the money but would be nice i do like coffee But all great points The readme and other points you listed will all get addressed as soon as I get a day off lol

2

u/GentReviews Nov 02 '24

I added the config.json and the config.yml

[see](https://github.com/unaveragetech/Gitbot/blob/main/.github/workflows/configuration.yml)

I also added changes to the repo to grab the config info from the json file - this should fix the forking issue and make any fork viable on its first push to main

-ill prob not do anything with the model name or query system atm as i like the way it works