Thanks to visit codestin.com
Credit goes to github.com

Skip to content

module openai has no attribute resources #2349

Closed
@DamianB-BitFlipper

Description

@DamianB-BitFlipper

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

With the latest version 1.78.0, openai.resources no longer exists.

Simply doing:

import openai
openai.resources

yields AttributeError: module 'openai' has no attribute 'resources'

I use the resources to import openai.resources.chat.Completions

In the previous version 1.77.0, this worked just fine. I am unsure if this intended behavior or a bug that slipped through. I'd appreciate your timely input!

To Reproduce

import openai
openai.resources

Code snippets

OS

macOS 15.3.1

Python version

Python 3.13.1

Library version

1.78.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions