Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 8, 2024 · 1 comment

Comments

@jayS202
Copy link

jayS202 commented Feb 8, 2024

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: openai/openai-python#742

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

@james-tn
Copy link
Contributor

james-tn commented Feb 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants