I have a problem with the instability of
The function generally works in such a way that after creating a new document in the Firestore collection, it calls Gemini and returns the desired response according to the set prompt.
After its deployment, it works always fine, but after some time (hours), it returns an error:
Error: Model "googleai/gemini-1.5-pro-latest" not found at /workspace/node_modules/@genkit-ai/ai/lib/generate.js
Package.json:
"@genkit-ai/ai": "^0.5.16",
"@genkit-ai/core": "^0.5.16",
"@genkit-ai/dotprompt": "^0.5.16",
"@genkit-ai/firebase": "latest",
"@genkit-ai/flow": "^0.5.16",
"@genkit-ai/googleai": "^0.5.16",
geminiCall in the function:
const llmResponse = await generate({
model: "googleai/gemini-1.5-pro-latest",
What could be causing this? What's the best practice to solve it?