Skip to content

Commit cbb833f

Browse files
committed
Revert "sync: update OpenAI moderation to use new model"
This reverts commit 1b56bdc. OpenAI told us to switch to this model for moderation, but this model clearly isn't ready for production use yet.
1 parent 88011cf commit cbb833f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/src/modules/puterai/OpenAICompletionService.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,9 @@ class OpenAICompletionService extends BaseService {
282282
async check_moderation (text) {
283283
// create moderation
284284
const results = await this.openai.moderations.create({
285-
model: 'omni-moderation-latest',
286285
input: text,
287286
});
288-
287+
289288
let flagged = false;
290289

291290
for ( const result of results?.results ?? [] ) {

0 commit comments

Comments
 (0)