OpenAI 404 error since Organization not defined
aLearningProcess opened this issue · 0 comments
aLearningProcess commented
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#