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

Can anyone fix the Basic Usate in Git Repo mode? #142

Open Tharnadar opened 1 year ago

Tharnadar commented 1 year ago

I was following these simple steps https://github.com/smol-ai/developer#basic-usage but they are not working at all.

Since we are using poetry to install the dependecies, we cannot use the simple python command anymore.

And I have trouble to provide the openapi key to the script. openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = <API-KEY>', or you can set the environment variable OPENAI_API_KEY=<API-KEY>). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = <PATH>'. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.

HenrykO3 commented 1 year ago

ensure you have a open-ai key in your .env file if you run the following before you start your main.py poetry shell should fix your issue