Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Refactor [Explicit] [LLM APIs] Text Moderation #297

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Conversation

H0llyW00dzZ
Copy link
Owner

  • [+] 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.

- [+] 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(textmoderation.ts): correct typo in comment from 'nill' to 'nil'
Copy link

CodeQL analysis is complete for PR #297

@H0llyW00dzZ H0llyW00dzZ marked this pull request as ready for review February 28, 2024 08:52
@H0llyW00dzZ H0llyW00dzZ merged commit c03aa72 into main Feb 28, 2024
5 checks passed
@H0llyW00dzZ H0llyW00dzZ deleted the text-moderation branch February 28, 2024 08:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant