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.
Improve [Explicit] [LLM APIs] [Text Moderation] Error Handling (#290)
* Feat [Explicit] [LLM APIs] [Text Moderation] Error Handling - [+] feat(textmoderation.ts): improve error handling for moderation responses - [+] feat(textmoderation.ts): add content type check for moderation responses * Refactor [Explicit] [LLM APIs] [OpenAI] Display Error Messages - [+] feat(openai.ts): add error handling for text moderation - [+] refactor(openai.ts): improve error message display for text moderation
- Loading branch information
1 parent
e66da1f
commit 1bf37c0
Showing
2 changed files
with
36 additions
and
9 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
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