mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-13 22:59:05 +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 (
|
if (
|
||||||
choice["finish_reason"] == "null"
|
choice["finish_reason"] == "null"
|
||||||
and message["content"] == ""
|
and message["content"] == ""
|
||||||
and message["reasoning_content"] == ""
|
and message.get("reasoning_content", "") == ""
|
||||||
and "tool_calls" not in message
|
and "tool_calls" not in message
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user