Skip to content

Commit

Permalink
rebase and update FinishReason
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Sep 15, 2023
1 parent bf1aa90 commit 6a79bca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/deepsparse/transformers/pipelines/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@


class FinishReason(Enum):
STOP = "stop token generated."
LENGTH = "max token generation reached."
TIME = "max time reached."
STOP = "stop"
LENGTH = "length"
TIME = "time"


class TextGenerationInput(BaseModel):
Expand Down

0 comments on commit 6a79bca

Please sign in to comment.