yoheinakajima / babyagi

MIT License
19.9k stars 2.61k forks source link

Error using GPT-4 #229

Closed montenegronyc closed 1 year ago

montenegronyc commented 1 year ago

Switching the model to gpt-4 from gpt-3.5-turbo results in this error: OpenAI API invalid request. Check the documentation for the specific API method you are calling and make sure you are sending valid and complete parameters. Waiting 10 seconds and trying again. No other parameters changed. Anyone know if I need to tweak other settings other than the model in .env (I'm actually running on replit, so using secrets, not an .env file) to get it to work with gpt-4 ?

smartin800 commented 1 year ago

Also interested in how to resolve this -- running into the same issue

micromysore commented 1 year ago

You will need GPT-4 API access from openAI to call into gpt-4 models https://platform.openai.com/docs/models/gpt-4

Please use gpt-3.5-turbo instead.

smartin800 commented 1 year ago

Thank you micromysore, I missed that before. I signed up for the waitlist. I was also interested in trying model code-davinci-002 but I get a similar invalid message. Any idea on that one (it doesn't seem to be waitlist related)?

francip commented 1 year ago

I remember OpenAI tried to shutdown davinci-002, so they might have restricted access to it, don't know. As for GPT-4 - yeah, you need to have API access, which is controlled by OpenAI, and we can't do much about it.

francip commented 1 year ago

Closing for now, reopen if you think there's something we can do on BabyAGI side to make this better.

johnnyknoxville1337 commented 1 year ago

i am using gpt-3.5-turbo and the same error occurs.