Skip to content

Commit

Permalink
chore: merge release/2.162.1 into main (#1808)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: aurelienlombard <[email protected]>
Co-authored-by: Aurelien Lombard <[email protected]>
  • Loading branch information
4 people authored Nov 6, 2024
1 parent 6415375 commit dc48337
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]

[project]
name = "kili"
version = "2.162.0"
version = "2.162.1"
description = "Python client for Kili Technology labeling tool"
readme = "README.md"
authors = [{ name = "Kili Technology", email = "[email protected]" }]
Expand Down
2 changes: 1 addition & 1 deletion src/kili/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Kili Python SDK."""

__version__ = "2.162.0"
__version__ = "2.162.1"
2 changes: 1 addition & 1 deletion src/kili/llm/services/export/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _build_rounds(self, chat_items, annotations, json_interface):
if role == "user":
current_round["prompt"] = chat_item
elif role == "system":
current_round["pre_prompt"].append(chat_item)
current_round["pre_prompts"].append(chat_item)
elif role == "assistant":
current_round["completion"].append(chat_item)
else:
Expand Down
31 changes: 30 additions & 1 deletion tests/unit/llm/services/export/test_dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,20 @@
"lastname": "Admin",
},
"chatItems": [
{
"id": "cm2u6kgcc001aj7ja1stsbrvu",
"content": "You are a helpful assistant",
"createdAt": "2024-08-06T12:28:52.170Z",
"modelId": None,
"parentId": None,
"role": "SYSTEM",
},
{
"id": "clziefeh6003k7tc99abderkk",
"content": "describe turtle in 100 words",
"createdAt": "2024-08-06T12:30:52.170Z",
"modelId": None,
"parentId": None,
"parentId": "cm2u6kgcc001aj7ja1stsbrvu",
"role": "USER",
},
{
Expand Down Expand Up @@ -215,6 +223,13 @@
{
"0": {
"raw_data": [
{
"id": "cm2u6kgcc001aj7ja1stsbrvu",
"role": "system",
"chat_id": "clzief6q2003e7tc91jm46uii",
"content": "You are a helpful assistant",
"model": None,
},
{
"content": "describe turtle in 100 words",
"role": "user",
Expand Down Expand Up @@ -269,6 +284,13 @@
},
"1": {
"raw_data": [
{
"id": "cm2u6kgcc001aj7ja1stsbrvu",
"role": "system",
"chat_id": "clzief6q2003e7tc91jm46uii",
"content": "You are a helpful assistant",
"model": None,
},
{
"content": "describe turtle in 100 words",
"role": "user",
Expand Down Expand Up @@ -337,6 +359,13 @@
},
"2": {
"raw_data": [
{
"id": "cm2u6kgcc001aj7ja1stsbrvu",
"role": "system",
"chat_id": "clzief6q2003e7tc91jm46uii",
"content": "You are a helpful assistant",
"model": None,
},
{
"content": "describe turtle in 100 words",
"role": "user",
Expand Down

0 comments on commit dc48337

Please sign in to comment.