Skip to content
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

Migrated code in server.js to work with OpenAI API v4 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ramia15
Copy link

@ramia15 ramia15 commented Sep 2, 2023

Updated the code to work with OpenAI API v4 and added improved error handling. This is my first time contributing on github since college. :)

@sebastian031093
Copy link

Hi @ramia15 your solution is like this

const configuration = {
apiKey: process.env.OPENIA_KEY,
};
const openai = new OpenAI(configuration);

all changes from new realase in openAI right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants