testing thinking
This commit is contained in:
parent
6c05ab0611
commit
ba5fbffbe2
@ -183,8 +183,7 @@ class Pipeline:
|
|||||||
|
|
||||||
# Handle reasoning content (Chain of Thought)
|
# Handle reasoning content (Chain of Thought)
|
||||||
if "reasoningContent" in delta and "text" in delta["reasoningContent"]:
|
if "reasoningContent" in delta and "text" in delta["reasoningContent"]:
|
||||||
if '"<details type="reasoning" done="false">' in delta["reasoningContent"]["text"]:
|
print(f"Reasoning content: {delta['reasoningContent']}")
|
||||||
yield "<thinking>"
|
|
||||||
yield delta["reasoningContent"]["text"]
|
yield delta["reasoningContent"]["text"]
|
||||||
|
|
||||||
# Handle regular response text
|
# Handle regular response text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user