Skip to content

Commit c8da88d

Browse files
author
Shreyas-Microsoft
committed
Remove hardcoded ai endpoint value
1 parent a7d1e12 commit c8da88d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/backend/sql_agents/process_batch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
)
2121
from common.services.batch_service import BatchService
2222
from common.storage.blob_factory import BlobStorageFactory
23-
23+
from common.config.config import app_config
2424
from fastapi import HTTPException
2525

2626

@@ -37,7 +37,6 @@
3737
logger = logging.getLogger(__name__)
3838
logger.setLevel(logging.DEBUG)
3939

40-
4140
# Walk through batch structure processing each file
4241
async 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

0 commit comments

Comments
 (0)