Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tharnadar opened this issue Sep 12, 2023 · 1 comment
Open

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

Tharnadar opened this issue Sep 12, 2023 · 1 comment

Comments

@Tharnadar
Copy link

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
Copy link

HenrykO3 commented Sep 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants