Only verify parts length

50cdaadba08c8b032f79f6908164fb31737c836e

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
src/endpoints/backends/chat-completions.js+1 -1
@@ -433,7 +433,7 @@ async function sendMakerSuiteRequest(request, response) {
433433 generationConfig: generationConfig,
434434 };
435435
436436 if (useSystemPrompt && Array.isArray(prompt.system_instruction.parts) && prompt.system_instruction.parts.length) {
437437 body.systemInstruction = prompt.system_instruction;
438438 }
439439