Skip to content

Commit 16092a0

Browse files
slister1001Copilot
andauthored
Update sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_common/_base_eval.py
Co-authored-by: Copilot <[email protected]>
1 parent fa47e65 commit 16092a0

File tree

1 file changed

+1
-1
lines changed
  • sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_common

1 file changed

+1
-1
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_common/_base_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def multi_modal_converter(conversation: Dict) -> List[Dict[str, Any]]:
275275
messages = messages[-2:]
276276

277277
for each_turn in messages:
278-
if "role" in each_turn:
278+
if "role" in each_turn and "content" in each_turn:
279279
if each_turn["role"] == "user":
280280
user_messages.append(each_turn)
281281
elif each_turn["role"] == "assistant":

0 commit comments

Comments
 (0)