From 4f9fe626fbeb33e8a0805254cbc77cf926f63eac Mon Sep 17 00:00:00 2001 From: paulruelle Date: Mon, 13 Jan 2025 17:00:55 +0100 Subject: [PATCH] fix(LAB-3307): take latest label --- src/kili/llm/services/export/dynamic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kili/llm/services/export/dynamic.py b/src/kili/llm/services/export/dynamic.py index b0710b9ec..a6265b7e0 100644 --- a/src/kili/llm/services/export/dynamic.py +++ b/src/kili/llm/services/export/dynamic.py @@ -55,7 +55,7 @@ def export(self, assets: List[Dict], json_interface: Dict) -> List[Dict]: return export_result def format_asset(self, asset: Dict, json_interface: Dict) -> Conversation: - label = asset["labels"][0] + label = asset["labels"][-1] chat_items = [ { "id": chat_item["id"],