ChatTongyi reasoning_content fix (#30694)

- **Description:** Small fix for `reasoning_content` key
- **Issue:** #30689
This commit is contained in:
Mohammad Mohtashim 2025-04-07 18:27:33 +05:00 committed by GitHub
parent 4d03ba4686
commit e935da0b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -731,7 +731,7 @@ class ChatTongyi(BaseChatModel):
if (
choice["finish_reason"] == "null"
and message["content"] == ""
and message["reasoning_content"] == ""
and message.get("reasoning_content", "") == ""
and "tool_calls" not in message
):
continue