fix gemini system prompt

This commit is contained in:
Ecalose
2025-04-06 16:10:49 +08:00
committed by GitHub
parent e753e432be
commit ec02547b0e

View File

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