smol-ai / developer

the first library to let you embed a developer agent in your own app!
https://twitter.com/SmolModels
MIT License
11.79k stars 1.03k forks source link

Need some suggestions on PR #96

Closed zbram101 closed 1 year ago

zbram101 commented 1 year ago

Hi, please review PR https://github.com/smol-ai/developer/pull/95 I noticed there is an issue with creating the folder structure when it tried to follow standard structure. I saw the response from ChatGpt had an array of urls for the files but it also included the folder also w.o file name.

e.g.: ['src/', 'src/components/', 'src/components/App.js', 'src/components/Layout.js', 'src/components/Navigation.js', 'src/components/Projects.js', 'src/components/Experience.js', 'src/components/Social.js', 'src/components/ConnectWithMe.js', 'src/components/AdditionalSections.js', 'src/styles/', 'src/styles/main.css', 'src/utils/', 'src/utils/api.js', 'src/utils/three.js', 'public/', 'public/index.html', 'public/favicon.ico', 'public/manifest.json', 'public/images/', 'public/images/logo.png']

I just filtered out the folder only sections by checking last character.

I don't intend to use it with modal so I made changes to the main_no_modal file only but if im in the right path I can get the model file changed. https://github.com/smol-ai/developer/pull/95

Great project! Excited to start contributing to the project. Thanks again.