Skip to content

AttributeError: 'OpenAI' object has no attribute 'chat' #1143

Closed
@seohyunjun

Description

@seohyunjun

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

pip install -U openai

i met this error i think v1.12.0 some issue

To Reproduce

OS : wsl-Ubuntu
python : 3.9.18
Package-version : 1.12.0

Code snippets

#### Error
 bash
AttributeError: 'OpenAI' object has no attribute 'chat' 
Name: openai
Version: 1.12.0
Summary: The official Python library for the openai API
Home-page: 
Author: 
Author-email: OpenAI <support@openai.com>


### OS

wsl-Ubuntu

### Python version

3.9.18

### Library version

1.12.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