We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2e52b commit b4300c2Copy full SHA for b4300c2
1 file changed
packages/baseai/src/dev/utils/moderate.ts
@@ -29,7 +29,10 @@ export async function moderate({
29
}
30
31
// Perform moderation on the constructed prompt text
32
- const moderation = await openai.moderations.create({ input: promptText });
+ const moderation = await openai.moderations.create({
33
+ model: 'omni-moderation-latest',
34
+ input: promptText
35
+ });
36
const result = moderation?.results[0];
37
// dlog('moderation:', result);
38
0 commit comments