Skip to content

Commit

Permalink
fix: Make logprob field optional for response Pydantic validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyftang committed Nov 21, 2024
1 parent 81d0173 commit 314f9aa
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 314f9aa

Please sign in to comment.