fix: create_plaintext_block

This commit is contained in:
Mason Daugherty 2025-08-04 11:31:29 -04:00
parent a6686d7c4f
commit 8d8a61ab3b
No known key found for this signature in database

View File

@ -1273,10 +1273,11 @@ def create_plaintext_block(
block = PlainTextContentBlock(
type="text-plain",
mime_type="text/plain",
text=text,
id=_ensure_id(id),
)
if text is not None:
block["text"] = text
if url is not None:
block["url"] = url
if base64 is not None: