Skip to content

Commit 0e29888

Browse files
committed
Updated inference status enum from numerical to meaningful string values
1 parent eeecade commit 0e29888

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ v1.12.1 (2025-05-13)
55
--------------------
66

77
* Fixed inference examples docs generation
8+
* Updated inference status enum from numerical to meaningful string values
89

910
v1.12.0 (2025-05-12)
1011
--------------------

datacrunch/InferenceClient/inference_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ class InferenceClientError(Exception):
1313

1414

1515
class AsyncStatus(int, Enum):
16-
Initialized = 0
17-
Queue = 1
18-
Inference = 2
19-
Completed = 3
16+
Initialized = "Initialized"
17+
Queue = "Queue"
18+
Inference = "Inference"
19+
Completed = "Completed"
2020

2121

2222
@dataclass_json(undefined=Undefined.EXCLUDE)

0 commit comments

Comments
 (0)