We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de60e8e commit 1bab19aCopy full SHA for 1bab19a
src/checks/moderation.ts
@@ -95,7 +95,10 @@ function isNotFoundError(error: unknown): boolean {
95
* @param data The text to analyze
96
* @returns The moderation API response
97
*/
98
-function callModerationAPI(client: OpenAI, data: string) {
+function callModerationAPI(
99
+ client: OpenAI,
100
+ data: string
101
+): ReturnType<OpenAI['moderations']['create']> {
102
return client.moderations.create({
103
model: 'omni-moderation-latest',
104
input: data,
0 commit comments