Skip to content

Commit dc48337

Browse files
github-actions[bot]github-actionsaurelienlombardAurelien Lombard
authored
chore: merge release/2.162.1 into main (#1808)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: aurelienlombard <123479007+aurelienlombard@users.noreply.github.com> Co-authored-by: Aurelien Lombard <aurelien.lombard@kili-technology.com>
1 parent 6415375 commit dc48337

4 files changed

Lines changed: 33 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
33

44
[project]
55
name = "kili"
6-
version = "2.162.0"
6+
version = "2.162.1"
77
description = "Python client for Kili Technology labeling tool"
88
readme = "README.md"
99
authors = [{ name = "Kili Technology", email = "contact@kili-technology.com" }]

src/kili/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Kili Python SDK."""
22

3-
__version__ = "2.162.0"
3+
__version__ = "2.162.1"

src/kili/llm/services/export/dynamic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _build_rounds(self, chat_items, annotations, json_interface):
148148
if role == "user":
149149
current_round["prompt"] = chat_item
150150
elif role == "system":
151-
current_round["pre_prompt"].append(chat_item)
151+
current_round["pre_prompts"].append(chat_item)
152152
elif role == "assistant":
153153
current_round["completion"].append(chat_item)
154154
else:

tests/unit/llm/services/export/test_dynamic.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,20 @@
110110
"lastname": "Admin",
111111
},
112112
"chatItems": [
113+
{
114+
"id": "cm2u6kgcc001aj7ja1stsbrvu",
115+
"content": "You are a helpful assistant",
116+
"createdAt": "2024-08-06T12:28:52.170Z",
117+
"modelId": None,
118+
"parentId": None,
119+
"role": "SYSTEM",
120+
},
113121
{
114122
"id": "clziefeh6003k7tc99abderkk",
115123
"content": "describe turtle in 100 words",
116124
"createdAt": "2024-08-06T12:30:52.170Z",
117125
"modelId": None,
118-
"parentId": None,
126+
"parentId": "cm2u6kgcc001aj7ja1stsbrvu",
119127
"role": "USER",
120128
},
121129
{
@@ -215,6 +223,13 @@
215223
{
216224
"0": {
217225
"raw_data": [
226+
{
227+
"id": "cm2u6kgcc001aj7ja1stsbrvu",
228+
"role": "system",
229+
"chat_id": "clzief6q2003e7tc91jm46uii",
230+
"content": "You are a helpful assistant",
231+
"model": None,
232+
},
218233
{
219234
"content": "describe turtle in 100 words",
220235
"role": "user",
@@ -269,6 +284,13 @@
269284
},
270285
"1": {
271286
"raw_data": [
287+
{
288+
"id": "cm2u6kgcc001aj7ja1stsbrvu",
289+
"role": "system",
290+
"chat_id": "clzief6q2003e7tc91jm46uii",
291+
"content": "You are a helpful assistant",
292+
"model": None,
293+
},
272294
{
273295
"content": "describe turtle in 100 words",
274296
"role": "user",
@@ -337,6 +359,13 @@
337359
},
338360
"2": {
339361
"raw_data": [
362+
{
363+
"id": "cm2u6kgcc001aj7ja1stsbrvu",
364+
"role": "system",
365+
"chat_id": "clzief6q2003e7tc91jm46uii",
366+
"content": "You are a helpful assistant",
367+
"model": None,
368+
},
340369
{
341370
"content": "describe turtle in 100 words",
342371
"role": "user",

0 commit comments

Comments
 (0)