Merge pull request #3816 from Ecalose/gemini_sys_prompt fix gemini system prompt

3d79885ddd09212af7e745d9d7212b2ebe8f4ba4

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

Signed
1 files changed, +1 -1Ignore whitespace
src/prompt-converters.js+1 -1
@@ -413,7 +413,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt, names) {
413 }413 }
414 }414 }
415415
416 const system_instruction = { parts: { text: sys_prompt.trim() } };416 const system_instruction = { parts: [{ text: sys_prompt.trim() }]};
417 const toolNameMap = {};417 const toolNameMap = {};
418418
419 const contents = [];419 const contents = [];