File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020)
2121from common .services .batch_service import BatchService
2222from common .storage .blob_factory import BlobStorageFactory
23-
23+ from common . config . config import app_config
2424from fastapi import HTTPException
2525
2626
3737logger = logging .getLogger (__name__ )
3838logger .setLevel (logging .DEBUG )
3939
40-
4140# Walk through batch structure processing each file
4241async def process_batch_async (
4342 batch_id : str , convert_from : str = "informix" , convert_to : str = "tsql"
@@ -61,7 +60,7 @@ async def process_batch_async(
6160 # Add client and auto cleanup
6261 async with (
6362 DefaultAzureCredential () as creds ,
64- AzureAIAgent .create_client (credential = creds , endpoint = "https://fdp-rg-psl-codmod-main-resource.services.ai.azure.com/api/projects/fdp-rg-psl-codmod-main" ) as client ,
63+ AzureAIAgent .create_client (credential = creds , endpoint = app_config . ai_project_endpoint ) as client ,
6564 ):
6665
6766 # setup all agent settings and agents per batch
You can’t perform that action at this time.
0 commit comments