Error Using OpenAI API Key - https://attackgen.streamlit.app/
OrlandoMD opened this issue · comments
Hello- What a neat project! I'm attempting to exercise the AttackGen instance hosted at https://attackgen.streamlit.app/
Screenshot 01: On the Welcome page, I paste a freshly created OpenAI API key from my ChatGPT Pro account, press enter for acceptance, and make additional sections.
Screenshot 02: On the Generate Threat Group Scenario page, I click "Generate Scenario.
Screenshot 03: The Generate Threat Group Scenario page then presents the following error:
"An error occurred while generating the scenario: Error code: 404 - {'error': {'message': 'The model gpt-4 does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}"
Screenshot 04: Returning to the Welcome page, the API field is cleared.
Entering the same API key or a newly created one leads to the same results and error message.
Could you please review and advise if something is not working or how I should change my approach to exercising this AttackGen instance?
Respectfully,
Orlando Stevenson
Hi @OrlandoMD,
Thanks for looking at the project. I believe this issue is caused because you don't have a payment method associated with your OpenAI account, or have insufficient credit in your account to use the API.
Please try adding a payment method then generating a fresh API key after a few minutes.
Thanks,
Matt
Hi Matt,
Update - while I have a paid ChatGPT personal subscription, I dug deeper based on your feedback. Yes, it turns out that the OpenAI API also requires its own payment method to be established as shown in screenshots that follow. My first generated scenario cost $0.06 after depositing $10.. not bad.
Thank you!
Orlando Stevenson