microsoft / OpenAIWorkshop

workshop materials to build intelligent solutions on Open AI
MIT License
487 stars 285 forks source link

Haizz, my memory is having some trouble, can you repeat what you just said? You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 #188

Open jayS202 opened 9 months ago

jayS202 commented 9 months ago
Screenshot 2024-02-08 185834

Terminal: Exception as below, will retry

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

Hi @james-tn I tried to run multi_agent_copilot.py and facing this issue... What should I do?

james-tn commented 9 months ago

It was not updated to work with new version of the SDK. We have another multi-agent example here: https://github.com/microsoft/OpenAIWorkshop/tree/main/scenarios/incubations/copilot/travel_leisure It was written on 1+ version of Open AI SDK