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

AttributeError: type object 'AzureOpenAI' has no attribute 'metadata' #108

Open
sarathsurpur opened this issue Apr 1, 2024 · 10 comments
Open

Comments

@sarathsurpur
Copy link

sarathsurpur commented Apr 1, 2024

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- metadata function is not available in azureopen ai
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

pip install openai1.14.1, call metadata method in azureopen ai object

Any log messages given by the failure

AttributeError: type object 'AzureOpenAI' has no attribute 'metadata'

Expected/desired behavior

couldnt load metadata method in azure openai

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@3x3cut0r
Copy link

I have the same problem while following this LLamaIndex Example using ChromaDB

any updates or workarounds on this yet?

@isayahc
Copy link

isayahc commented May 6, 2024

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- metadata function is not available in azureopen ai
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

pip install openai1.14.1, call metadata method in azureopen ai object

Any log messages given by the failure

AttributeError: type object 'AzureOpenAI' has no attribute 'metadata'

Expected/desired behavior

couldnt load metadata method in azure openai

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful

Thanks! We'll be in touch soon.

I assume you used
from openai import AzureOpenAI try using from llama_index.llms.azure_openai import AzureOpenAI

@siddhanna-janai
Copy link

I am also facing the same issue. Any updates??

@isayahc
Copy link

isayahc commented Jun 14, 2024

I am also facing the same issue. Any updates??

You downvoted my snippet. Did you actually run it?

@siddhanna-janai
Copy link

siddhanna-janai commented Jun 19, 2024

I am also facing the same issue. Any updates??

You downvoted my snippet. Did you actually run it?

Yes I have checked and tried the same. It is not working.

@isayahc
Copy link

isayahc commented Jun 19, 2024

I am also facing the same issue. Any updates??

You downvoted my snippet. Did you actually run it?

Yes I have checked and tried the same. It is not working.

Show a code snippet and the libraries you are using.

@isayahc
Copy link

isayahc commented Jun 19, 2024

I am also facing the same issue. Any updates??

You downvoted my snippet. Did you actually run it?

Yes I have checked and tried the same. It is not working.

image
image
image

@Josephrp
Copy link

I am also facing the same issue. Any updates??

You downvoted my snippet. Did you actually run it?

Yes I have checked and tried the same. It is not working.

you also have to uninstall the incomensurate library you're trying to use to solve your error.

@siddhanna-janai
Copy link

siddhanna-janai commented Jun 24, 2024

I am also facing the same issue. Any updates??

You downvoted my snippet. Did you actually run it?

Yes I have checked and tried the same. It is not working.

image image image

Self instance I have not used. Everything else is same.

Thank you, I will check.

@Sumeetjg
Copy link

I am also facing the same issue. Any updates??

You downvoted my snippet. Did you actually run it?

Yes I have checked and tried the same. It is not working.

you also have to uninstall the incomensurate library you're trying to use to solve your error.

Which libraries to uninstall?

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

No branches or pull requests

6 participants