Only verify parts length

This commit is contained in:
Cohee
2025-04-23 20:05:28 +03:00
parent cf44ac8c1f
commit 50cdaadba0

View File

@@ -433,7 +433,7 @@ async function sendMakerSuiteRequest(request, response) {
generationConfig: generationConfig,
};
if (useSystemPrompt && Array.isArray(prompt.system_instruction) && prompt.system_instruction.length) {
if (useSystemPrompt && Array.isArray(prompt.system_instruction.parts) && prompt.system_instruction.parts.length) {
body.systemInstruction = prompt.system_instruction;
}