Skip to content

Commit 6a79bca

Browse files
committed
rebase and update FinishReason
1 parent bf1aa90 commit 6a79bca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/deepsparse/transformers/pipelines/text_generation.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555

5656

5757
class FinishReason(Enum):
58-
STOP = "stop token generated."
59-
LENGTH = "max token generation reached."
60-
TIME = "max time reached."
58+
STOP = "stop"
59+
LENGTH = "length"
60+
TIME = "time"
6161

6262

6363
class TextGenerationInput(BaseModel):

0 commit comments

Comments
 (0)