pnkvalavala / repochat Goto Github PK
View Code? Open in Web Editor NEWChatbot assistant enabling GitHub repository interaction using LLMs with Retrieval Augmented Generation
Home Page: https://repochat.streamlit.app
License: Apache License 2.0
Chatbot assistant enabling GitHub repository interaction using LLMs with Retrieval Augmented Generation
Home Page: https://repochat.streamlit.app
License: Apache License 2.0
the clone_repo function url always adds a ".git" to the URL
command = f'git clone {git_url}.git {repo_path} && rm -rf {repo_path}/.git'
but if you paste the repo URL for HTTPS from GitHub from the code button it always has this. i.e. https://github.com/pnkvalavala/repochat.git
then the command that ends up getting run is
git clone https://github.com/pnkvalavala/repochat.git.git ./cloned_repo && rm -rf ./cloned_repo/.git
which then it assumes it's a private repo since it is a 404 not found then you are prompted for your password on the CLI (not frontend). and it never completes.
I think simply adding an rstrip(".git") would be an elegant solution so people can paste the path in front end with or without .git and it will work either way:
git_url = git_url.rstrip(".git")
command = f'git clone {git_url}.git {repo_path} && rm -rf {repo_path}/.git'
Is there currently a way to pull from private repos assuming authenticated with GH CLI?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.