Skip to content

Commit 1bab19a

Browse files
committed
More typing
1 parent de60e8e commit 1bab19a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/checks/moderation.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ function isNotFoundError(error: unknown): boolean {
9595
* @param data The text to analyze
9696
* @returns The moderation API response
9797
*/
98-
function callModerationAPI(client: OpenAI, data: string) {
98+
function callModerationAPI(
99+
client: OpenAI,
100+
data: string
101+
): ReturnType<OpenAI['moderations']['create']> {
99102
return client.moderations.create({
100103
model: 'omni-moderation-latest',
101104
input: data,

0 commit comments

Comments
 (0)