Skip to content

Commit

Permalink
chore: remove usage of redis, todo: remove dependency if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dyaskur committed Nov 10, 2024
1 parent 98d272d commit abf229c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions helpers/gpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ import crypto from 'crypto';
* // => {context: "random_number", expectedCount: 1, items: ["5-10"]}
*/
export async function getRandomFromGpt(something) {
const somethingMd5 = crypto.createHash('md5').update(something).digest('hex');
const client = new Redis(process.env.REDIS_URL);
const lastAnswers = await client.get(somethingMd5);
const openai = new OpenAI({
apiKey: process.env?.OPENAI_API_KEY,
});
Expand Down

0 comments on commit abf229c

Please sign in to comment.