From 6860382bf14138f2c978fc99a376d9cae0117381 Mon Sep 17 00:00:00 2001 From: Kwaroran Date: Fri, 20 Dec 2024 23:49:52 +0900 Subject: [PATCH] Update plugin documentation to include mode parameter for replacer functions --- plugins.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins.md b/plugins.md index f4ad9b72..18609b9b 100644 --- a/plugins.md +++ b/plugins.md @@ -133,8 +133,9 @@ Adds a risu replacer to the plugin. - `type: string` - The replacer type. one of `beforeRequest`, `afterRequest`. - `func: ReplacerFunction` - The replacer function. vary depending on the type. - - If the type is `afterRequest`, the function should be `(content: string) => string`. - - If the type is `beforeRequest`, the function should be `(content: Chat[]) => Chat[]`. + - If the type is `afterRequest`, the function should be `(content: string, mode:string) => string`. + - If the type is `beforeRequest`, the function should be `(content: Chat[], mode:string) => Chat[]`. + - mode is one of `model`, `submodel`, `memory`, `emotion`, `otherAx`, `translate`. ### `removeRisuReplacer(type: string, func: ReplacerFunction): void`