Skip to content

Commit c0e5798

Browse files
authored
fix: Make logprob field optional for response Pydantic validation (#692)
1 parent 81d0173 commit c0e5798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/python/lorax/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class Token(BaseModel):
270270
# Token text
271271
text: str
272272
# Logprob
273-
logprob: float
273+
logprob: Optional[float]
274274
# Is the token a special token
275275
# Can be used to ignore tokens when concatenating
276276
special: bool

0 commit comments

Comments
 (0)