yoheinakajima / babyagi

MIT License
19.66k stars 2.57k forks source link

Why is OPENAI_API_KEY still necessary? #297

Closed razvanab closed 1 year ago

razvanab commented 1 year ago

Why is OPENAI_API_KEY still necessary if we can use an alternative model like llama?

Nai-mul commented 1 year ago

I have similar question like you, Open AI subscriptions are not intended for scientific research. It charges a lot of fees.

yesbroc commented 1 year ago

openai is normally faster and better

shiloh92 commented 1 year ago

Yeah open source and free is needed to open up this area for everyone.

yesbroc commented 1 year ago

not saying i was against it, just that openai has better models for use, gpt 3.5 is good, fast, and cheap

francip commented 1 year ago

OpenAI key is needed for people that use OpenAI models. It's quite possible there is assertion that checks if the env variable is there even if people are using Llama.cpp, I'll look into fixing this. But it only checks if the variable is there, doesn't use it for anything in that case, so workaround is to set it to some dummy value.

razvanab commented 1 year ago

openai.error.AuthenticationError: Incorrect API key provided: v6j0grklw3. You can find your API key at https://platform.openai.com/account/api-keys.