From d34eb2c12c13a981ee94d417d7fa65d73b03bef2 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Wed, 18 Dec 2024 17:09:13 -0800 Subject: [PATCH] remove azure_deployment for now --- src/openai/_utils/_utils.py | 4 ++-- src/openai/lib/azure.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/openai/_utils/_utils.py b/src/openai/_utils/_utils.py index 1398734cf0..6d88ad06aa 100644 --- a/src/openai/_utils/_utils.py +++ b/src/openai/_utils/_utils.py @@ -435,7 +435,7 @@ def configure_azure_realtime(client: AzureOpenAI, model: str, extra_query: Query query = { **extra_query, "api-version": client._api_version, - "deployment": client._azure_deployment or model, + "deployment": model, } if client.api_key != "": auth_headers = {"api-key": client.api_key} @@ -453,7 +453,7 @@ async def configure_azure_realtime_async( query = { **extra_query, "api-version": client._api_version, - "deployment": client._azure_deployment or model, + "deployment": model, } if client.api_key != "": auth_headers = {"api-key": client.api_key} diff --git a/src/openai/lib/azure.py b/src/openai/lib/azure.py index ee32f13b95..13d9f31838 100644 --- a/src/openai/lib/azure.py +++ b/src/openai/lib/azure.py @@ -224,7 +224,6 @@ def __init__( self._api_version = api_version self._azure_ad_token = azure_ad_token self._azure_ad_token_provider = azure_ad_token_provider - self._azure_deployment = azure_deployment @override def copy( @@ -472,7 +471,6 @@ def __init__( self._api_version = api_version self._azure_ad_token = azure_ad_token self._azure_ad_token_provider = azure_ad_token_provider - self._azure_deployment = azure_deployment @override def copy(