Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azureml.rag.utils.deployment: No module named 'openai.api_resources' #2903

Open
lzhecheng opened this issue Dec 11, 2023 · 2 comments
Open
Labels

Comments

@lzhecheng
Copy link

Operating System

Linux

Version Information

python 3.8
azureml-0.2.7

Steps to reproduce

Follow steps in https://github.com/Azure/azureml-examples/blob/main/sdk/python/generative-ai/rag/notebooks/faiss/scheduled_update_faiss_index.ipynb
Run the rag deployment part: from azureml.rag.utils.deployment import infer_deployment
It reports error: ModuleNotFoundError: No module named 'openai.api_resources'
It seems openai.api_resources has been deprecated.

Expected behavior

No error

Actual behavior

ModuleNotFoundError: No module named 'openai.api_resources'

Addition information

No response

@lzhecheng lzhecheng added the bug label Dec 11, 2023
@vsantele
Copy link

vsantele commented Dec 20, 2023

It seems related to this openai/openai-python#742

We can temporarily fix this issue with pip install openai==0.27.8

@Jaid844
Copy link

Jaid844 commented Jan 7, 2024

Thanks @vsantele it seems to solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants