We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be1b15f commit d2cb4feCopy full SHA for d2cb4fe
src/api/helpers/azure_openai_helper.py
@@ -7,6 +7,7 @@
7
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
8
from common.config.config import Config
9
10
+
11
def get_azure_openai_client():
12
"""
13
Initializes and returns an Azure OpenAI client using a bearer token provider.
@@ -21,4 +22,4 @@ def get_azure_openai_client():
21
22
api_version=config.azure_openai_api_version,
23
azure_ad_token_provider=token_provider,
24
)
- return client
25
+ return client
0 commit comments