| @@ -412,7 +412,7 @@ export function convertGooglePrompt(messages, model, useSysPrompt, names) { | |||
| 412 | } | 412 | } |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | const system_instruction = { parts: { text: sys_prompt.trim() } }; | 415 | const system_instruction = { parts: [{ text: sys_prompt.trim() }]}; |
| 416 | const toolNameMap = {}; | 416 | const toolNameMap = {}; |
| 417 | 417 | ||
| 418 | const contents = []; | 418 | const contents = []; |