Skip to content

Commit 5ba7f20

Browse files
committed
Updated inference status enum from numerical to meaningful string values
1 parent 796354f commit 5ba7f20

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
@@ -2,6 +2,7 @@ Changelog
22
=========
33

44
* Fixed inference examples docs generation
5+
* Updated inference status enum from numerical to meaningful string values
56

67
v1.12.0 (2025-05-12)
78
--------------------

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)