Skip to content

Commit d80fd6c

Browse files
committed
Small fix
1 parent fc1f1cf commit d80fd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

temporalio/contrib/openai_agents/_temporal_model_stub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _extract_summary(input: Union[str, list[TResponseInputItem]]) -> str:
165165
elif isinstance(input, list):
166166
# Find all message inputs, which are reasonably summarizable
167167
messages: list[TResponseInputItem] = [
168-
item for item in input if (item.get("type") or "message") == "message"
168+
item for item in input if item.get("type", "message") == "message"
169169
]
170170
if not messages:
171171
return ""

0 commit comments

Comments
 (0)