Claude: Don't send empty text with images

3471d0be935950c183b9b60366e2760963e49533

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

1 files changed, +2 -1Ignore whitespace
src/prompt-converters.js+2 -1
@@ -195,7 +195,8 @@ export function convertClaudeMessages(messages, prefillString, useSysPrompt, use
195 content.text = `${message.name}: ${content.text}`;195 content.text = `${message.name}: ${content.text}`;
196 }196 }
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' };
199 }200 }
200201
201 return content;202 return content;