Skip to content

Commit 93e75e5

Browse files
committed
llm context reasoning
1 parent de61b07 commit 93e75e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/inferencesh/models/llm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ def merge_tool_calls(messages: List[ContextMessage]) -> List[Dict[str, Any]]:
375375

376376
if msg.reasoning:
377377
msg_dict["reasoning"] = msg.reasoning
378+
msg_dict["reasoning_details"] = {
379+
"type": "reasoning.text",
380+
"text": msg.reasoning
381+
}
378382

379383
messages.append(msg_dict)
380384
current_messages = [msg]

0 commit comments

Comments
 (0)