ask-your-database icon indicating copy to clipboard operation
ask-your-database copied to clipboard

OpenAI 404 error since Organization not defined

Open aLearningProcess opened this issue 2 years ago • 0 comments

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#

aLearningProcess avatar Apr 25 '23 21:04 aLearningProcess