Skip to content

Commit e935da0

Browse files
ChatTongyi reasoning_content fix (#30694)
- **Description:** Small fix for `reasoning_content` key - **Issue:** #30689
1 parent 4d03ba4 commit e935da0

File tree

1 file changed

+1
-1
lines changed
  • libs/community/langchain_community/chat_models

1 file changed

+1
-1
lines changed

libs/community/langchain_community/chat_models/tongyi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def _stream(
731731
if (
732732
choice["finish_reason"] == "null"
733733
and message["content"] == ""
734-
and message["reasoning_content"] == ""
734+
and message.get("reasoning_content", "") == ""
735735
and "tool_calls" not in message
736736
):
737737
continue

0 commit comments

Comments
 (0)