Unverified Commit c8f549d9 authored by Timofey's avatar Timofey Committed by GitHub
Browse files

Fix parsing ChatCompletionMessage (#7273)


Co-authored-by: default avatarTimofey K <timosha1113@gmail.com>
parent 134fa43e
......@@ -317,7 +317,9 @@ class ToolCall(BaseModel):
class ChatCompletionMessageGenericParam(BaseModel):
role: Literal["system", "assistant", "tool"]
content: Union[str, List[ChatCompletionMessageContentTextPart], None]
content: Union[str, List[ChatCompletionMessageContentTextPart], None] = Field(
default=None
)
tool_call_id: Optional[str] = None
name: Optional[str] = None
reasoning_content: Optional[str] = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment