Claude: Don't send empty text with images

3471d0be935950c183b9b60366e2760963e49533

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
src/prompt-converters.js+2 -1
@@ -195,7 +195,8 @@ export function convertClaudeMessages(messages, prefillString, useSysPrompt, use
195195 content.text = `${message.name}: ${content.text}`;
196196 }
197197
198- return content;
198+ // If the text is empty, replace it with a zero-width space
199+ return { type: 'text', text: content.text || '\u200b' };
199200 }
200201
201202 return content;