Skip to content

Commit

Permalink
fix: Make logprob field optional for response Pydantic validation (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyftang authored Nov 22, 2024
1 parent 81d0173 commit c0e5798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/python/lorax/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class Token(BaseModel):
# Token text
text: str
# Logprob
logprob: float
logprob: Optional[float]
# Is the token a special token
# Can be used to ignore tokens when concatenating
special: bool
Expand Down

0 comments on commit c0e5798

Please sign in to comment.