refactor: layout improvements; suggestions count increased up to 10
This commit is contained in:
1 parent
c605414f73
commit
a4f420821a
8 files changed
+44
-30
No files matched your search
@@ -11,9 +11,9 @@ export async function GET(request: Request) {
|
||||
try {
|
||||
const completion = await openai.createCompletion({
|
||||
model: 'text-davinci-003',
|
||||
prompt: `Based on the movie description: ${params.description}, suggest 5 movies. Format of suggestions: only title separated by comma`,
|
||||
max_tokens: 70,
|
||||
temperature: 0.4,
|
||||
prompt: `Based on the movie description: ${params.description}, suggest 10 movies. Format of suggestions: only title separated by comma`,
|
||||
max_tokens: 120,
|
||||
temperature: 0.2,
|
||||
stop: ['Based on the movie description:']
|
||||
});
|
||||
|
||||
|
||||
+7
-1
@@ -9,7 +9,13 @@ import '@/styles/index.css';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Movie advisor',
|
||||
description: 'It will help you find a movie for evening'
|
||||
description: 'It will help you find a movie for evening',
|
||||
viewport: {
|
||||
width: 'device-width',
|
||||
initialScale: 1,
|
||||
maximumScale: 1,
|
||||
userScalable: false
|
||||
}
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
|
||||
Reference in new issue
Block a user