Genericize provider scaffolding and stock replies
This commit is contained in:
parent
3512444e9a
commit
b26cfb2e9f
5 changed files with 98 additions and 98 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue