Merge pull request #3816 from Ecalose/gemini_sys_prompt fix gemini system prompt
Signed| @@ -413,7 +413,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt, names) { | |||
| 413 | } | 413 | } |
| 414 | } | 414 | } |
| 415 | 415 | ||
| 416 | const system_instruction = { parts: { text: sys_prompt.trim() } }; | 416 | const system_instruction = { parts: [{ text: sys_prompt.trim() }]}; |
| 417 | const toolNameMap = {}; | 417 | const toolNameMap = {}; |
| 418 | 418 | ||
| 419 | const contents = []; | 419 | const contents = []; |