We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dd521a commit d3ac5feCopy full SHA for d3ac5fe
1 file changed
packages/@ant/model-provider/src/shared/openaiConvertMessages.ts
@@ -260,7 +260,7 @@ function convertInternalAssistantMessage(
260
261
const result: ChatCompletionAssistantMessageParam = {
262
role: 'assistant',
263
- content: textParts.length > 0 ? textParts.join('\n') : null,
+ content: textParts.length > 0 ? textParts.join('\n') : "",
264
...(toolCalls.length > 0 && { tool_calls: toolCalls }),
265
...(reasoningParts.length > 0 && { reasoning_content: reasoningParts.join('\n') }),
266
}
0 commit comments