Update: [prompt-converters.js] Remove entire dummy img codes

0e3b4335ebdb9e5b613a4c319d7bbfd5dd91de35

M0cho <77959408+M0ch0@users.noreply.github.com>

1 files changed, +0 -11Showing whitespace changes
src/prompt-converters.js+0 -11
@@ -333,8 +333,6 @@ export function convertCohereMessages(messages, charName = '', userName = '') {
333333 * @returns {{contents: *[], system_instruction: {parts: {text: string}}}} Prompt for Google MakerSuite models
334334 */
335335export function convertGooglePrompt(messages, model, useSysPrompt = false, charName = '', userName = '') {
336- // This is a 1x1 transparent PNG
337- const PNG_PIXEL = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';
338336
339337 const visionSupportedModels = [
340338 'gemini-2.0-flash-exp',
@@ -445,15 +443,6 @@ export function convertGooglePrompt(messages, model, useSysPrompt = false, charN
445443 }
446444 });
447445
448- if (isMultimodal && !hasImage) {
449- contents[0].parts.push({
450- inlineData: {
451- mimeType: 'image/png',
452- data: PNG_PIXEL,
453- },
454- });
455- }
456-
457446 return { contents: contents, system_instruction: system_instruction };
458447}
459448