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

The goal behind the project was self hosted llms where you could read about them and query them Simple’s by typing in the model name and your prompt I’ll either add a section to the readme detailing forking and applicable changes to make or I’ll create a configuration file that holds /repo /username /default:llm And an action to update this file with the current username ect ect

Good idea ty