mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 19:04:19 +00:00
Make a couple properties optional (#963)
This commit is contained in:
parent
0cbb3e401c
commit
474c4bdd7a
4 changed files with 4 additions and 10 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue