Skip to content

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

Description

@jayS202
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions