Skip to content

Downgrading OpenAI to Version 0.28 or Below for Compatibility #18

Description

@ryan-minato

OpenAI has updated their API, and the openai.error.OpenAIError no longer exists. You need to modify it to openai.OpenAIError for the code to work. However, making this change will trigger a warning, which recommend to downgrade the version to below 0.28.

AttributeError: module ‘openai’ has no attribute ‘error’

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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