Skip to content

Add priority field to Batch - #205

Merged
0e4ef622 merged 2 commits into
mainfrom
batch-priority
Jun 24, 2026
Merged

Add priority field to Batch#205
0e4ef622 merged 2 commits into
mainfrom
batch-priority

Conversation

@0e4ef622

@0e4ef622 0e4ef622 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Batch now expects priority in API responses; older API payloads without the field could break deserialization, and create always sends priority (defaulting safely).

Overview
Release 5.5.0 adds batch priority support aligned with the /v3/batches API.

The Batch model now includes a priority field, backed by a new BatchPriority enum (default, low) and a string literal type for typing. Sync and async BatchesResource.create accept an optional keyword-only priority argument (default default), normalize string values to the enum, and send priority in the create payload. Package version is bumped in ntropy_sdk/__init__.py, setup.py, and setup.cfg.

Reviewed by Cursor Bugbot for commit e9ad5d7. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread ntropy_sdk/batches.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 344ca12. Configure here.

Comment thread ntropy_sdk/batches.py
@0e4ef622
0e4ef622 added this pull request to the merge queue Jun 24, 2026
Merged via the queue into main with commit 140de0b Jun 24, 2026
2 checks passed
@0e4ef622
0e4ef622 deleted the batch-priority branch June 24, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants