Azure-Samples / openai

The repository for all Azure OpenAI Samples complementing the OpenAI cookbook.
https://aka.ms/azure-openai
MIT License
1.05k stars 353 forks source link

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

Open sarathsurpur opened 5 months ago

sarathsurpur commented 5 months ago

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 commented 4 months ago

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

any updates or workarounds on this yet?

isayahc commented 4 months ago

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 commented 3 months ago

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

isayahc commented 3 months ago

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

You downvoted my snippet. Did you actually run it?

siddhanna-janai commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 3 weeks ago

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?