mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Fix
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = class ToxicityCommand extends Command {
|
|||||||
.query({ key: GOOGLE_KEY })
|
.query({ key: GOOGLE_KEY })
|
||||||
.send({
|
.send({
|
||||||
comment: { text },
|
comment: { text },
|
||||||
langauges: ['en'],
|
languages: ['en'],
|
||||||
requestedAttributes: { TOXICITY: {} }
|
requestedAttributes: { TOXICITY: {} }
|
||||||
});
|
});
|
||||||
const toxicity = Math.round(body.attributeScores.TOXICITY.summaryScore.value * 100);
|
const toxicity = Math.round(body.attributeScores.TOXICITY.summaryScore.value * 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user