Skip to content

Commit

Permalink
feat(LAB-3105): add warning for deprecate kili.export for llm and use…
Browse files Browse the repository at this point in the history
… kili.llm.export
  • Loading branch information
FannyGaudin committed Sep 13, 2024
1 parent 6cf2aba commit 30a01d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/kili/services/export/format/llm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import json
import logging
import warnings
from ast import literal_eval
from pathlib import Path
from typing import Dict, List, Optional, Union
Expand Down Expand Up @@ -51,6 +52,11 @@ def process_and_save(

def process(self, assets: List[Dict]) -> List[Dict[str, Union[List[str], str]]]:
"""LLM specific process."""
warnings.warn(
"Exporting llm labels with `kili.export` is deprecated. Please use `kili.llm.export` instead.",
DeprecationWarning,
stacklevel=2,
)
if self.label_format == "llm_v1":
return self._process_llm_v1(assets)
return self._process_llm_dynamic_v1(assets)
Expand Down

0 comments on commit 30a01d4

Please sign in to comment.