From 4fa800c3615a338a811b4d96aeb5a56b21004dbf Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Feb 2023 01:34:57 -0500 Subject: [PATCH] Remove unused code --- libCore.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/libCore.js b/libCore.js index ccbed74..1bfb15f 100644 --- a/libCore.js +++ b/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); } \ No newline at end of file