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';