Genericize provider scaffolding and stock replies

This commit is contained in:
Meta Vens 2026-04-25 02:18:11 +01:00
commit b26cfb2e9f
5 changed files with 98 additions and 98 deletions

View file

@ -24,7 +24,7 @@ export class SystemMessageCatalog {
const variants = normalizeVariants(this.messages[key]);
if (variants.length === 0) {
return `Void: [missing system message: ${key}]`;
return `[missing system message: ${key}]`;
}
const state = this.shuffleState.get(key) ?? { bag: [] };
@ -36,7 +36,7 @@ export class SystemMessageCatalog {
const template = state.bag.shift();
if (!template) {
return `Void: [missing system message: ${key}]`;
return `[missing system message: ${key}]`;
}
state.last = template;