mrwadams / stride-gpt

An AI-powered threat modeling tool that leverages OpenAI's GPT models to generate threat models for a given application based on the STRIDE methodology.
https://stridegpt.streamlit.app
MIT License
427 stars 133 forks source link

openAI API - error code 404 #21

Closed AlenKrga closed 4 months ago

AlenKrga commented 4 months ago

Hi @mrwadams,

Please could you help me, I'm facing some issues with trying app. I tried to use OpenAI API option, after following steps to enter OpenAI API key. Entered API key (using paid version of chatGPT). Using Example Application description. After clicking on Threat Model I get this error: Error generating threat model after 3 attempts: Error code: 404 - {'error': {'message': 'The model gpt-4o does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

I'm facing error with gpt-4o, gpt-4-turbo and couldn't try other versions as text field to enter information is missing.

Thanks in advance

mrwadams commented 4 months ago

Hi,

Using the paid version of ChatGPT isn't the same as having the ability to use the OpenAI API.

You need to add a payment method under platform.openai.com and add a small amount of credit. After that you'll be able to use an API key.

Matt

AlenKrga commented 4 months ago

Hi,

Thanks Matt! Working like a charm!