Fix cfgMessage handling
| @@ -4467,6 +4467,8 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | ||
| 4467 | 4467 | // TODO: Make all extension prompts use an array/splice method |
| 4468 | 4468 | const lengthDiff = mesSend.length - cfgPrompt.depth; |
| 4469 | 4469 | const cfgDepth = lengthDiff >= 0 ? lengthDiff : 0; |
| 4470 | + const cfgMessage = finalMesSend[cfgDepth]; | |
| 4471 | + if (cfgMessage) { | |
| 4470 | 4472 | if (!Array.isArray(finalMesSend[cfgDepth].extensionPrompts)) { |
| 4471 | 4473 | finalMesSend[cfgDepth].extensionPrompts = []; |
| 4472 | 4474 | } |
| @@ -4474,6 +4476,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | ||
| 4474 | 4476 | } |
| 4475 | 4477 | } |
| 4476 | 4478 | } |
| 4479 | + } | |
| 4477 | 4480 | |
| 4478 | 4481 | // Add prompt bias after everything else |
| 4479 | 4482 | // Always run with continue |