Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/routes/api/prompt/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down