From e6607c7c13986475e1983ffca16e2f8dc5664632 Mon Sep 17 00:00:00 2001 From: Mikayla Dobson <93477693+innocuous-symmetry@users.noreply.github.com> Date: Wed, 18 May 2022 08:56:22 -0500 Subject: [PATCH] cleanup --- src/components/GPT3.js | 2 -- src/components/ResponseSection.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/components/GPT3.js b/src/components/GPT3.js index dc5f029..0c8e4c5 100644 --- a/src/components/GPT3.js +++ b/src/components/GPT3.js @@ -10,8 +10,6 @@ export const getResponse = async (input) => { body: JSON.stringify(data) }).then(res => res.json()); - console.log(response); - let text = response.choices[0].text; return text; diff --git a/src/components/ResponseSection.js b/src/components/ResponseSection.js index 0efb5c1..ea04ddd 100644 --- a/src/components/ResponseSection.js +++ b/src/components/ResponseSection.js @@ -25,10 +25,6 @@ export default function ResponseSection({ userInput, response, responseRef }) { setResponseToRender(null); } }, [responseToRender, contents, resCount, userInput]); - - useEffect(() => { - console.log(contents); - }, [contents]); return (