mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-08 16:21:40 +00:00
Revert "sync: update OpenAI moderation to use new model"
This reverts commit 1b56bdc526.
OpenAI told us to switch to this model for moderation, but this model
clearly isn't ready for production use yet.
This commit is contained in:
@@ -282,10 +282,9 @@ class OpenAICompletionService extends BaseService {
|
||||
async check_moderation (text) {
|
||||
// create moderation
|
||||
const results = await this.openai.moderations.create({
|
||||
model: 'omni-moderation-latest',
|
||||
input: text,
|
||||
});
|
||||
|
||||
|
||||
let flagged = false;
|
||||
|
||||
for ( const result of results?.results ?? [] ) {
|
||||
|
||||
Reference in New Issue
Block a user