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 1df1afc commit 1b56bdcCopy full SHA for 1b56bdc
src/backend/src/modules/puterai/OpenAICompletionService.js
@@ -282,9 +282,10 @@ class OpenAICompletionService extends BaseService {
282
async check_moderation (text) {
283
// create moderation
284
const results = await this.openai.moderations.create({
285
+ model: 'omni-moderation-latest',
286
input: text,
287
});
-
288
+
289
let flagged = false;
290
291
for ( const result of results?.results ?? [] ) {
0 commit comments