when I push the code with API key from openAi , it disabled and deleted automatic from openAi , how can I solve this problem?
IM trying to add my API key to my code and push it into githup to deployed it
when I push the code with API key from openAi , it disabled and deleted automatic from openAi , how can I solve this problem?
IM trying to add my API key to my code and push it into githup to deployed it
Do you use any public repo to publish the code of your app? Something like Github Pages by any chance?
Then it might be why. Github is scanning your code for API tokens; if any are detected, they report them to OpenAI to invalidate them.
Make sure your repo is private, don't hardcode API keys in your code, and use environment variables instead.
Similar question to