From 3ccfe0a6f9f55afa714440a3eb37b73afe04d99c Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:55:11 +0000 Subject: [PATCH 1/3] SDK regeneration --- .mock/definition/__package__.yml | 2 +- .mock/definition/prompts/versions.yml | 4 ++-- poetry.lock | 12 ++++++------ .../types/refined_prompt_response.py | 2 +- tests/prompts/test_versions.py | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index b3c72684..dfe652e1 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -2398,7 +2398,7 @@ types: docs: Status of the refinement job default: Pending total_cost: - type: optional + type: optional docs: Total cost of the refinement job (in USD) previous_version: type: optional diff --git a/.mock/definition/prompts/versions.yml b/.mock/definition/prompts/versions.yml index 3846665c..f3e2d86d 100644 --- a/.mock/definition/prompts/versions.yml +++ b/.mock/definition/prompts/versions.yml @@ -248,7 +248,7 @@ service: prompt: prompt refinement_job_id: refinement_job_id refinement_status: Pending - total_cost: 1.1 + total_cost: total_cost previous_version: title: title parent_model: 1 @@ -309,7 +309,7 @@ service: prompt: prompt refinement_job_id: refinement_job_id refinement_status: Pending - total_cost: 1.1 + total_cost: total_cost previous_version: title: title parent_model: 1 diff --git a/poetry.lock b/poetry.lock index 516e8e43..09368ae7 100644 --- a/poetry.lock +++ b/poetry.lock @@ -278,13 +278,13 @@ files = [ [[package]] name = "datamodel-code-generator" -version = "0.26.1" +version = "0.26.2" description = "Datamodel Code Generator" optional = false python-versions = "<4.0,>=3.8" files = [ - {file = "datamodel_code_generator-0.26.1-py3-none-any.whl", hash = "sha256:bbe8a6cc0b9cfdbfd294e336e02b4c50b481ffc3b3c608b5578b6d7aa02cc8ae"}, - {file = "datamodel_code_generator-0.26.1.tar.gz", hash = "sha256:3b7b49c4230fa197ca28847e1e8996cd664638a7e91796c826a61c60d4ccd8a2"}, + {file = "datamodel_code_generator-0.26.2-py3-none-any.whl", hash = "sha256:f62576a27c9083f2b22cf8c97ed79a394155f131db3e3bf55cd72893f48c5d80"}, + {file = "datamodel_code_generator-0.26.2.tar.gz", hash = "sha256:03c153434d5a308e31fb4528c0199015054570642ccda8cd2f2cb3cc2c497622"}, ] [package.dependencies] @@ -1808,13 +1808,13 @@ files = [ [[package]] name = "tqdm" -version = "4.66.5" +version = "4.66.6" description = "Fast, Extensible Progress Meter" optional = false python-versions = ">=3.7" files = [ - {file = "tqdm-4.66.5-py3-none-any.whl", hash = "sha256:90279a3770753eafc9194a0364852159802111925aa30eb3f9d85b0e805ac7cd"}, - {file = "tqdm-4.66.5.tar.gz", hash = "sha256:e1020aef2e5096702d8a025ac7d16b1577279c9d63f8375b63083e9a5f0fcbad"}, + {file = "tqdm-4.66.6-py3-none-any.whl", hash = "sha256:223e8b5359c2efc4b30555531f09e9f2f3589bcd7fdd389271191031b49b7a63"}, + {file = "tqdm-4.66.6.tar.gz", hash = "sha256:4bdd694238bef1485ce839d67967ab50af8f9272aab687c0d7702a01da0be090"}, ] [package.dependencies] diff --git a/src/label_studio_sdk/types/refined_prompt_response.py b/src/label_studio_sdk/types/refined_prompt_response.py index 54c28abe..5c53a949 100644 --- a/src/label_studio_sdk/types/refined_prompt_response.py +++ b/src/label_studio_sdk/types/refined_prompt_response.py @@ -35,7 +35,7 @@ class RefinedPromptResponse(pydantic_v1.BaseModel): Status of the refinement job """ - total_cost: typing.Optional[float] = pydantic_v1.Field(default=None) + total_cost: typing.Optional[str] = pydantic_v1.Field(default=None) """ Total cost of the refinement job (in USD) """ diff --git a/tests/prompts/test_versions.py b/tests/prompts/test_versions.py index 021feb4d..1af9e4d3 100644 --- a/tests/prompts/test_versions.py +++ b/tests/prompts/test_versions.py @@ -182,7 +182,7 @@ async def test_get_refined_prompt(client: LabelStudio, async_client: AsyncLabelS "prompt": "prompt", "refinement_job_id": "refinement_job_id", "refinement_status": "Pending", - "total_cost": 1.1, + "total_cost": "total_cost", "previous_version": { "title": "title", "parent_model": 1, @@ -234,7 +234,7 @@ async def test_refine_prompt(client: LabelStudio, async_client: AsyncLabelStudio "prompt": "prompt", "refinement_job_id": "refinement_job_id", "refinement_status": "Pending", - "total_cost": 1.1, + "total_cost": "total_cost", "previous_version": { "title": "title", "parent_model": 1, From 6f6794a555203faff9445c3d7067d6788ac071a5 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:10:39 +0000 Subject: [PATCH 2/3] SDK regeneration From c493172b1e9a94dccbd4d841f8e333dab9926968 Mon Sep 17 00:00:00 2001 From: Matt Bernstein Date: Wed, 30 Oct 2024 14:02:14 -0400 Subject: [PATCH 3/3] revert poetry update --- poetry.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/poetry.lock b/poetry.lock index 09368ae7..516e8e43 100644 --- a/poetry.lock +++ b/poetry.lock @@ -278,13 +278,13 @@ files = [ [[package]] name = "datamodel-code-generator" -version = "0.26.2" +version = "0.26.1" description = "Datamodel Code Generator" optional = false python-versions = "<4.0,>=3.8" files = [ - {file = "datamodel_code_generator-0.26.2-py3-none-any.whl", hash = "sha256:f62576a27c9083f2b22cf8c97ed79a394155f131db3e3bf55cd72893f48c5d80"}, - {file = "datamodel_code_generator-0.26.2.tar.gz", hash = "sha256:03c153434d5a308e31fb4528c0199015054570642ccda8cd2f2cb3cc2c497622"}, + {file = "datamodel_code_generator-0.26.1-py3-none-any.whl", hash = "sha256:bbe8a6cc0b9cfdbfd294e336e02b4c50b481ffc3b3c608b5578b6d7aa02cc8ae"}, + {file = "datamodel_code_generator-0.26.1.tar.gz", hash = "sha256:3b7b49c4230fa197ca28847e1e8996cd664638a7e91796c826a61c60d4ccd8a2"}, ] [package.dependencies] @@ -1808,13 +1808,13 @@ files = [ [[package]] name = "tqdm" -version = "4.66.6" +version = "4.66.5" description = "Fast, Extensible Progress Meter" optional = false python-versions = ">=3.7" files = [ - {file = "tqdm-4.66.6-py3-none-any.whl", hash = "sha256:223e8b5359c2efc4b30555531f09e9f2f3589bcd7fdd389271191031b49b7a63"}, - {file = "tqdm-4.66.6.tar.gz", hash = "sha256:4bdd694238bef1485ce839d67967ab50af8f9272aab687c0d7702a01da0be090"}, + {file = "tqdm-4.66.5-py3-none-any.whl", hash = "sha256:90279a3770753eafc9194a0364852159802111925aa30eb3f9d85b0e805ac7cd"}, + {file = "tqdm-4.66.5.tar.gz", hash = "sha256:e1020aef2e5096702d8a025ac7d16b1577279c9d63f8375b63083e9a5f0fcbad"}, ] [package.dependencies]