Skip to content

AttributeError: module 'openai' has no attribute 'Embedding' #78

Closed
@Travis-Barton

Description

@Travis-Barton

I've installed openai via:

pip install openai
pip install --upgrade openai

and yet when I try to run an example like:

import openai
print(openai.Embedding)

I get the error

Traceback (most recent call last):
  File "/Users/travisbarton/.conda/envs/work3.6/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3343, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-15-c5f5985add60>", line 1, in <module>
    openai.Embedding
AttributeError: module 'openai' has no attribute 'Embedding'

the version I have is 0.8.0

this happens for full examples, but this is just the most simple case.
any idea why?

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