Create Video Summary with Next.js and Open AI

In the previous tutorial, we completed our Dashboard and Account pages. In this section, we will work on generating our video summary using Open AI and LangChain.


This is a companion discussion topic for the original entry at https://strapi.io/blog/epic-next-js-14-tutorial-part-6-create-video-summary-with-next-js-and-open-ai

{“error”:“429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.”}

Getting this error again and again for newly created Open AI key. This is reference to part 6 of video summary blog. Can anyone help me out to resolve this issue ?.

You may have exceeded you free limit when using Open AI. You will need to add more credits to you open ai account.

I created new account and generated new secret key however it is giving same error.

Do i need to pay for usage of open ai APIs now or any configuration i need to set?

i get some errors about youtube-transcript:

FROM OUR ROUTE HANDLER: ReadableStream { locked: false, state: 'readable', supportsBYOB: false }
fetchTranscript https://www.youtube.com/watch?v=znZs418fc_c&list=PL7Q0DQYATmvgONvIWsy34aDkAtcdjsQLE&index=20
Error processing request: YoutubeTranscriptError: [YoutubeTranscript] TypeError: fetch failed

how to fix it?

I completed up to part 6 and didn’t get this error.
I was also able to get the transcript of https://www.youtube.com/watch?v=znZs418fc_c&list=PL7Q0DQYATmvgONvIWsy34aDkAtcdjsQLE&index=20.
( I skipped generateSummary because I didn’t hove no credit of Open AI, though. :sweat_smile:)
so it may only be getting error in your environment.

Whatever the cause of the error, to resolve the problem early, it would be better your repository public or visible somewhere.

Here is the repo for the project. I have been out due to surgery so haven’t looked at the code in a bit. But you can check it out here GitHub - PaulBratslavsky/epic-next-course

I am looking to make final updates and hopefully move the repo to Strapi for easier access.

1 Like