Skip to content

Commit acd7e5b

Browse files
nagkumar91Nagkumar Arkalgud
andauthored
ADV_Conversation fix for adversarial simulator (#41339)
* Prepare evals SDK Release * Fix bug * Fix for ADV_CONV for FDP projects * Update release date --------- Co-authored-by: Nagkumar Arkalgud <[email protected]>
1 parent d5f959f commit acd7e5b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

sdk/evaluation/azure-ai-evaluation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.8.0 (2025-05-28)
3+
## 1.8.0 (2025-05-29)
44

55
### Features Added
66

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/simulator/_model_tools/_proxy_completion_model.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,15 @@ async def request_api(
207207
request_count = 0
208208
flag = True
209209
while flag:
210-
response = session.evaluations.operation_results(operation_id, headers=headers)
210+
try:
211+
response = session.evaluations.operation_results(operation_id, headers=headers)
212+
except Exception as e:
213+
from types import SimpleNamespace # pylint: disable=forgotten-debug-statement
214+
response = SimpleNamespace(status_code=202, text=str(e), json=lambda: {"error": str(e)})
215+
if isinstance(response, dict):
216+
response_data = response
217+
flag = False
218+
break
211219
if response.status_code == 200:
212220
response_data = cast(List[Dict], response.json())
213221
flag = False

0 commit comments

Comments
 (0)