This repository was archived by the owner on Sep 15, 2024. It is now read-only.
forked from ChatGPTNextWeb/NextChat
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor [Explicit] [LLM APIs] Text Moderation (#297)
* Refactor [Explicit] [LLM APIs] Text Moderation - [+] refactor(textmoderation.ts): extract logModerationResult and formatModerationMessage to separate functions - [+] fix(textmoderation.ts): update error message casing for failed moderation request Note: By refactoring in this manner, maintenance becomes significantly easier. * Fix [LLM APIs] [Text Moderation] Comment Typo - [+] fix(textmoderation.ts): correct typo in comment from 'nill' to 'nil'
- Loading branch information
1 parent
c7a0d9a
commit c03aa72
Showing
1 changed file
with
42 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters