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

0e3b4335ebdb9e5b613a4c319d7bbfd5dd91de35

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

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