Coder Social home page Coder Social logo

gpt-repository-loader's People

Contributors

mpoon avatar tnvmadhav avatar zackees avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpt-repository-loader's Issues

Add a new test

We want to add a new end to end test for gpt-repository-loader. The test should use gpt-repository-loader to process an example repository and ensure that the output is what we expect.

Add license

Add a permissive open source license to this project.

SyntaxError: invalid syntax

  File "gpt_repository_loader.py", line 30
    output_file.write(f"{relative_file_path}\n")
                                              ^
SyntaxError: invalid syntax

I followed the instruction but getting the above error when trying to run the command on my repository.

ignore `.tox`

Currently .tox is included into the output.txt. This is a lot of files.

Allow users to change default preamble text

We want gpt-repository-loader to accept a new command line argument that allows the user to override the default preamble text generated in output.txt before any filenames or file content is output.

Automate PR creation? (e.g. via GitHub+AskGPT integration)

I see you said that you manually created PR #17 from the output of ChatGPT.

What if we could automate PR creation? The only manual step would be to create a GitHub account for ChatGPT. After creating that, I guess we would need a script that:

  • Gathers GitHub credentials from an account (e.g. ssh public key or key token).
  • Uses a tool that can feed the output of GptRepoLoader to ChatGPT (example: AskGPT): https://github.com/praeclarum/AskGPT
  • Tell ChatGPT to write his solution as a .patch file.
  • Apply it via git am locally.
  • Push branch to ChatGPT's fork in ChatGPT's Github account.
  • Hit GitHubActions API to create PR.

gpt-4 doesn't seem to think this is better than a zip

I compared, zipping a medium size repo to representing it with one big file, as per this tool. I got repeated response generation errors. When I ask GPT-4 the meta questions about which was better, each method had some pros and cons, but it was definitely leaning towards zip.

Allow user to specify output file details

  • We want the user to be able to specify the output file path and file name when running the gpt-repository-loader command.
  • There should still be a default output file if the user choses not to specify
  • Make sure to update any usage text, helper text, and readme files so users know how to specify the output file path and file name

Update README with usage details

Update the README file with:

  • A short overview of the purpose of gpt-repository-loader
  • Usage information on how to use gpt-repository-loader aimed toward getting new users started quickly

Test suite

Add a test harness to gpt-repository-loader

  • Add a placeholder test that always passes
  • Update the README to include instructions on how to run tests in gpt-repository-loader

An option to compress the file contents

GPT-4, can you help me with these items:

  • what are some ways to compress the file contents without losing data so that the output file is smaller than the default output file
  • can you choose the most promising of your suggestions and add a new option to allow users to compress the file contents
  • update the README so new users know how to use this option

Update .gptignore

Add the following files to .gptignore

  • LICENSE
  • everything in the .github directory

In many applications, output.text is too long to input

Thank you for the wonderful tool!

Problem

When inputting to GPT-4 at once, I get the error "The message you submitted was too long, please reload the conversation and submit something shorter."

Details

In my fairly simple React app, when I output output.text, the number of lines reached 6 million, and of course, most of it was node_modules. When I excluded descriptions unrelated to the app, such as node_modules, yarn.lock, and .git/, it reduced to about 1,500 lines, but I still got the same error.

Now, I've declared to send one file at a time, and by repeatedly copying and pasting, it seems that the files can be read.

I will now type in the code for an application, file by file. The following text is a Git repository with code. The structure of the text are sections that begin with ----, followed by a single line containing the file path and file name, followed by a variable amount of lines containing the file contents. The text representing the Git repository ends when the symbols --END-- are encounted. Any further text beyond --END-- are meant to be interpreted as instructions using the aforementioned Git repository as context.

Suggestion

It might be useful to have features like the following:

  • A function to exclude large code, binary code, and code unrelated to the app
  • A function to divide text files according to the maximum character count of each GPT API, and add a prompt to that effect

By the way

With GPT-4, I could send about 400 lines at a time (4-5 files).
Also, every time I sent it, the contents of the file were properly explained, and when I sent it up to --END--, it even created a summary for me, which was impressive.

From now on, I would like to verify whether GPT can handle code maintenance and adding new features.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.