From 135eb04f2a1457ce821f664285a6955a63f42dc6 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sat, 2 Sep 2023 19:40:09 +0100 Subject: [PATCH] prompt improvement --- .../components/Lesson/Materials/Video/LocalVideo.svelte | 3 ++- src/routes/api/completion/+server.js | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte b/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte index a8da41ee..c44d326b 100644 --- a/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/Video/LocalVideo.svelte @@ -128,6 +128,7 @@

Select file( Mp4, MOV, AVI) to upload to your lesson.

+

(Max 30 MB)

{/if}

- Sorry we video wasn’t uploaded. The file size is too big,
maximum size is 50 MB. Try again! + Sorry we video wasn’t uploaded. The file size is too big,
maximum size is 30 MB. Try again!

diff --git a/src/routes/api/completion/+server.js b/src/routes/api/completion/+server.js index c52402c5..44963e03 100644 --- a/src/routes/api/completion/+server.js +++ b/src/routes/api/completion/+server.js @@ -14,9 +14,9 @@ export const config = { }; const instruction = { - outline: 'lesson outline', - note: 'lesson note', - activities: 'interactive lesson activities' + outline: 'a structured lesson outline', + note: 'a sample lesson note', + activities: 'few interactive lesson activities to my lecture' }; export async function POST({ request }) { @@ -27,7 +27,7 @@ export async function POST({ request }) { messages: [ { role: 'user', - content: `Generate a ${instruction[type]} given the course title is "${courseTitle}" and the lesson is "${lessonTitle}". Format in HTML without any styling, no ul, ol or li tags, don't include the title of the course and title of the lesson in the result & make sure the content is well detailed.` + content: `Generate ${instruction[type]} given the course title is "${courseTitle}" and the lesson is "${lessonTitle}". Format in HTML without any styling, no ul, ol or li tags, don't include the title of the course and title of the lesson in the result & make sure the content is well detailed.` } ], stream: true