Skip to content

Commit ae57590

Browse files
🐛 FIX: Moderation model (#152)
1 parent 1edf32a commit ae57590

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/baseai/src/dev/utils/moderate.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ export async function moderate({
2929
}
3030

3131
// Perform moderation on the constructed prompt text
32-
const moderation = await openai.moderations.create({ input: promptText });
32+
const moderation = await openai.moderations.create({
33+
model: 'omni-moderation-latest',
34+
input: promptText
35+
});
3336
const result = moderation?.results[0];
3437
// dlog('moderation:', result);
3538

0 commit comments

Comments
 (0)