@demicodes/provider-openai-api 0.10.3 → 0.10.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -509,7 +509,7 @@ function inferenceItemsToOpenAIMessages(systemPrompt, items, passBackReasoningCo
509
509
  role: "assistant",
510
510
  content: assistant.content || null,
511
511
  ...assistant.toolCalls.length > 0 ? { tool_calls: assistant.toolCalls } : {},
512
- ...passBackReasoningContent && assistant.thinking ? { reasoning_content: assistant.thinking } : {}
512
+ ...passBackReasoningContent && (assistant.thinking || assistant.toolCalls.length > 0) ? { reasoning_content: assistant.thinking } : {}
513
513
  });
514
514
  assistant = null;
515
515
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@demicodes/provider-openai-api",
3
3
  "description": "OpenAI API provider adapter for Demi.",
4
- "version": "0.10.3",
4
+ "version": "0.10.4",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {