The code returns the following error:
fetch to https://generativelanguage.googleapis.com/v1/models/gemini-1.5-flash:generateContent?key=AIzaSyBoHDP7ot7IwPirR2vF92_daSLAG0_rEUA failed with status 404 and body: {
"error": {
"code": 404,
"message": "models/gemini-1.5-flash is not found for API version v1, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}
at async analyzeImageWithGemini (/lib/gemini-service)
at async Module.POST (/app/api/analyze/route)
at async handleSubmit (/components/upload-form)
Revise the code to address the error.
I was previewing: /