Skip to content

Commit 7f0a905

Browse files
committed
feat: Add reasoning content for openai provider
1 parent b52c904 commit 7f0a905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strands/models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def stream(self, request: dict[str, Any]) -> Iterable[dict[str, Any]]:
9999
if choice.delta.content:
100100
yield {"chunk_type": "content_delta", "data_type": "text", "data": choice.delta.content}
101101

102-
if choice.delta.reasoning_content:
102+
if hasattr(choice.delta, "reasoning_content") and choice.delta.reasoning_content:
103103
yield {
104104
"chunk_type": "content_delta",
105105
"data_type": "reasoning_content",

0 commit comments

Comments
 (0)