-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpt.ts configuration error #5
Comments
After some research online, I found out that the configuration has been changed to this:
After changing the openai setup above, you can also edit the response like this:
I left everything else as @Elliott-Chong had set it up in this repository, and this new setup has worked for me: |
To anyone who meets the same issue, you can try adding this slight change in gpt.ts Cheers. |
C:\Users\nikhi\Desktop\quizmify>npm run dev
▲ Next.js 14.2.3
✓ Starting... |
Hey guys, I have had an error for the past few hours related to the gpt.ts file configuration and after inspecting through the setup, I noticed that this:
The initial
openai
setup:import { Configuration, OpenAIApi } from 'openai'; const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, }); const openai = new OpenAIApi(configuration);
The error I was getting:
The text was updated successfully, but these errors were encountered: