Make a couple properties optional (#963)

This commit is contained in:
Ashwin Bharambe 2025-02-04 16:20:24 -08:00 committed by GitHub
parent 0cbb3e401c
commit 474c4bdd7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 10 deletions

View file

@ -142,7 +142,7 @@ class CompletionMessage(BaseModel):
role: Literal["assistant"] = "assistant"
content: InterleavedContent
stop_reason: StopReason
tool_calls: List[ToolCall] = Field(default_factory=list)
tool_calls: Optional[List[ToolCall]] = Field(default_factory=list)
Message = register_schema(