smol-ai / developer

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

So, unless you have Modal, it's useless. #36

Closed redfort1987 closed 1 year ago

redfort1987 commented 1 year ago

The Python main_no_modal.py command doesn't work. It asks for an open AI API key, which I already put into the .env file.

QVault commented 1 year ago

If you really want to skip this error, just paste the OpenAI key directly into the 'openai.api_key' variable. NOTE: Be careful, if your copy is public.

mxn2020 commented 1 year ago

I also had an error, the env call is not working. I switched to following:

from dotenv import load_dotenv load_dotenv()

openai.api_key = os.getenv("OPENAI_API_KEY")

which worked fine for me.

ShaneGCareCru commented 1 year ago

I just did an export (export OPENAI_API_KEY=sk-blablahblah ) of the key and it worked.

swyxio commented 1 year ago

yup i think this is the correct take!