Update plugin documentation to include mode parameter for replacer functions

This commit is contained in:
Kwaroran
2024-12-20 23:49:52 +09:00
parent 7cd49fc8c3
commit 6860382bf1

View File

@@ -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`