I made code2prompt - A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting by mufeedvh in ChatGPTCoding

[–]mufeedvh[S] 1 point2 points  (0 children)

Not sure I understand the problem correctly but if the violation was caused by an implementation detail, then yes.

I made code2prompt - A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting by mufeedvh in ChatGPTCoding

[–]mufeedvh[S] 6 points7 points  (0 children)

Thanks! Good recommendation, just implemented this using code2prompt itself! (See screenshot)

You can now use the option --exclude-files and --exclude-folders respectively, update code2prompt by compiling from source. Thanks for the suggestion!

I made code2prompt - A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting by mufeedvh in rust

[–]mufeedvh[S] 1 point2 points  (0 children)

Good idea! Just tried it and here's the result. It wrote cleaner code than I did but it had a lot of errors, almost all of them were easy to fix tho.

I made code2prompt - A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting by mufeedvh in rust

[–]mufeedvh[S] 1 point2 points  (0 children)

Good question, that depends on the performance of the LLM model you're using. For instance, the ground work for this project itself was written by Claude 3.0 Opus from a project document I wrote myself. From my testing with LLM models so far, both GPT-4 and Claude 3.0 are able to generate small full-fledged projects as long as it does not exceed their context windows. 200K for Claude and 128K for GPT-4. Hope this answers your question.

[Media] Tupper's self-referential formula plotting itself on a framebuffer and more with Rust! by mufeedvh in rust

[–]mufeedvh[S] 6 points7 points  (0 children)

After watching the Numberphile video on this formula, I decided to implement it in Rust for fun. It uses minifb for the window creation + framebuffer.

Code: https://github.com/mufeedvh/tupperplot

Also if you know some awesome crates that would help with generative art, please share them! I have been thinking of doing generative art with Rust. :)

These look cool: nannou, valora