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 404 error since Organization not defined #2

Open
aLearningProcess opened this issue Apr 25, 2023 · 0 comments
Open

OpenAI 404 error since Organization not defined #2

aLearningProcess opened this issue Apr 25, 2023 · 0 comments

Comments

@aLearningProcess
Copy link

I ran into a 404 error that I was able to maybe hack/solve with the following code. Should be an easy fix to add this to the config.json and then pull into the configuration in the correct places.

In index.js at line 100

const configuration = new Configuration({
organization: "org-xxx", << New line added
apiKey: config.openAIAPIKey,
});

I extracted this modification from his web link and then copied my Organization ID from my own account.

https://platform.openai.com/docs/api-reference/authentication?lang=node.js

OpenAI helper page: https://help.openai.com/en/articles/6891827-error-code-404-you-must-be-a-member-of-an-organization-to-use-the-api#

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