Add dummy signatures to image and empty text parts
| @@ -555,7 +555,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt, names) { | ||
| 555 | 555 | p.thoughtSignature = skipSignatureMagic; |
| 556 | 556 | }); |
| 557 | 557 | if (/-image/.test(model) && message.role === 'model') { |
| 558 | 558 | parts.filter(p => typeof p.text === 'string' || p.inlineData).forEach(p => { |
| 559 | 559 | p.thoughtSignature = skipSignatureMagic; |
| 560 | 560 | }); |
| 561 | 561 | } |