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 1edf32a commit ae57590Copy full SHA for ae57590
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