File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 11import logging
22from typing import Annotated
33
4- import openai
54from azure .ai .agents .models import (
65 Agent ,
76 AzureAISearchQueryType ,
@@ -223,17 +222,6 @@ async def get_answers_from_calltranscripts(
223222 logging .error (f"Error in get_answers_from_calltranscripts: { str (e )} " )
224223 return "Error retrieving data from call transcripts"
225224
226- def get_openai_client (self ):
227- token_provider = get_bearer_token_provider (
228- get_azure_credential (config .MID_ID ), "https://cognitiveservices.azure.com/.default"
229- )
230- openai_client = openai .AzureOpenAI (
231- azure_endpoint = config .AZURE_OPENAI_ENDPOINT ,
232- azure_ad_token_provider = token_provider ,
233- api_version = config .AZURE_OPENAI_PREVIEW_API_VERSION ,
234- )
235- return openai_client
236-
237225 def get_project_openai_client (self ):
238226 project = AIProjectClient (
239227 endpoint = config .AI_PROJECT_ENDPOINT , credential = get_azure_credential (config .MID_ID )
You can’t perform that action at this time.
0 commit comments