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
494 stars 155 forks source link

Invalid parameter: 'response_format' when using Google AI API #39

Closed Tarun-939 closed 2 months ago

Tarun-939 commented 4 months ago

I'm having trouble using the Google AI API. I'm getting the following error message:

"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've created an API key and used it. Can you help me with selecting the AI model as Gemini 1.5 Pro in Google Studio?

mrwadams commented 2 months ago

Hi @Tarun-939 ,

The updates that Google have made to the Gemini 1.5 Pro model seem to have resolved this. I'm able to use the model with no issue.

Screenshot 2024-09-17 at 16 55 27