Remove unused code
This commit is contained in:
31
libCore.js
31
libCore.js
@@ -260,29 +260,6 @@ exports.getSlang = async function (question) {
|
||||
return slangData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use ChatGPT to generate a response
|
||||
*
|
||||
* @param {*} _prompt The use submitted text prompt
|
||||
* @param {*} param1 Default parameters can be modified
|
||||
* @returns
|
||||
*/
|
||||
exports.getChat = async (_prompt, { _model = "text-davinci-003", _temperature = 0, _max_tokens = 100 }) => {
|
||||
log.DEBUG("Getting chat with these properties: ", _prompt, _model, _temperature, _max_tokens)
|
||||
return
|
||||
/*
|
||||
const response = await openai.createCompletion({
|
||||
model: _model,
|
||||
prompt: _prompt,
|
||||
temperature: _temperature,
|
||||
max_tokens: _max_tokens
|
||||
});
|
||||
|
||||
var responseData = response.data.choices[0].text;
|
||||
return responseData;
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
* getSources - Get the RSS sources currently in use
|
||||
* @constructor
|
||||
@@ -325,12 +302,4 @@ exports.getCategories = function () {
|
||||
|
||||
return results
|
||||
});
|
||||
}
|
||||
|
||||
exports.addPost = (postObject, callback) => {
|
||||
if(!postObject.post_link_hash) return callback(new Error("No hash included"), undefined);
|
||||
}
|
||||
|
||||
exports.checkIfPostExists = (postObject, callback) => {
|
||||
if(!postObject.post_id || !postObject.post_link_hash) return callback(new Error("No hash included"), undefined);
|
||||
}
|
||||
Reference in New Issue
Block a user