reasonix 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2651,7 +2651,7 @@ ${summary}`;
2651
2651
  assistantMessage(content, toolCalls, producingModel, reasoningContent) {
2652
2652
  const msg = { role: "assistant", content };
2653
2653
  if (toolCalls.length > 0) msg.tool_calls = toolCalls;
2654
- if (isThinkingModeModel(producingModel)) {
2654
+ if (isThinkingModeModel(producingModel) || reasoningContent && reasoningContent.length > 0) {
2655
2655
  msg.reasoning_content = reasoningContent ?? "";
2656
2656
  }
2657
2657
  return msg;