Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge release/2.162.1 into main #1808

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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