Skip to content

Commit

Permalink
fix: python deserialization (huggingface#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaluma authored and yuanwu2017 committed Sep 25, 2024
1 parent 8dd9b2b commit 4a54e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/python/text_generation/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ChoiceDeltaToolCall(BaseModel):
class ChoiceDelta(BaseModel):
role: str
content: Optional[str] = None
tool_calls: Optional[ChoiceDeltaToolCall]
tool_calls: Optional[ChoiceDeltaToolCall] = None


class Choice(BaseModel):
Expand Down

0 comments on commit 4a54e41

Please sign in to comment.