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

Connection Error using AzureOpenAIEncoder #429

Open
singh-kun opened this issue Sep 23, 2024 · 1 comment
Open

Connection Error using AzureOpenAIEncoder #429

singh-kun opened this issue Sep 23, 2024 · 1 comment

Comments

@singh-kun
Copy link

I am using AzureOpenAIEncoder in a closed network which can only access the openai resources using httpx proxy. In the AzureOpenAIEncoder class, there is no way to provide that http_client.

Example how I am using Azure openai services:
embedding= AzureOpenAIEmbeddings(model = model name, http_client=htpx.Client())

Note: I am defining all the other credentials as environmental variables like endpoint, api key, version and http proxy.

I have checked the AzureOpenAIEncoder class code and I saw it doesn't have any way to provide the above or similar parameter. There can be one fix, by including the openai client in the constructor of the class. This way I can give the azureopenai client as a parameter to this class.

Please guide me if I am missing something or there is any workaround.

Do let me know if you need more information. I really appreciate the help 🙏

@jamescalam
Copy link
Member

Hi @singh-kun we currently don't have a workaround for this, beyond possibly setting this attribute after initializing the encoder instance, we're happy if you want to contribute this as a feature though

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

2 participants