Skip to content

Commit

Permalink
Update plugin documentation to include mode parameter for replacer fu…
Browse files Browse the repository at this point in the history
…nctions
  • Loading branch information
kwaroran committed Dec 20, 2024
1 parent 7cd49fc commit 6860382
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 6860382

Please sign in to comment.