diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index cda8bbc..1024fd1 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -173,11 +173,11 @@ def get_multi_image_tasks( status: str = None, tags: list = [], offset: int = None, - limit: int = 100, + limit: int = 10, ) -> dict: """ Returns a list of tasks. - Returns up to 1000 at a time, to get more, set offset as the starting position to fetch. + Returns up to 10 at a time, to get more, set offset as the starting position to fetch. project is slug of your project. (Required) status can be 'registered', 'in_progress', 'completed', 'skipped', 'in_review', 'send_backed', 'approved', 'customer_in_review', 'customer_send_backed', 'customer_approved'. (Optional) @@ -185,6 +185,9 @@ def get_multi_image_tasks( offset is the starting position number to fetch. (Optional) limit is the max number to fetch. (Optional) """ + if limit > 10: + raise FastLabelInvalidException( + "Limit must be less than or equal to 10.", 422) endpoint = "tasks/multi/image" params = {"project": project} if status: diff --git a/setup.py b/setup.py index 8be96f4..9b477ad 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name="fastlabel", - version="0.4.1", + version="0.4.2", author="eisuke-ueta", author_email="eisuke.ueta@fastlabel.ai", description="The official Python SDK for FastLabel API, the Data Platform for AI",