testing thinking

This commit is contained in:
jknapp 2025-03-16 19:29:54 -07:00
parent a33a73003e
commit 6c05ab0611

View File

@ -183,8 +183,9 @@ 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"]: if '"<details type="reasoning" done="false">' in delta["reasoningContent"]["text"]:
yield delta["reasoningContent"]["text"] yield "<thinking>"
yield delta["reasoningContent"]["text"]
# Handle regular response text # Handle regular response text
if "text" in delta: if "text" in delta: