yoheinakajima / babyagi

MIT License
19.64k stars 2.57k forks source link

AssertionError: OPENAI_API_KEY environment variable is missing from .env #340

Open pankyye opened 1 year ago

pankyye commented 1 year ago

Hi

every time I run python3 babyagi.py, there display an error:

Using embedded DuckDB without persistence: data will be transient Traceback (most recent call last): File "/Users/panky/babyagi/babyagi.py", line 33, in assert OPENAI_API_KEY, "\033[91m\033[1m" + "OPENAI_API_KEY environment variable is missing from .env" + "\033[0m\033[0m" AssertionError: OPENAI_API_KEY environment variable is missing from .env

I have setup the openai API key in the .eve file, does any one could help me figure out what is going on here? Thanks!

sdrakulich commented 12 months ago

if you're still having the issue, set:

LLM_MODEL=llama LLAMA_MODEL_PATH=a_directory_in_babyagi_repo/whatever-GGML/whatever-ggml.bin

comment OPENAI_API_KEY and OPENAI_API_TEMPERATURE