Skip to content

Commit

Permalink
remove azure_deployment for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapratico committed Dec 19, 2024
1 parent 92ae7eb commit d34eb2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/openai/_utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "<missing API key>":
auth_headers = {"api-key": client.api_key}
Expand All @@ -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 != "<missing API key>":
auth_headers = {"api-key": client.api_key}
Expand Down
2 changes: 0 additions & 2 deletions src/openai/lib/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit d34eb2c

Please sign in to comment.