diff --git a/src/app/api/generate/route.ts b/src/app/api/generate/route.ts index 0614bb0..54db9f5 100644 --- a/src/app/api/generate/route.ts +++ b/src/app/api/generate/route.ts @@ -35,7 +35,7 @@ export async function POST(req: Request): Promise { // } let { prompt } = await req.json(); const response = await openai.createChatCompletion({ - model: 'gpt-4-1106-preview', + model: 'gpt-3.5-turbo', messages: [ { role: 'system', diff --git a/src/app/create/coverletter/page.tsx b/src/app/create/coverletter/page.tsx index 4794963..ede82fd 100644 --- a/src/app/create/coverletter/page.tsx +++ b/src/app/create/coverletter/page.tsx @@ -12,9 +12,9 @@ export const metadata: Metadata = { }; export default async function CreateCoverLetterPage() { - // const headersList = headers(); - // const referer = headersList.get('referer'); - // referer === null && redirect(MAIN_PATH); + const headersList = headers(); + const referer = headersList.get('referer'); + referer === null && redirect(MAIN_PATH); const accessToken = cookies().get(ACCESS_TOKEN)?.value; const refreshToken = cookies().get(REFRESH_TOKEN)?.value;