Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there! Was playing around with smol-dev (thinking of integrating with Continue soon : )) and came across a few bumps when setting up, so figured I might just share the changes I made for myself. Open to leaving out anything that you think doesn't belong, but here's what I edited:
OPENAI_API_KEY
env variable. Then inprompts.py
added call toload_dotenv
and setopenai.api_key
explicitlypython
withpython3
, because there is a dependency onpython3
anyway so being specific can't hurt. In my case on Mac,python3
works butpython
does not.poetry shell
(otherwise following the exact steps listed in "In Git Repo Mode" doesn't work).example.env
and move to.env
main.py
, and is setup to automatically make surepoetry install
has been run prior (via tasks.json). Andsettings.json
sets the default python interpreter to be the one from poetry.poetry add
due to requirements of other depended upon packages (see error msg below)*It's notable that I removed
.vscode
from the.gitignore
, which means that someone with a prior settings.json mighta accidentally commit that if they don't notice, but there would first be merge conflicts to warn them and this file isn't meant to be secret, so should be okay.If this is a lot for one PR let me know, happy to leave things out or split them up!
Error when trying
poetry add
prior to changing the python requirement