mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 05:20:39 +00:00
ChatTongyi reasoning_content fix (#30694)
- **Description:** Small fix for `reasoning_content` key - **Issue:** #30689
This commit is contained in:
parent
4d03ba4686
commit
e935da0b12
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user