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

Invalid parameter: 'response_format' when using Azure OpenAI #19

Closed vicdotdevelop closed 2 weeks ago

vicdotdevelop commented 4 months ago

When using Azure OpenAI i get the following error:

Error generating threat model after 3 attempts: Error code: 400 - {'error': {'message': "Invalid parameter: 'response_format' of type 'json_object' is not supported with this model.", 'type': 'invalid_request_error', 'param': 'response_format', 'code': None}}

I just used the example prompt from the left pane and left all settings as it is. Models I tried from my Azure OpenAI instance: gpt-4 & gpt3.5-turbo. Both resulted in the same error.

mrwadams commented 4 months ago

Hi @vicdotdevelop,

Thanks for trying out the tool.

Could you please confirm the other details for your model deployment on Azure? Which model version are you using for the deployment (e.g. 0613)?

mrwadams commented 2 weeks ago

Closing this as I haven't heard anything more.