mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Only verify parts length
This commit is contained in:
@@ -433,7 +433,7 @@ async function sendMakerSuiteRequest(request, response) {
|
|||||||
generationConfig: generationConfig,
|
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;
|
body.systemInstruction = prompt.system_instruction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user