@openrouter/ai-sdk-provider 2.9.0 → 2.9.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.
@@ -2978,7 +2978,7 @@ function convertToOpenRouterChatMessages(prompt) {
2978
2978
  const effectiveReasoning = reasoning && finalReasoningDetails && finalReasoningDetails.length > 0 ? reasoning : void 0;
2979
2979
  messages.push({
2980
2980
  role: "assistant",
2981
- content: text,
2981
+ content: text || null,
2982
2982
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0,
2983
2983
  reasoning: effectiveReasoning,
2984
2984
  reasoning_details: finalReasoningDetails,