Add dummy signatures to image and empty text parts

35949cac0135da800c197891c102409c7ee09c54

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

1 files changed, +1 -1Ignore whitespace
src/prompt-converters.js+1 -1
@@ -555,7 +555,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt, names) {
555555 p.thoughtSignature = skipSignatureMagic;
556556 });
557557 if (/-image/.test(model) && message.role === 'model') {
558558 parts.filter(p => typeof p.text === 'string' || p.inlineData).forEach(p => {
559559 p.thoughtSignature = skipSignatureMagic;
560560 });
561561 }