# AzureOpenAI client - TypeError: Client.\_\_init\_\_() got an unexpected keyword argument 'proxies

**URL:** <https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218>\
**Category:** Bugs\
**Tags:** api\
**Created:** [November 28, 2024, 4:10pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218 "2024-11-28T16:10:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezermoysis](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ezermoysis/32/451560_2.png) [@ezermoysis](https://community.openai.com/u/ezermoysis)\
**Post date:** [November 28, 2024, 4:10pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/1 "2024-11-28T16:10:46Z")

</div>

Hello,

I am using `openai==1.14.3` in my application and today out of the blue, when I am using `AzureOpenAI` like this:

> from openai.lib.azure import AzureOpenAI

> ```
> openai_client = AzureOpenAI(
> azure_endpoint=AZURE_OPENAI_ENDPOINT,
> api_key=AZURE_OPENAI_API_KEY,
> api_version=api_version,
> )
> 
> ```

I am getting this error

> openai\_client = AzureOpenAI(  
> File /usr/local/lib/python3.10/site-packages/openai/lib/azure.py, line 205, in **init**  
> super(). **init** (  
> File /usr/local/lib/python3.10/site-packages/openai/\_client.py, line 112, in **init**  
> super(). **init** (  
> File /usr/local/lib/python3.10/site-packages/openai/\_base\_client.py, line 801, in **init**  
> self.\_client = http\_client or SyncHttpxClientWrapper(  
> TypeError: Client. **init** () got an unexpected keyword argument ‘proxies’

Can someone please help?

---

<div class="post-metadata">

**Author:** ![dheemanth](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dheemanth/32/507295_2.png) [@dheemanth](https://community.openai.com/u/dheemanth)\
**Post date:** [November 28, 2024, 4:23pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/2 "2024-11-28T16:23:17Z")

</div>

Same error. Just upgraded to openai==1.55.2 and started seeing this error.

---

<div class="post-metadata">

**Author:** ![ag33](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ag33/32/507307_2.png) [@ag33](https://community.openai.com/u/ag33)\
**Post date:** [November 28, 2024, 5:01pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/3 "2024-11-28T17:01:26Z")

</div>

Hit the same bug myself and noticed it’s just been fixed in 1.55.3.

---

<div class="post-metadata">

**Author:** ![ezermoysis](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ezermoysis/32/451560_2.png) [@ezermoysis](https://community.openai.com/u/ezermoysis)\
**Post date:** [November 28, 2024, 5:03pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/4 "2024-11-28T17:03:20Z")

</div>

Thanks! Also testing in previous versions now

---

<div class="post-metadata">

**Author:** ![tominator](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tominator](https://community.openai.com/u/tominator)\
**Post date:** [November 28, 2024, 5:07pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/5 "2024-11-28T17:07:51Z")

</div>

I have the same issue. I am using a old version (1.3.2)

---

<div class="post-metadata">

**Author:** ![dor2](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/dor2/32/449051_2.png) [@dor2](https://community.openai.com/u/dor2)\
**Post date:** [November 28, 2024, 5:15pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/6 "2024-11-28T17:15:39Z")

</div>

Im using Azure functions , and I have the same issue.

---

<div class="post-metadata">

**Author:** ![ali27](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ali27/32/507322_2.png) [@ali27](https://community.openai.com/u/ali27)\
**Post date:** [November 28, 2024, 5:19pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/7 "2024-11-28T17:19:46Z")

</div>

I didn’t change any version and just installed packages again and facing the same problem

---

<div class="post-metadata">

**Author:** ![tominator](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tominator](https://community.openai.com/u/tominator)\
**Post date:** [November 28, 2024, 5:21pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/8 "2024-11-28T17:21:08Z")

</div>

They just released version 1.55.3. You can check the release notes: There it is written that this specific bug is fixed.

---

<div class="post-metadata">

**Author:** ![maher.abbass](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/maher.abbass/32/484089_2.png) [@maher.abbass](https://community.openai.com/u/maher.abbass)\
**Post date:** [November 28, 2024, 5:21pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/9 "2024-11-28T17:21:49Z")

</div>

The error is not specific to Azure, right? And it doesn’t seem to be specific to the new version, as I fixed the version to 1.31.1 and it persists.

---

<div class="post-metadata">

**Author:** ![maher.abbass](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/maher.abbass/32/484089_2.png) [@maher.abbass](https://community.openai.com/u/maher.abbass)\
**Post date:** [November 28, 2024, 5:30pm UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/10 "2024-11-28T17:30:42Z")

</div>

I think issue is fixed now …

---

<div class="post-metadata">

**Author:** ![khaerulumam42](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/khaerulumam42/32/459839_2.png) [@khaerulumam42](https://community.openai.com/u/khaerulumam42)\
**Post date:** [November 29, 2024, 3:58am UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/11 "2024-11-29T03:58:51Z")

</div>

Same problem, fixed with upgraded into openai==1.55.3

---

<div class="post-metadata">

**Author:** ![josehernandez](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/josehernandez/32/448547_2.png) [@josehernandez](https://community.openai.com/u/josehernandez)\
**Post date:** [December 4, 2024, 1:18am UTC](https://community.openai.com/t/azureopenai-client-typeerror-client-init-got-an-unexpected-keyword-argument-proxies/1035218/12 "2024-12-04T01:18:29Z")

</div>

I ran into this same issue with:  
from openai import OpenAI

I was using version 1.52.2 but when I upgraded to 1.55.3 it fixed the issue.
