Skip to content

Commit 4be3377

Browse files
nagkumar91Nagkumar ArkalgudNagkumar ArkalgudCopilot
authored
Task/timeout in rai service (#42159)
* Prepare evals SDK Release * Fix bug * Fix for ADV_CONV for FDP projects * Update release date * re-add pyrit to matrix * Change grader ids * Update unit test * replace all old grader IDs in tests * Update platform-matrix.json Add pyrit and not remove the other one * Update test to ensure everything is mocked * tox/black fixes * Skip that test with issues * update grader ID according to API View feedback * Update test * remove string check for grader ID * Update changelog and officialy start freeze * update the enum according to suggestions * update the changelog * Finalize logic * Change the function used in timeout * Update sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common/rai_service.py Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Nagkumar Arkalgud <[email protected]> Co-authored-by: Nagkumar Arkalgud <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 779b031 commit 4be3377

File tree

1 file changed

+2
-2
lines changed
  • sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common

1 file changed

+2
-2
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common/rai_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ async def fetch_result(operation_id: str, rai_svc_url: str, credential: TokenCre
319319
token = await fetch_or_reuse_token(credential, token)
320320
headers = get_common_headers(token)
321321

322-
async with get_async_http_client_with_timeout() as client:
323-
response = await client.get(url, headers=headers)
322+
async with get_async_http_client() as client:
323+
response = await client.get(url, headers=headers, timeout=RAIService.TIMEOUT)
324324

325325
if response.status_code == 200:
326326
return response.json()

0 commit comments

Comments
 (0)