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

openai is not working... #10

Open
flan02 opened this issue Apr 27, 2024 · 0 comments
Open

openai is not working... #10

flan02 opened this issue Apr 27, 2024 · 0 comments

Comments

@flan02
Copy link

flan02 commented Apr 27, 2024

When a random programmer try to practice with this example, they will have problem configuring openai because Elliot made this example running openai v3 and it doesn't work anymore. I could fix the config for openai v4.
The current problem will be in [gpt.ts file] and I use this config to solve the issue:

// openai V4

import OpenAi from "openai"

const openai = new OpenAi({
  apiKey: process.env.OPENAI_API_KEY
});
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

No branches or pull requests

1 participant