Only verify parts length
| @@ -433,7 +433,7 @@ async function sendMakerSuiteRequest(request, response) { | |||
| 433 | generationConfig: generationConfig, | 433 | generationConfig: generationConfig, |
| 434 | }; | 434 | }; |
| 435 | 435 | ||
| 436 | if (useSystemPrompt && Array.isArray(prompt.system_instruction) && prompt.system_instruction.length) { | 436 | if (useSystemPrompt && Array.isArray(prompt.system_instruction.parts) && prompt.system_instruction.parts.length) { |
| 437 | body.systemInstruction = prompt.system_instruction; | 437 | body.systemInstruction = prompt.system_instruction; |
| 438 | } | 438 | } |
| 439 | 439 | ||