Skip to content

Commit 79faee1

Browse files
committed
Fixing tests
1 parent c60015c commit 79faee1

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

docs/api/message.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,11 @@ def from_model(
12621262
metadata = {"error": models.content}
12631263

12641264
return cls(
1265-
role=role, content=content, slices=slices_, tool_call_id=tool_call_id, metadata=metadata
1265+
role=role,
1266+
content=content,
1267+
slices=slices_,
1268+
tool_call_id=tool_call_id,
1269+
metadata=metadata or {},
12661270
)
12671271
```
12681272

rigging/message.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,11 @@ def from_model(
13101310
metadata = {"error": models.content}
13111311

13121312
return cls(
1313-
role=role, content=content, slices=slices_, tool_call_id=tool_call_id, metadata=metadata
1313+
role=role,
1314+
content=content,
1315+
slices=slices_,
1316+
tool_call_id=tool_call_id,
1317+
metadata=metadata or {},
13141318
)
13151319

13161320
@classmethod

0 commit comments

Comments
 (0)