MoneyPrinter icon indicating copy to clipboard operation
MoneyPrinter copied to clipboard

[BUG] gpt4 not working

Open moshejs opened this issue 1 year ago • 2 comments

Describe the bug Openai version in requirements.txt needs to be locked, the latest version appears to be incompatible with this project

To Reproduce Select "AI Model" to OpenAI GPT-4

Expected behavior OpenAI GPT-4 generates a script

Screenshots [Video to be generated] Subject: ... AI Model: gpt4 [-] Error:

You tried to access openai.ChatCompletion, 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

Desktop (please complete the following information):

  • OS: Mac OS X 14.2.1 (23C71)
  • Python Version 3.11

moshejs avatar Feb 09 '24 18:02 moshejs

@FujiwaraChoki you can reassign this to me

Boanerges1996 avatar Feb 09 '24 20:02 Boanerges1996

@FujiwaraChoki added a https://github.com/FujiwaraChoki/MoneyPrinter/pull/134

Boanerges1996 avatar Feb 09 '24 22:02 Boanerges1996

gpt4 is now working

moshejs avatar Feb 10 '24 02:02 moshejs