prompt improvement
This commit is contained in:
@@ -128,6 +128,7 @@
|
|||||||
<p class=" text-center text-sm font-normal">
|
<p class=" text-center text-sm font-normal">
|
||||||
Select file( Mp4, MOV, AVI) to upload to your lesson.
|
Select file( Mp4, MOV, AVI) to upload to your lesson.
|
||||||
</p>
|
</p>
|
||||||
|
<p>(Max 30 MB)</p>
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
<input
|
<input
|
||||||
@@ -150,7 +151,7 @@
|
|||||||
Oops 😬, couldn’t upload video
|
Oops 😬, couldn’t upload video
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-center text-xs font-normal text-[#ADADAD]">
|
<p class="text-center text-xs font-normal text-[#ADADAD]">
|
||||||
Sorry we video wasn’t uploaded. The file size is too big,<br /> maximum size is 50 MB. Try again!
|
Sorry we video wasn’t uploaded. The file size is too big,<br /> maximum size is 30 MB. Try again!
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
<PrimaryButton label="Try another file" onClick={tryAgain} />
|
<PrimaryButton label="Try another file" onClick={tryAgain} />
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ export const config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const instruction = {
|
const instruction = {
|
||||||
outline: 'lesson outline',
|
outline: 'a structured lesson outline',
|
||||||
note: 'lesson note',
|
note: 'a sample lesson note',
|
||||||
activities: 'interactive lesson activities'
|
activities: 'few interactive lesson activities to my lecture'
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function POST({ request }) {
|
export async function POST({ request }) {
|
||||||
@@ -27,7 +27,7 @@ export async function POST({ request }) {
|
|||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
role: 'user',
|
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
|
stream: true
|
||||||
|
|||||||
Reference in New Issue
Block a user