Skip to content
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
Expand All @@ -44,7 +44,7 @@ jobs:
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'imagekit-developer/imagekit-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Check release environment
run: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.1.0"
".": "5.1.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 48
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-c028a7584d3508f268ce5c5b824b50af88eaa140620dd03a1b35f409f510603c.yml
openapi_spec_hash: f9b780b2398a87678a13355e48cd515f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-84f0d75048a9268981a84800b4190e3691997ce57dcfc0876f38a5b3fce6bacd.yml
openapi_spec_hash: 35607d4e850c8a60524223ff632c83bb
config_hash: aeb6eb949d73382270bbd8bbf2e4cf2a
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 5.1.1 (2026-01-20)

Full Changelog: [v5.1.0...v5.1.1](https://github.com/imagekit-developer/imagekit-python/compare/v5.1.0...v5.1.1)

### Bug Fixes

* vocab field is required ([4ab29b2](https://github.com/imagekit-developer/imagekit-python/commit/4ab29b248b89398b4334d6e1946a35a561997b2a))


### Chores

* **internal:** update `actions/checkout` version ([7826590](https://github.com/imagekit-developer/imagekit-python/commit/782659076636d78290d488da3f834343550627c8))

## 5.1.0 (2026-01-16)

Full Changelog: [v5.0.0...v5.1.0](https://github.com/imagekit-developer/imagekit-python/compare/v5.0.0...v5.1.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "imagekitio"
version = "5.1.0"
version = "5.1.1"
description = "The official Python library for the ImageKit API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/imagekitio/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "imagekitio"
__version__ = "5.1.0" # x-release-please-version
__version__ = "5.1.1" # x-release-please-version
14 changes: 7 additions & 7 deletions src/imagekitio/types/shared/extension_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ class AITasksTaskSelectTags(BaseModel):
type: Literal["select_tags"]
"""Task type that analyzes the image and adds matching tags from a vocabulary."""

vocabulary: List[str]
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""

max_selections: Optional[int] = None
"""Maximum number of tags to select from the vocabulary."""

min_selections: Optional[int] = None
"""Minimum number of tags to select from the vocabulary."""

vocabulary: Optional[List[str]] = None
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""


class AITasksTaskSelectMetadata(BaseModel):
field: str
Expand Down
14 changes: 7 additions & 7 deletions src/imagekitio/types/shared/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@ class ExtensionItemAITasksTaskSelectTags(BaseModel):
type: Literal["select_tags"]
"""Task type that analyzes the image and adds matching tags from a vocabulary."""

vocabulary: List[str]
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""

max_selections: Optional[int] = None
"""Maximum number of tags to select from the vocabulary."""

min_selections: Optional[int] = None
"""Minimum number of tags to select from the vocabulary."""

vocabulary: Optional[List[str]] = None
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""


class ExtensionItemAITasksTaskSelectMetadata(BaseModel):
field: str
Expand Down
14 changes: 7 additions & 7 deletions src/imagekitio/types/shared_params/extension_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ class AITasksTaskSelectTags(TypedDict, total=False):
type: Required[Literal["select_tags"]]
"""Task type that analyzes the image and adds matching tags from a vocabulary."""

vocabulary: Required[SequenceNotStr[str]]
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""

max_selections: int
"""Maximum number of tags to select from the vocabulary."""

min_selections: int
"""Minimum number of tags to select from the vocabulary."""

vocabulary: SequenceNotStr[str]
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""


class AITasksTaskSelectMetadata(TypedDict, total=False):
field: Required[str]
Expand Down
14 changes: 7 additions & 7 deletions src/imagekitio/types/shared_params/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@ class ExtensionItemAITasksTaskSelectTags(TypedDict, total=False):
type: Required[Literal["select_tags"]]
"""Task type that analyzes the image and adds matching tags from a vocabulary."""

vocabulary: Required[SequenceNotStr[str]]
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""

max_selections: int
"""Maximum number of tags to select from the vocabulary."""

min_selections: int
"""Minimum number of tags to select from the vocabulary."""

vocabulary: SequenceNotStr[str]
"""Array of possible tag values.

Combined length of all strings must not exceed 500 characters. Cannot contain
the `%` character.
"""


class ExtensionItemAITasksTaskSelectMetadata(TypedDict, total=False):
field: Required[str]
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/beta/v2/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def test_method_upload_with_all_params(self, client: ImageKit) -> None:
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down Expand Up @@ -217,9 +217,9 @@ async def test_method_upload_with_all_params(self, async_client: AsyncImageKit)
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down Expand Up @@ -887,9 +887,9 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down
8 changes: 4 additions & 4 deletions tests/api_resources/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def test_method_update_with_all_params_overload_1(self, client: ImageKit) -> Non
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down Expand Up @@ -465,9 +465,9 @@ def test_method_upload_with_all_params(self, client: ImageKit) -> None:
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down Expand Up @@ -615,9 +615,9 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down Expand Up @@ -1018,9 +1018,9 @@ async def test_method_upload_with_all_params(self, async_client: AsyncImageKit)
{
"instruction": "What types of clothing items are visible in this image?",
"type": "select_tags",
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
"max_selections": 1,
"min_selections": 0,
"vocabulary": ["shirt", "tshirt", "dress", "trousers", "jacket"],
},
{
"instruction": "Is this a luxury or high-end fashion item?",
Expand Down
Loading