mshumer / gpt-prompt-engineer

MIT License
9.38k stars 642 forks source link

Got error when running the sample notebook #30

Open nurmanmus opened 8 months ago

nurmanmus commented 8 months ago

I got the following error when running the sample gpt_prompt_engineer.ipynb notebook: :

APIRemovedInV1:

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.