Nearcyan / papers.day

papers.day
GNU General Public License v3.0
79 stars 4 forks source link

openai.Completion no longer supported in openai>=1.0.0 #6

Closed lolwierd closed 6 months ago

lolwierd commented 6 months ago

Getting 👇while running python scrape_abs.py -n 10 with my openai key.

You tried to access openai.Completion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28 A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742