Adding doNotStore

This commit is contained in:
okbel
2018-01-09 10:34:24 -03:00
parent c0f266dfa5
commit 579644c910
2 changed files with 3 additions and 1 deletions
@@ -1,5 +1,5 @@
const fetch = require('node-fetch');
const {API_ENDPOINT, API_KEY, THRESHOLD, API_TIMEOUT} = require('./config');
const {API_ENDPOINT, API_KEY, THRESHOLD, API_TIMEOUT, DO_NOT_STORE} = require('./config');
/**
* Get scores from the perspective api
@@ -20,6 +20,7 @@ async function getScores(text) {
// TODO: support other languages.
languages: ['en'],
doNotStore: DO_NOT_STORE,
requestedAttributes: {
TOXICITY: {},
SEVERE_TOXICITY: {},