From 7f79c51196415c5b8d81880b2519d7872f2f109c Mon Sep 17 00:00:00 2001 From: awesomecodereviewer <125730579+awesomecodereviewer@users.noreply.github.com> Date: Sat, 18 Feb 2023 16:09:01 +0700 Subject: [PATCH] Clean code --- src/routes/api/prompt/+server.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/routes/api/prompt/+server.ts b/src/routes/api/prompt/+server.ts index c638dff..8b831a2 100644 --- a/src/routes/api/prompt/+server.ts +++ b/src/routes/api/prompt/+server.ts @@ -7,24 +7,6 @@ const configuration = new Configuration({ }); const openai = new OpenAIApi(configuration); -// console.log(openai); - -/** @type {import('./$types').RequestHandler} */ -// export function GET({ url }) { -// const min = Number(url.searchParams.get('min') ?? '0'); -// const max = Number(url.searchParams.get('max') ?? '1'); - -// const d = max - min; - -// if (isNaN(d) || d < 0) { -// throw error(400, 'min and max must be numbers, and min must be less than max'); -// } - -// const random = min + Math.random() * d; - -// return new Response(String(random)); -// } - import { json } from '@sveltejs/kit'; import type { RequestHandler } from './$types';