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

Prevent API scope error #13

Open
kilianso opened this issue Aug 7, 2022 · 6 comments
Open

Prevent API scope error #13

kilianso opened this issue Aug 7, 2022 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kilianso
Copy link

kilianso commented Aug 7, 2022

Hey there 👋 Nice project! I just ran into a missing_scope error and after some research, I read that OpenAI automatically changes API keys when they detect access from external domains.

Same has been reported on the Node project.
ezzcodeezzlife/dalle-node#13

However, changing the token manually is of course a solution but i was wondering if there's a way to automate it. In a production app, we would need a way to retrieve and renew it programmatically. Any ideas?

@github-actions
Copy link

github-actions bot commented Aug 7, 2022

Thanks you for your first issue in dalle2-in-python

@kv-crosstech
Copy link

For the text models (GPT-3) OpenAI released well-documented API and you can get permanent API key for yourself. I assume there will be same situation once they release DALLE-2 to the public. So we all have to wait to get this functionality without manual retreiving of access tokens

@ezzcodeezzlife ezzcodeezzlife added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 12, 2022
@ezawadzki
Copy link

I still have this issue with a permanent access token :

{
  "error": {
    "message": "Your key is missing a required scope: app.labs",
    "type": "invalid_request_error",
    "param": null,
    "code": "missing_scope"
  }
}


@ezzcodeezzlife
Copy link
Owner

@ezawadzki you have to use your temporary bearer key like explained in the readme

@ezawadzki
Copy link

Oh ! thanks @ezzcodeezzlife , I read your documentation too quickly. Hope we can use one day permanent tokens.

@ezzcodeezzlife
Copy link
Owner

Hope we can use one day permanent tokens.

currently looking into this 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants